@jitsu/js 1.7.1 → 1.8.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/.turbo/turbo-build.log +85 -105
- package/.turbo/turbo-clean.log +5 -5
- package/.turbo/turbo-test.log +1215 -317
- package/__tests__/node/nodejs.test.ts +50 -8
- package/__tests__/playwright/cases/basic.html +1 -1
- package/__tests__/playwright/cases/url-bug.html +20 -0
- package/__tests__/playwright/integration.test.ts +60 -8
- package/dist/analytics-plugin.d.ts +6 -1
- package/dist/index.d.ts +1 -8
- package/dist/jitsu.cjs.js +250 -132
- package/dist/jitsu.d.ts +6 -0
- package/dist/jitsu.es.js +250 -132
- package/dist/version.d.ts +2 -1
- package/dist/web/p.js.txt +1311 -1
- package/package.json +4 -4
- package/rollup.config.js +8 -1
- package/src/analytics-plugin.ts +168 -96
- package/src/browser.ts +18 -28
- package/src/index.ts +104 -19
- package/src/jitsu.ts +7 -0
- package/src/version.ts +4 -1
package/dist/jitsu.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ type JitsuOptions = {
|
|
|
37
37
|
* writeKey / host. It's useful for debugging development environment
|
|
38
38
|
*/
|
|
39
39
|
echoEvents?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If true, events will go to s2s endpoints like ${host}/api/s/s2s/{type}. Otherwise they'll go to ${host}/api/s/{type}.
|
|
42
|
+
*
|
|
43
|
+
* If not set at all, it will be detected automatically by presence of `window` object
|
|
44
|
+
*/
|
|
45
|
+
s2s?: boolean;
|
|
40
46
|
};
|
|
41
47
|
type PersistentStorage = {
|
|
42
48
|
getItem: (key: string, options?: any) => any;
|