@brainfish-ai/web-tracker 0.0.4-alpha.19 → 0.0.4-alpha.21
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/index.js +1 -6
- package/package.json +2 -2
- package/vite.config.ts +4 -3
package/dist/index.js
CHANGED
|
@@ -1328,11 +1328,6 @@ class Ta {
|
|
|
1328
1328
|
if (e.userId && (this.userId = e.userId, this.flush()), Object.keys(e).length > 1) return this.send({ type: "user.identify", payload: S(v({}, e), { properties: v(v({}, this.global), e.properties) }) });
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
|
-
record(e) {
|
|
1332
|
-
return m(this, null, function* () {
|
|
1333
|
-
return this.send({ type: "event.record", payload: { events: e, userId: this.userId } });
|
|
1334
|
-
});
|
|
1335
|
-
}
|
|
1336
1331
|
alias(e) {
|
|
1337
1332
|
return m(this, null, function* () {
|
|
1338
1333
|
return this.send({ type: "user.alias", payload: e });
|
|
@@ -1860,7 +1855,7 @@ function Ga(n) {
|
|
|
1860
1855
|
});
|
|
1861
1856
|
})(n);
|
|
1862
1857
|
}
|
|
1863
|
-
const Za = "0.0.4-alpha.
|
|
1858
|
+
const Za = "0.0.4-alpha.20";
|
|
1864
1859
|
class Xe extends Ta {
|
|
1865
1860
|
constructor(a) {
|
|
1866
1861
|
super(v({ sdk: "web", sdkVersion: Za }, a));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brainfish-ai/web-tracker",
|
|
3
|
-
"version": "0.0.4-alpha.
|
|
3
|
+
"version": "0.0.4-alpha.21",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"description": "Brainfish Tracker for Web",
|
|
6
6
|
"private": false,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"vite-tsconfig-paths": "^4.2.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@brainfish-ai/tracker-sdk": "0.0.1-alpha.
|
|
26
|
+
"@brainfish-ai/tracker-sdk": "0.0.1-alpha.4",
|
|
27
27
|
"html-to-image": "^1.11.11",
|
|
28
28
|
"rrweb": "^2.0.0-alpha.4"
|
|
29
29
|
},
|
package/vite.config.ts
CHANGED
|
@@ -21,10 +21,11 @@ export default defineConfig({
|
|
|
21
21
|
target: 'es2015',
|
|
22
22
|
sourcemap: true,
|
|
23
23
|
lib: {
|
|
24
|
-
entry: 'index.ts',
|
|
24
|
+
entry: ['index.ts', 'src/tracker.ts'],
|
|
25
25
|
name: 'BrainfishAnalytics',
|
|
26
26
|
formats: ['es', 'cjs'],
|
|
27
|
-
fileName: (format, entry) =>
|
|
27
|
+
fileName: (format, entry) =>
|
|
28
|
+
`${entry}${format === 'es' ? '' : '.cjs'}.js`,
|
|
28
29
|
},
|
|
29
30
|
minify: true,
|
|
30
31
|
terserOptions: {
|
|
@@ -38,7 +39,7 @@ export default defineConfig({
|
|
|
38
39
|
plugins: [terser()],
|
|
39
40
|
external: ['@google-cloud/dlp'],
|
|
40
41
|
output: {
|
|
41
|
-
inlineDynamicImports: true, // Ensures all imports are inlined into the main bundle
|
|
42
|
+
// inlineDynamicImports: true, // Ensures all imports are inlined into the main bundle
|
|
42
43
|
manualChunks: undefined, // Disables code splitting
|
|
43
44
|
},
|
|
44
45
|
},
|