@ninetailed/experience.js 7.12.0-beta.0 → 7.12.1

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
@@ -143,6 +143,7 @@ class NinetailedCorePlugin extends experience_jsPluginAnalytics.NinetailedAnalyt
143
143
  }));
144
144
  });
145
145
  this.methods = {
146
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
146
147
  reset: (...args) => __awaiter(this, void 0, void 0, function* () {
147
148
  experience_jsShared.logger.debug('Resetting profile.');
148
149
  const instance = args[args.length - 1];
@@ -161,6 +162,7 @@ class NinetailedCorePlugin extends experience_jsPluginAnalytics.NinetailedAnalyt
161
162
  experience_jsShared.logger.info('Profile reset successful.');
162
163
  yield delay(10);
163
164
  }),
165
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
164
166
  debug: (...args) => __awaiter(this, void 0, void 0, function* () {
165
167
  const enabled = args[0];
166
168
  const instance = args[args.length - 1];
@@ -286,6 +288,7 @@ class NinetailedCorePlugin extends experience_jsPluginAnalytics.NinetailedAnalyt
286
288
  onTrackComponent() {
287
289
  return Promise.resolve();
288
290
  }
291
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
289
292
  setItemStart({
290
293
  abort,
291
294
  payload
@@ -1186,6 +1189,7 @@ class Ninetailed {
1186
1189
  }
1187
1190
  logInvalidElement(element) {
1188
1191
  const isObject = typeof element === 'object' && element !== null;
1192
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1189
1193
  const constructorName = isObject ? element.constructor.name : '';
1190
1194
  const isConstructorNameNotObject = constructorName && constructorName !== 'Object';
1191
1195
  experience_jsShared.logger.warn(`ElementSeenObserver.observeElement was called with an invalid element. Expected an Element but got ${typeof element}${isConstructorNameNotObject ? ` of type ${constructorName}` : ''}. This call will be ignored.`);
package/index.esm.js CHANGED
@@ -62,6 +62,9 @@ const SET_ENABLED_FEATURES = 'setEnabledFeatures';
62
62
  const EMPTY_MERGE_ID = 'nt:empty-merge-id';
63
63
 
64
64
  const PLUGIN_NAME = 'ninetailed:core';
65
+
66
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
+
65
68
  const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
66
69
  class NinetailedCorePlugin extends NinetailedAnalyticsPlugin {
67
70
  constructor({
@@ -105,6 +108,7 @@ class NinetailedCorePlugin extends NinetailedAnalyticsPlugin {
105
108
  }));
106
109
  };
107
110
  this.methods = {
111
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
108
112
  reset: async function (...args) {
109
113
  logger.debug('Resetting profile.');
110
114
  const instance = args[args.length - 1];
@@ -123,6 +127,7 @@ class NinetailedCorePlugin extends NinetailedAnalyticsPlugin {
123
127
  logger.info('Profile reset successful.');
124
128
  await delay(10);
125
129
  },
130
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
126
131
  debug: async function (...args) {
127
132
  const enabled = args[0];
128
133
  const instance = args[args.length - 1];
@@ -239,6 +244,7 @@ class NinetailedCorePlugin extends NinetailedAnalyticsPlugin {
239
244
  onTrackComponent() {
240
245
  return Promise.resolve();
241
246
  }
247
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
242
248
  setItemStart({
243
249
  abort,
244
250
  payload
@@ -1170,6 +1176,7 @@ class Ninetailed {
1170
1176
  }
1171
1177
  logInvalidElement(element) {
1172
1178
  const isObject = typeof element === 'object' && element !== null;
1179
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1173
1180
  const constructorName = isObject ? element.constructor.name : '';
1174
1181
  const isConstructorNameNotObject = constructorName && constructorName !== 'Object';
1175
1182
  logger.warn(`ElementSeenObserver.observeElement was called with an invalid element. Expected an Element but got ${typeof element}${isConstructorNameNotObject ? ` of type ${constructorName}` : ''}. This call will be ignored.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js",
3
- "version": "7.12.0-beta.0",
3
+ "version": "7.12.1",
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.12.0-beta.0",
13
- "@ninetailed/experience.js-shared": "7.12.0-beta.0",
12
+ "@ninetailed/experience.js-plugin-analytics": "7.12.1",
13
+ "@ninetailed/experience.js-shared": "7.12.1",
14
14
  "analytics": "0.8.1",
15
15
  "uuid": "9.0.0"
16
16
  },