@ninetailed/experience.js 7.6.0-beta.6 → 7.6.0-beta.7

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.js CHANGED
@@ -630,7 +630,7 @@ class Ninetailed {
630
630
  onInitProfileId,
631
631
  componentViewTrackingThreshold = 2000,
632
632
  storageImpl,
633
- useClientSideEvaluation = false
633
+ useSDKEvaluation = false
634
634
  } = {}) {
635
635
  this.isInitialized = false;
636
636
  this.page = (data, options) => __awaiter(this, void 0, void 0, function* () {
@@ -912,7 +912,7 @@ class Ninetailed {
912
912
  })));
913
913
  return;
914
914
  }
915
- if (this.useClientSideEvaluation) {
915
+ if (this.useSDKEvaluation) {
916
916
  const _experience = experience_jsShared.selectExperience({
917
917
  experiences,
918
918
  profile
@@ -1026,7 +1026,7 @@ class Ninetailed {
1026
1026
  }
1027
1027
  });
1028
1028
  };
1029
- this.useClientSideEvaluation = useClientSideEvaluation;
1029
+ this.useSDKEvaluation = useSDKEvaluation;
1030
1030
  if (ninetailedApiClientInstanceOrOptions instanceof experience_jsShared.NinetailedApiClient) {
1031
1031
  this.apiClient = ninetailedApiClientInstanceOrOptions;
1032
1032
  } else {
package/index.esm.js CHANGED
@@ -597,7 +597,7 @@ class Ninetailed {
597
597
  onInitProfileId,
598
598
  componentViewTrackingThreshold = 2000,
599
599
  storageImpl,
600
- useClientSideEvaluation = false
600
+ useSDKEvaluation = false
601
601
  } = {}) {
602
602
  var _this = this;
603
603
  this.instance = void 0;
@@ -612,7 +612,7 @@ class Ninetailed {
612
612
  this.plugins = void 0;
613
613
  this.logger = void 0;
614
614
  this.componentViewTrackingThreshold = void 0;
615
- this.useClientSideEvaluation = void 0;
615
+ this.useSDKEvaluation = void 0;
616
616
  this.eventBuilder = void 0;
617
617
  this.page = async function (data, options) {
618
618
  try {
@@ -894,7 +894,7 @@ class Ninetailed {
894
894
  })));
895
895
  return;
896
896
  }
897
- if (this.useClientSideEvaluation) {
897
+ if (this.useSDKEvaluation) {
898
898
  const _experience = selectExperience({
899
899
  experiences,
900
900
  profile
@@ -1008,7 +1008,7 @@ class Ninetailed {
1008
1008
  }
1009
1009
  });
1010
1010
  };
1011
- this.useClientSideEvaluation = useClientSideEvaluation;
1011
+ this.useSDKEvaluation = useSDKEvaluation;
1012
1012
  if (ninetailedApiClientInstanceOrOptions instanceof NinetailedApiClient) {
1013
1013
  this.apiClient = ninetailedApiClientInstanceOrOptions;
1014
1014
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js",
3
- "version": "7.6.0-beta.6",
3
+ "version": "7.6.0-beta.7",
4
4
  "description": "Ninetailed SDK for javascript",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  "directory": "packages/sdks/javascript"
10
10
  },
11
11
  "dependencies": {
12
- "@ninetailed/experience.js-plugin-analytics": "7.6.0-beta.6",
13
- "@ninetailed/experience.js-shared": "7.6.0-beta.6",
12
+ "@ninetailed/experience.js-plugin-analytics": "7.6.0-beta.7",
13
+ "@ninetailed/experience.js-shared": "7.6.0-beta.7",
14
14
  "analytics": "0.8.1",
15
15
  "uuid": "9.0.0"
16
16
  },
@@ -35,7 +35,7 @@ type Options = {
35
35
  onInitProfileId?: OnInitProfileId;
36
36
  buildClientContext?: () => NinetailedRequestContext;
37
37
  storageImpl?: Storage;
38
- useClientSideEvaluation?: boolean;
38
+ useSDKEvaluation?: boolean;
39
39
  };
40
40
  type NinetailedApiClientInstanceOrOptions = NinetailedApiClient | NinetailedApiClientOptions;
41
41
  export declare class Ninetailed implements NinetailedInstance {
@@ -51,9 +51,9 @@ export declare class Ninetailed implements NinetailedInstance {
51
51
  readonly plugins: NinetailedPlugin[];
52
52
  readonly logger: Logger;
53
53
  private readonly componentViewTrackingThreshold;
54
- private readonly useClientSideEvaluation;
54
+ private readonly useSDKEvaluation;
55
55
  readonly eventBuilder: EventBuilder;
56
- constructor(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, { plugins, url, locale, requestTimeout, onLog, onError, buildClientContext, onInitProfileId, componentViewTrackingThreshold, storageImpl, useClientSideEvaluation, }?: Options);
56
+ constructor(ninetailedApiClientInstanceOrOptions: NinetailedApiClientInstanceOrOptions, { plugins, url, locale, requestTimeout, onLog, onError, buildClientContext, onInitProfileId, componentViewTrackingThreshold, storageImpl, useSDKEvaluation, }?: Options);
57
57
  page: (data?: Partial<PageviewProperties>, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
58
58
  track: (event: string, properties?: Properties, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;
59
59
  identify: (uid: string, traits?: Traits, options?: EventFunctionOptions) => Promise<import("./types").FlushResult>;