@hanzo/event 0.3.31 → 0.3.33
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/README.md +17 -19
- package/dist/index.cjs +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +14 -14
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +14 -14
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -2
- package/src/anon.d.ts +1 -1
- package/src/anon.js +18 -18
- package/src/anon.test.ts +17 -38
- package/src/stack.ts +144 -0
- package/src/storage.test.ts +2 -2
- package/src/storage.ts +1 -1
- package/src/uid.ts +1 -1
- package/src/version.ts +1 -1
- package/hz.js +0 -553
- package/src/hz.test.ts +0 -376
package/dist/react.mjs
CHANGED
|
@@ -307,7 +307,7 @@ function hzAnonId() {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
// src/version.ts
|
|
310
|
-
var VERSION = "0.3.
|
|
310
|
+
var VERSION = "0.3.33";
|
|
311
311
|
|
|
312
312
|
// src/sentry.ts
|
|
313
313
|
var MAX_FRAMES = 50;
|
|
@@ -1114,26 +1114,26 @@ var ErrorBoundary = class extends Component {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
ErrorBoundary.contextType = Ctx;
|
|
1117
|
-
/*! anon.js — THE anonymous-identity chain. ONE implementation,
|
|
1117
|
+
/*! anon.js — THE anonymous-identity chain. ONE implementation, two distributions.
|
|
1118
1118
|
*
|
|
1119
1119
|
* One browser is ONE person on every Hanzo surface, whichever client a page
|
|
1120
|
-
* happens to have loaded. There were three implementations writing TWO keys —
|
|
1121
|
-
* `hz_anon_id`
|
|
1122
|
-
*
|
|
1120
|
+
* happens to have loaded. There were once three implementations writing TWO keys —
|
|
1121
|
+
* `hz_anon_id` and `hz_id` — so the same visitor was several people depending on
|
|
1122
|
+
* which snippet the surface shipped.
|
|
1123
1123
|
*
|
|
1124
|
-
* The
|
|
1124
|
+
* The two call sites:
|
|
1125
1125
|
* 1. src/storage.ts — the bundled npm client; IMPORTS this file.
|
|
1126
|
-
* 2.
|
|
1127
|
-
* 3. hanzoai/cloud apps/analytics/tag.js — the tag the door hosts at
|
|
1126
|
+
* 2. hanzoai/cloud apps/analytics/tag.js — the tag the door hosts at
|
|
1128
1127
|
* /v1/event.js; vendors this file and its tag.go serves the marked region
|
|
1129
1128
|
* with the tag as one asset, so the door holds no second copy either.
|
|
1130
1129
|
*
|
|
1131
|
-
* (2)
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1134
|
-
*
|
|
1135
|
-
*
|
|
1136
|
-
*
|
|
1130
|
+
* (2) has no bundler and cannot import anything, which is why the chain lives in a
|
|
1131
|
+
* file that is plain ES5 rather than in a .ts: the region between the BEGIN and END
|
|
1132
|
+
* markers is COPIED VERBATIM. Keep it ES5, dependency-free, `hz`-prefixed (it is
|
|
1133
|
+
* spliced into other people's scopes) and unformatted — a reformat here is a diff
|
|
1134
|
+
* against the vendored copy. After editing, resync the door:
|
|
1135
|
+
*
|
|
1136
|
+
* curl -fsSL https://unpkg.com/@hanzo/event/src/anon.js -o apps/analytics/anon.js
|
|
1137
1137
|
*/
|
|
1138
1138
|
|
|
1139
1139
|
export { AnalyticsProvider, ErrorBoundary, useAnalytics, usePageview };
|