8906bd8ffa
This adds the HTMLRewriter-based bookmark unfurler to the demo server. It moves the unfurler into worker-shared, and adds some better shared error handling across our workers. I removed the fallback bookmark fetcher where we try and fetch websites locally. This will almost never work, as it requires sites to set public CORS. ### Change type - [x] `other`
28 lines
850 B
JSON
28 lines
850 B
JSON
{
|
|
"name": "@tldraw/worker-shared",
|
|
"version": "2.0.0",
|
|
"private": true,
|
|
"/* NOTE */": "These `main` and `types` fields are rewritten by the build script. They are not the actual values we publish",
|
|
"main": "./src/index.ts",
|
|
"types": "./.tsbuild/index.d.ts",
|
|
"/* GOTCHA */": "files will include ./dist and index.d.ts by default, add any others you want to include in here",
|
|
"files": [],
|
|
"dependencies": {
|
|
"@cloudflare/workers-types": "^4.20240620.0",
|
|
"@tldraw/utils": "workspace:*",
|
|
"@tldraw/validate": "workspace:*",
|
|
"itty-router": "^4.0.13",
|
|
"lazyrepo": "0.0.0-alpha.27",
|
|
"toucan-js": "^3.4.0",
|
|
"typescript": "^5.3.3"
|
|
},
|
|
"scripts": {
|
|
"test-ci": "lazy inherit",
|
|
"test": "yarn run -T jest",
|
|
"lint": "yarn run -T tsx ../../scripts/lint.ts"
|
|
},
|
|
"jest": {
|
|
"preset": "config/jest/node",
|
|
"testEnvironment": "jsdom"
|
|
}
|
|
}
|