mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 02:20:54 +01:00
bump toucan-js to ^3.2.2
This commit is contained in:
parent
2380805732
commit
eff46e7530
4 changed files with 52 additions and 186 deletions
216
package-lock.json
generated
216
package-lock.json
generated
|
@ -10,11 +10,12 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"itty-router": "^3.0.12",
|
||||
"toucan-js": "^2.7.0"
|
||||
"toucan-js": "^3.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^4.20230821.0",
|
||||
"@microsoft/eslint-formatter-sarif": "^3.0.0",
|
||||
"@sentry/integrations": "^7.64.0",
|
||||
"@sentry/webpack-plugin": "^2.7.0",
|
||||
"@types/jest": "^29.5.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
||||
|
@ -2101,7 +2102,6 @@
|
|||
"version": "7.64.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-7.64.0.tgz",
|
||||
"integrity": "sha512-IzmEyl5sNG7NyEFiyFHEHC+sizsZp9MEw1+RJRLX6U5RITvcsEgcajSkHQFafaBPzRrcxZMdm47Cwhl212LXcw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@sentry/types": "7.64.0",
|
||||
"@sentry/utils": "7.64.0",
|
||||
|
@ -2111,70 +2111,20 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/hub": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-6.19.6.tgz",
|
||||
"integrity": "sha512-PuEOBZxvx3bjxcXmWWZfWXG+orojQiWzv9LQXjIgroVMKM/GG4QtZbnWl1hOckUj7WtKNl4hEGO2g/6PyCV/vA==",
|
||||
"node_modules/@sentry/integrations": {
|
||||
"version": "7.64.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/integrations/-/integrations-7.64.0.tgz",
|
||||
"integrity": "sha512-6gbSGiruOifAmLtXw//Za19GWiL5qugDMEFxSvc5WrBWb+A8UK+foPn3K495OcivLS68AmqAQCUGb+6nlVowwA==",
|
||||
"dependencies": {
|
||||
"@sentry/types": "6.19.6",
|
||||
"@sentry/utils": "6.19.6",
|
||||
"tslib": "^1.9.3"
|
||||
"@sentry/types": "7.64.0",
|
||||
"@sentry/utils": "7.64.0",
|
||||
"localforage": "^1.8.1",
|
||||
"tslib": "^2.4.1 || ^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/hub/node_modules/@sentry/types": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.6.tgz",
|
||||
"integrity": "sha512-QH34LMJidEUPZK78l+Frt3AaVFJhEmIi05Zf8WHd9/iTt+OqvCHBgq49DDr1FWFqyYWm/QgW/3bIoikFpfsXyQ==",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/hub/node_modules/@sentry/utils": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.6.tgz",
|
||||
"integrity": "sha512-fAMWcsguL0632eWrROp/vhPgI7sBj/JROWVPzpabwVkm9z3m1rQm6iLFn4qfkZL8Ozy6NVZPXOQ7EXmeU24byg==",
|
||||
"dependencies": {
|
||||
"@sentry/types": "6.19.6",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/hub/node_modules/tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/minimal": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-6.19.6.tgz",
|
||||
"integrity": "sha512-T1NKcv+HTlmd8EbzUgnGPl4ySQGHWMCyZ8a8kXVMZOPDzphN3fVIzkYzWmSftCWp0rpabXPt9aRF2mfBKU+mAQ==",
|
||||
"dependencies": {
|
||||
"@sentry/hub": "6.19.6",
|
||||
"@sentry/types": "6.19.6",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/minimal/node_modules/@sentry/types": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.6.tgz",
|
||||
"integrity": "sha512-QH34LMJidEUPZK78l+Frt3AaVFJhEmIi05Zf8WHd9/iTt+OqvCHBgq49DDr1FWFqyYWm/QgW/3bIoikFpfsXyQ==",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@sentry/minimal/node_modules/tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/@sentry/node": {
|
||||
"version": "7.64.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/node/-/node-7.64.0.tgz",
|
||||
|
@ -2198,7 +2148,6 @@
|
|||
"version": "7.64.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-7.64.0.tgz",
|
||||
"integrity": "sha512-LqjQprWXjUFRmzIlUjyA+KL+38elgIYmAeoDrdyNVh8MK5IC1W2Lh1Q87b4yOiZeMiIhIVNBd7Ecoh2rodGrGA==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
}
|
||||
|
@ -2207,7 +2156,6 @@
|
|||
"version": "7.64.0",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-7.64.0.tgz",
|
||||
"integrity": "sha512-HRlM1INzK66Gt+F4vCItiwGKAng4gqzCR4C5marsL3qv6SrKH98dQnCGYgXluSWaaa56h97FRQu7TxCk6jkSvQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@sentry/types": "7.64.0",
|
||||
"tslib": "^2.4.1 || ^1.9.3"
|
||||
|
@ -2307,11 +2255,6 @@
|
|||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/cookie": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.5.0.tgz",
|
||||
"integrity": "sha512-CJWHVHHupxBYfIlMM+qzXx4dRKIV1VzOm0cP3Wpqten8MDx1tK+y92YDXUshN1ONAfwodvKxDNkw35/pNs+izg=="
|
||||
},
|
||||
"node_modules/@types/eslint": {
|
||||
"version": "8.44.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.2.tgz",
|
||||
|
@ -3752,14 +3695,6 @@
|
|||
"is-arrayish": "^0.2.1"
|
||||
}
|
||||
},
|
||||
"node_modules/error-stack-parser": {
|
||||
"version": "2.1.4",
|
||||
"resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz",
|
||||
"integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==",
|
||||
"dependencies": {
|
||||
"stackframe": "^1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-module-lexer": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz",
|
||||
|
@ -4532,6 +4467,11 @@
|
|||
"node": ">= 4"
|
||||
}
|
||||
},
|
||||
"node_modules/immediate": {
|
||||
"version": "3.0.6",
|
||||
"resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",
|
||||
"integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="
|
||||
},
|
||||
"node_modules/import-fresh": {
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
|
||||
|
@ -5532,6 +5472,14 @@
|
|||
"node": ">= 0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/lie": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz",
|
||||
"integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==",
|
||||
"dependencies": {
|
||||
"immediate": "~3.0.5"
|
||||
}
|
||||
},
|
||||
"node_modules/lines-and-columns": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
|
||||
|
@ -5547,6 +5495,14 @@
|
|||
"node": ">=6.11.5"
|
||||
}
|
||||
},
|
||||
"node_modules/localforage": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz",
|
||||
"integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==",
|
||||
"dependencies": {
|
||||
"lie": "3.1.1"
|
||||
}
|
||||
},
|
||||
"node_modules/locate-path": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
|
||||
|
@ -6989,14 +6945,6 @@
|
|||
"integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/stack-generator": {
|
||||
"version": "2.0.10",
|
||||
"resolved": "https://registry.npmjs.org/stack-generator/-/stack-generator-2.0.10.tgz",
|
||||
"integrity": "sha512-mwnua/hkqM6pF4k8SnmZ2zfETsRUpWXREfA/goT8SLCV4iOFa4bzOX2nDipWAZFPTjLvQB82f5yaodMVhK0yJQ==",
|
||||
"dependencies": {
|
||||
"stackframe": "^1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/stack-utils": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
|
||||
|
@ -7018,38 +6966,6 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/stackframe": {
|
||||
"version": "1.3.4",
|
||||
"resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz",
|
||||
"integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw=="
|
||||
},
|
||||
"node_modules/stacktrace-gps": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/stacktrace-gps/-/stacktrace-gps-3.1.2.tgz",
|
||||
"integrity": "sha512-GcUgbO4Jsqqg6RxfyTHFiPxdPqF+3LFmQhm7MgCuYQOYuWyqxo5pwRPz5d/u6/WYJdEnWfK4r+jGbyD8TSggXQ==",
|
||||
"dependencies": {
|
||||
"source-map": "0.5.6",
|
||||
"stackframe": "^1.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/stacktrace-gps/node_modules/source-map": {
|
||||
"version": "0.5.6",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
|
||||
"integrity": "sha512-MjZkVp0NHr5+TPihLcadqnlVoGIoWo4IBHptutGh9wI3ttUYvCG26HkSuDi+K6lsZ25syXJXcctwgyVCt//xqA==",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/stacktrace-js": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/stacktrace-js/-/stacktrace-js-2.0.2.tgz",
|
||||
"integrity": "sha512-Je5vBeY4S1r/RnLydLl0TBTi3F2qdfWmYsGvtfZgEI+SCprPppaIhQf5nGcal4gI4cGpCV/duLcAzT1np6sQqg==",
|
||||
"dependencies": {
|
||||
"error-stack-parser": "^2.0.6",
|
||||
"stack-generator": "^2.0.5",
|
||||
"stacktrace-gps": "^3.0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/stacktracey": {
|
||||
"version": "2.1.8",
|
||||
"resolved": "https://registry.npmjs.org/stacktracey/-/stacktracey-2.1.8.tgz",
|
||||
|
@ -7377,67 +7293,16 @@
|
|||
}
|
||||
},
|
||||
"node_modules/toucan-js": {
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/toucan-js/-/toucan-js-2.7.0.tgz",
|
||||
"integrity": "sha512-vbvRbFfMLN2Jf9lOkwL1KwIwuCcS/ko0MVACZTYTnbdVlVjsIviwCU0inH0CRcMXCvFAS+uL8z/gSV3y7FpZUQ==",
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/toucan-js/-/toucan-js-3.2.2.tgz",
|
||||
"integrity": "sha512-FnUvHOS2bv/mimVCzJYyKo9nRFcz8zaPS4FKZ5XZVykRId3rKqP6+VeEjHgxkPM0WG+MoNUZSCfLbMmyoBfhKA==",
|
||||
"dependencies": {
|
||||
"@sentry/core": "6.19.6",
|
||||
"@sentry/hub": "6.19.6",
|
||||
"@sentry/types": "6.19.6",
|
||||
"@sentry/utils": "6.19.6",
|
||||
"@types/cookie": "0.5.0",
|
||||
"cookie": "0.5.0",
|
||||
"stacktrace-js": "2.0.2"
|
||||
"@sentry/core": "7.64.0",
|
||||
"@sentry/integrations": "7.64.0",
|
||||
"@sentry/types": "7.64.0",
|
||||
"@sentry/utils": "7.64.0"
|
||||
}
|
||||
},
|
||||
"node_modules/toucan-js/node_modules/@sentry/core": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/core/-/core-6.19.6.tgz",
|
||||
"integrity": "sha512-biEotGRr44/vBCOegkTfC9rwqaqRKIpFljKGyYU6/NtzMRooktqOhjmjmItNCMRknArdeaQwA8lk2jcZDXX3Og==",
|
||||
"dependencies": {
|
||||
"@sentry/hub": "6.19.6",
|
||||
"@sentry/minimal": "6.19.6",
|
||||
"@sentry/types": "6.19.6",
|
||||
"@sentry/utils": "6.19.6",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/toucan-js/node_modules/@sentry/types": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/types/-/types-6.19.6.tgz",
|
||||
"integrity": "sha512-QH34LMJidEUPZK78l+Frt3AaVFJhEmIi05Zf8WHd9/iTt+OqvCHBgq49DDr1FWFqyYWm/QgW/3bIoikFpfsXyQ==",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/toucan-js/node_modules/@sentry/utils": {
|
||||
"version": "6.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-6.19.6.tgz",
|
||||
"integrity": "sha512-fAMWcsguL0632eWrROp/vhPgI7sBj/JROWVPzpabwVkm9z3m1rQm6iLFn4qfkZL8Ozy6NVZPXOQ7EXmeU24byg==",
|
||||
"dependencies": {
|
||||
"@sentry/types": "6.19.6",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/toucan-js/node_modules/cookie": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
|
||||
"integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/toucan-js/node_modules/tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="
|
||||
},
|
||||
"node_modules/tr46": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||
|
@ -7521,8 +7386,7 @@
|
|||
"node_modules/tslib": {
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
||||
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
|
||||
"dev": true
|
||||
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
||||
},
|
||||
"node_modules/tunnel-agent": {
|
||||
"version": "0.6.0",
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"devDependencies": {
|
||||
"@cloudflare/workers-types": "^4.20230821.0",
|
||||
"@microsoft/eslint-formatter-sarif": "^3.0.0",
|
||||
"@sentry/integrations": "^7.64.0",
|
||||
"@sentry/webpack-plugin": "^2.7.0",
|
||||
"@types/jest": "^29.5.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
||||
|
@ -40,6 +41,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"itty-router": "^3.0.12",
|
||||
"toucan-js": "^2.7.0"
|
||||
"toucan-js": "^3.2.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* eslint-disable no-case-declarations */
|
||||
import Toucan from 'toucan-js';
|
||||
import { Toucan } from 'toucan-js';
|
||||
import { RewriteFrames } from "@sentry/integrations";
|
||||
|
||||
import { IRequest, Router } from 'itty-router';
|
||||
import { Constants } from './constants';
|
||||
|
@ -656,15 +657,15 @@ const sentryWrapper = async (event: FetchEvent, test = false): Promise<void> =>
|
|||
sentry = new Toucan({
|
||||
dsn: SENTRY_DSN,
|
||||
context: event,
|
||||
/* event includes 'waitUntil', which is essential for Sentry logs to be delivered.
|
||||
Also includes 'request' -- no need to set it separately. */
|
||||
request: event.request,
|
||||
requestDataOptions: {
|
||||
allowedHeaders: /(.*)/,
|
||||
allowedSearchParams: /(.*)/,
|
||||
release: RELEASE_NAME,
|
||||
rewriteFrames: {
|
||||
root: '/'
|
||||
},
|
||||
event
|
||||
integrations: [new RewriteFrames({ root: '/' })],
|
||||
/* event includes 'waitUntil', which is essential for Sentry logs to be delivered.
|
||||
Also includes 'request' -- no need to set it separately. */
|
||||
release: RELEASE_NAME
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"allowJs": true,
|
||||
"sourceMap": true,
|
||||
"esModuleInterop": true,
|
||||
"types": ["@cloudflare/workers-types/2022-11-30", "@types/jest"]
|
||||
"types": ["@cloudflare/workers-types/2022-11-30", "@types/jest", "@sentry/integrations"]
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist", "test"]
|
||||
|
|
Loading…
Add table
Reference in a new issue