@ninetailed/experience.js 4.2.0-beta.8 → 4.2.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/index.cjs +0 -10
- package/index.js +0 -10
- package/lib/Ninetailed.d.ts +1 -4
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -3292,16 +3292,6 @@ var addToUnscopables = addToUnscopables$3;
|
|
|
3292
3292
|
addToUnscopables('flat');
|
|
3293
3293
|
|
|
3294
3294
|
class Ninetailed {
|
|
3295
|
-
static create(ninetailedApiClientInstanceOrOptions, options = {}) {
|
|
3296
|
-
if (Ninetailed._instance) {
|
|
3297
|
-
throw new Error('Ninetailed instance already created. Please use Ninetailed.getInstance() instead.');
|
|
3298
|
-
}
|
|
3299
|
-
Ninetailed._instance = new Ninetailed(ninetailedApiClientInstanceOrOptions, options);
|
|
3300
|
-
return Ninetailed._instance;
|
|
3301
|
-
}
|
|
3302
|
-
static get instance() {
|
|
3303
|
-
return Ninetailed._instance;
|
|
3304
|
-
}
|
|
3305
3295
|
constructor(ninetailedApiClientInstanceOrOptions, {
|
|
3306
3296
|
plugins,
|
|
3307
3297
|
url,
|
package/index.js
CHANGED
|
@@ -3285,16 +3285,6 @@ var addToUnscopables = addToUnscopables$3;
|
|
|
3285
3285
|
addToUnscopables('flat');
|
|
3286
3286
|
|
|
3287
3287
|
class Ninetailed {
|
|
3288
|
-
static create(ninetailedApiClientInstanceOrOptions, options = {}) {
|
|
3289
|
-
if (Ninetailed._instance) {
|
|
3290
|
-
throw new Error('Ninetailed instance already created. Please use Ninetailed.getInstance() instead.');
|
|
3291
|
-
}
|
|
3292
|
-
Ninetailed._instance = new Ninetailed(ninetailedApiClientInstanceOrOptions, options);
|
|
3293
|
-
return Ninetailed._instance;
|
|
3294
|
-
}
|
|
3295
|
-
static get instance() {
|
|
3296
|
-
return Ninetailed._instance;
|
|
3297
|
-
}
|
|
3298
3288
|
constructor(ninetailedApiClientInstanceOrOptions, {
|
|
3299
3289
|
plugins,
|
|
3300
3290
|
url,
|
package/lib/Ninetailed.d.ts
CHANGED
|
@@ -31,10 +31,7 @@ export declare class Ninetailed implements NinetailedInstance {
|
|
|
31
31
|
private readonly environment;
|
|
32
32
|
readonly plugins: NinetailedPlugin[];
|
|
33
33
|
readonly logger: Logger;
|
|
34
|
-
|
|
35
|
-
static create(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, options?: Options): Ninetailed;
|
|
36
|
-
static get instance(): Ninetailed;
|
|
37
|
-
private constructor();
|
|
34
|
+
constructor(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, { plugins, url, profile, locale, requestTimeout, onLog, onError, }?: Options);
|
|
38
35
|
page: (data?: Partial<PageviewProperties>, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
39
36
|
track: (event: string, properties?: Properties, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
|
|
40
37
|
trackHasSeenComponent: TrackHasSeenComponent;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "4.2.0
|
|
3
|
+
"version": "4.2.0",
|
|
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": "4.2.0
|
|
9
|
+
"@ninetailed/experience.js-shared": "4.2.0",
|
|
10
10
|
"analytics": "0.8.1",
|
|
11
11
|
"zod": "3.21.4"
|
|
12
12
|
},
|