@freema/drobek-sdk 0.6.0 → 0.7.0
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.
- package/dist/beacon-entry.js +1 -1
- package/dist/beacon.d.ts +2 -2
- package/dist/beacon.js +2 -2
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/dist/beacon-entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The entry bundled into `/__drobek/beacon.js
|
|
2
|
+
* The entry bundled into `/__drobek/beacon.js`: install the error
|
|
3
3
|
* beacon on load. The compiler imports it at the top of every app entry.
|
|
4
4
|
*/
|
|
5
5
|
import { installBeacon } from './beacon.js';
|
package/dist/beacon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The browser error beacon
|
|
2
|
+
* The browser error beacon — runs in the BROWSER on the app's
|
|
3
3
|
* own origin. The compiler adds `import "/__drobek/beacon.js?v=<hash>"` at the
|
|
4
4
|
* top of every JS entry of an app (unless its drobek.json says
|
|
5
5
|
* `"beacon": false`), so every app reports its uncaught errors and unhandled
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* same-origin, JSON `{ events: [{ type, message, stack, url, ua, ts }] }`,
|
|
11
11
|
* ≤ 20 events and ≤ 8 KiB per POST (over-cap → 413). The server redacts
|
|
12
12
|
* e-mails / tokens and truncates again — the client caps are only there so a
|
|
13
|
-
* POST fits. The page `url` is only its origin + path
|
|
13
|
+
* POST fits. The page `url` is only its origin + path: a query
|
|
14
14
|
* string or fragment can carry one-time codes, tokens or PII the redaction
|
|
15
15
|
* cannot recognise (`?code=123456`), so it never leaves the browser.
|
|
16
16
|
*
|
package/dist/beacon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The browser error beacon
|
|
2
|
+
* The browser error beacon — runs in the BROWSER on the app's
|
|
3
3
|
* own origin. The compiler adds `import "/__drobek/beacon.js?v=<hash>"` at the
|
|
4
4
|
* top of every JS entry of an app (unless its drobek.json says
|
|
5
5
|
* `"beacon": false`), so every app reports its uncaught errors and unhandled
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* same-origin, JSON `{ events: [{ type, message, stack, url, ua, ts }] }`,
|
|
11
11
|
* ≤ 20 events and ≤ 8 KiB per POST (over-cap → 413). The server redacts
|
|
12
12
|
* e-mails / tokens and truncates again — the client caps are only there so a
|
|
13
|
-
* POST fits. The page `url` is only its origin + path
|
|
13
|
+
* POST fits. The page `url` is only its origin + path: a query
|
|
14
14
|
* string or fragment can carry one-time codes, tokens or PII the redaction
|
|
15
15
|
* cannot recognise (`?code=123456`), so it never leaves the browser.
|
|
16
16
|
*
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The drobek browser SDK core
|
|
2
|
+
* The drobek browser SDK core — bundled into every server's
|
|
3
3
|
* `/__drobek/sdk.js` together with the `sdk.entry` of each ACTIVE platform
|
|
4
4
|
* module (`@drobek/modules` composes it with esbuild at startup). An app imports
|
|
5
5
|
* it as `import { drobek } from 'drobek'` (the compiler maps the bare `drobek`
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The drobek browser SDK core
|
|
2
|
+
* The drobek browser SDK core — bundled into every server's
|
|
3
3
|
* `/__drobek/sdk.js` together with the `sdk.entry` of each ACTIVE platform
|
|
4
4
|
* module (`@drobek/modules` composes it with esbuild at startup). An app imports
|
|
5
5
|
* it as `import { drobek } from 'drobek'` (the compiler maps the bare `drobek`
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @drobek/sdk — the browser SDK core
|
|
2
|
+
* @drobek/sdk — the browser SDK core. `core.ts` is bundled
|
|
3
3
|
* into `/__drobek/sdk.js` with the SDK entry of every active platform module;
|
|
4
4
|
* module SDK entries type their argument with `SdkCore` from here.
|
|
5
|
-
* `beacon.ts`
|
|
5
|
+
* `beacon.ts` is bundled into `/__drobek/beacon.js`, which the
|
|
6
6
|
* compiler imports into every app: uncaught browser errors → the app's beacon.
|
|
7
7
|
*/
|
|
8
8
|
export declare const SDK_VERSION = "1.0.0";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @drobek/sdk — the browser SDK core
|
|
2
|
+
* @drobek/sdk — the browser SDK core. `core.ts` is bundled
|
|
3
3
|
* into `/__drobek/sdk.js` with the SDK entry of every active platform module;
|
|
4
4
|
* module SDK entries type their argument with `SdkCore` from here.
|
|
5
|
-
* `beacon.ts`
|
|
5
|
+
* `beacon.ts` is bundled into `/__drobek/beacon.js`, which the
|
|
6
6
|
* compiler imports into every app: uncaught browser errors → the app's beacon.
|
|
7
7
|
*/
|
|
8
8
|
export const SDK_VERSION = '1.0.0';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The TypeScript declarations of the SDK core, as the text the composed
|
|
3
|
-
* `/__drobek/sdk.d.ts` starts with
|
|
3
|
+
* `/__drobek/sdk.d.ts` starts with. Kept next to core.ts; the
|
|
4
4
|
* `@drobek/modules` sdk tests parse the composed file and check that it
|
|
5
5
|
* declares everything core.ts exports to apps.
|
|
6
6
|
*/
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The TypeScript declarations of the SDK core, as the text the composed
|
|
3
|
-
* `/__drobek/sdk.d.ts` starts with
|
|
3
|
+
* `/__drobek/sdk.d.ts` starts with. Kept next to core.ts; the
|
|
4
4
|
* `@drobek/modules` sdk tests parse the composed file and check that it
|
|
5
5
|
* declares everything core.ts exports to apps.
|
|
6
6
|
*/
|
package/package.json
CHANGED