@canmi/web 2026.1005.7 → 2026.1005.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region sentry/src/feedback.worker.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* `openReport` on a Worker, which has no dialog to open: what `workerd` resolves
|
|
4
|
+
* `@canmi/web/sentry/feedback` to, since `@sentry/sveltekit` has no `getFeedback` there. See
|
|
5
|
+
* spec/web/sentry.md.
|
|
6
|
+
*/
|
|
7
|
+
export declare function openReport(): Promise<boolean>;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region sentry/src/feedback.worker.ts
|
|
2
|
+
/**
|
|
3
|
+
* `openReport` on a Worker, which has no dialog to open: what `workerd` resolves
|
|
4
|
+
* `@canmi/web/sentry/feedback` to, since `@sentry/sveltekit` has no `getFeedback` there. See
|
|
5
|
+
* spec/web/sentry.md.
|
|
6
|
+
*/
|
|
7
|
+
async function openReport() {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { openReport };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region sentry/src/report.worker.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* `report` on a Worker, where nothing presses a control: what `workerd` resolves
|
|
4
|
+
* `@canmi/web/sentry/report` to, so a Worker's bundle never reaches the dialog, whose imports
|
|
5
|
+
* `@sentry/sveltekit` does not have there. See spec/web/sentry.md.
|
|
6
|
+
*/
|
|
7
|
+
export declare function report(_mailto: string): Promise<void>;
|
|
8
|
+
//#endregion
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region sentry/src/report.worker.ts
|
|
2
|
+
/**
|
|
3
|
+
* `report` on a Worker, where nothing presses a control: what `workerd` resolves
|
|
4
|
+
* `@canmi/web/sentry/report` to, so a Worker's bundle never reaches the dialog, whose imports
|
|
5
|
+
* `@sentry/sveltekit` does not have there. See spec/web/sentry.md.
|
|
6
|
+
*/
|
|
7
|
+
async function report(_mailto) {}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { report };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canmi/web",
|
|
3
|
-
"version": "2026.1005.
|
|
3
|
+
"version": "2026.1005.9",
|
|
4
4
|
"description": "SvelteKit compat, referer and Sentry.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browserslist",
|
|
@@ -42,10 +42,14 @@
|
|
|
42
42
|
},
|
|
43
43
|
"./sentry/feedback": {
|
|
44
44
|
"types": "./dist/sentry/src/feedback.d.ts",
|
|
45
|
+
"workerd": "./dist/sentry/src/feedback.worker.js",
|
|
46
|
+
"worker": "./dist/sentry/src/feedback.worker.js",
|
|
45
47
|
"default": "./dist/sentry/src/feedback.js"
|
|
46
48
|
},
|
|
47
49
|
"./sentry/report": {
|
|
48
50
|
"types": "./dist/sentry/src/report.d.ts",
|
|
51
|
+
"workerd": "./dist/sentry/src/report.worker.js",
|
|
52
|
+
"worker": "./dist/sentry/src/report.worker.js",
|
|
49
53
|
"default": "./dist/sentry/src/report.js"
|
|
50
54
|
},
|
|
51
55
|
"./sentry/server": {
|