@ninetailed/experience.js 6.4.0-beta.8 → 6.4.0-beta.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.
- package/index.cjs +3 -3
- package/index.js +3 -3
- package/lib/Ninetailed.d.ts +2 -2
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -3365,7 +3365,7 @@ class Ninetailed {
|
|
|
3365
3365
|
onError,
|
|
3366
3366
|
buildClientContext,
|
|
3367
3367
|
componentViewTrackingThreshold = 2000,
|
|
3368
|
-
|
|
3368
|
+
storageImpl
|
|
3369
3369
|
} = {}) {
|
|
3370
3370
|
this.isInitialized = false;
|
|
3371
3371
|
this.page = (data, options) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3576,8 +3576,8 @@ class Ninetailed {
|
|
|
3576
3576
|
this.instance = Analytics__default["default"](Object.assign({
|
|
3577
3577
|
app: 'ninetailed',
|
|
3578
3578
|
plugins: [...this.plugins, this.eventQueue]
|
|
3579
|
-
},
|
|
3580
|
-
storage
|
|
3579
|
+
}, storageImpl ? {
|
|
3580
|
+
storage: storageImpl
|
|
3581
3581
|
} : {}));
|
|
3582
3582
|
const detachOnReadyListener = this.instance.on('ready', () => {
|
|
3583
3583
|
this.isInitialized = true;
|
package/index.js
CHANGED
|
@@ -3358,7 +3358,7 @@ class Ninetailed {
|
|
|
3358
3358
|
onError,
|
|
3359
3359
|
buildClientContext,
|
|
3360
3360
|
componentViewTrackingThreshold = 2000,
|
|
3361
|
-
|
|
3361
|
+
storageImpl
|
|
3362
3362
|
} = {}) {
|
|
3363
3363
|
this.isInitialized = false;
|
|
3364
3364
|
this.page = (data, options) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -3569,8 +3569,8 @@ class Ninetailed {
|
|
|
3569
3569
|
this.instance = Analytics(Object.assign({
|
|
3570
3570
|
app: 'ninetailed',
|
|
3571
3571
|
plugins: [...this.plugins, this.eventQueue]
|
|
3572
|
-
},
|
|
3573
|
-
storage
|
|
3572
|
+
}, storageImpl ? {
|
|
3573
|
+
storage: storageImpl
|
|
3574
3574
|
} : {}));
|
|
3575
3575
|
const detachOnReadyListener = this.instance.on('ready', () => {
|
|
3576
3576
|
this.isInitialized = true;
|
package/lib/Ninetailed.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ type Options = {
|
|
|
30
30
|
onError?: OnErrorHandler;
|
|
31
31
|
componentViewTrackingThreshold?: number;
|
|
32
32
|
buildClientContext?: () => NinetailedRequestContext;
|
|
33
|
-
|
|
33
|
+
storageImpl?: Storage;
|
|
34
34
|
};
|
|
35
35
|
type NinetailedApiClientInstanceOrOptions = NinetailedApiClient | NinetailedApiClientOptions;
|
|
36
36
|
export declare class Ninetailed implements NinetailedInstance {
|
|
@@ -46,7 +46,7 @@ export declare class Ninetailed implements NinetailedInstance {
|
|
|
46
46
|
readonly plugins: NinetailedPlugin[];
|
|
47
47
|
readonly logger: Logger;
|
|
48
48
|
private readonly componentViewTrackingThreshold;
|
|
49
|
-
constructor(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, { plugins, url, profile, locale, requestTimeout, onLog, onError, buildClientContext, componentViewTrackingThreshold,
|
|
49
|
+
constructor(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, { plugins, url, profile, locale, requestTimeout, onLog, onError, buildClientContext, componentViewTrackingThreshold, storageImpl, }?: Options);
|
|
50
50
|
page: (data?: Partial<PageviewProperties>, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
51
51
|
track: (event: string, properties?: Properties, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
52
52
|
/**
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "6.4.0-beta.
|
|
3
|
+
"version": "6.4.0-beta.9",
|
|
4
4
|
"module": "./index.js",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@ninetailed/experience.js-shared": "6.4.0-beta.
|
|
9
|
+
"@ninetailed/experience.js-shared": "6.4.0-beta.9",
|
|
10
10
|
"analytics": "0.8.1",
|
|
11
11
|
"zod": "3.21.4"
|
|
12
12
|
},
|