@ninetailed/experience.js 2.2.0-beta.0 → 2.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.esm.js CHANGED
@@ -2244,7 +2244,7 @@ const fetchWithTimeout = (input, init) => __awaiter(void 0, void 0, void 0, func
2244
2244
  } = init;
2245
2245
  const controller = new AbortController();
2246
2246
  const id = setTimeout(() => {
2247
- logger.error(new Error('Ninetailed Request timed out.'));
2247
+ logger.warn('Ninetailed Request timed out.');
2248
2248
  controller.abort();
2249
2249
  }, timeout);
2250
2250
  const response = yield fetch(input, Object.assign(Object.assign({}, init), {
@@ -2292,8 +2292,6 @@ class NinetailedApiClient {
2292
2292
  logger.debug('Profile Request completed.');
2293
2293
  return data;
2294
2294
  } catch (error) {
2295
- // TODO only during debug.
2296
- logger.error(error);
2297
2295
  throw error;
2298
2296
  }
2299
2297
  });
package/index.umd.js CHANGED
@@ -2305,7 +2305,7 @@
2305
2305
  timeout = init.timeout;
2306
2306
  controller = new AbortController();
2307
2307
  id = setTimeout(function () {
2308
- logger.error(new Error('Ninetailed Request timed out.'));
2308
+ logger.warn('Ninetailed Request timed out.');
2309
2309
  controller.abort();
2310
2310
  }, timeout);
2311
2311
  return [4
@@ -2381,9 +2381,7 @@
2381
2381
  , data];
2382
2382
 
2383
2383
  case 4:
2384
- error_1 = _a.sent(); // TODO only during debug.
2385
-
2386
- logger.error(error_1);
2384
+ error_1 = _a.sent();
2387
2385
  throw error_1;
2388
2386
 
2389
2387
  case 5:
@@ -1,3 +1,3 @@
1
- export declare type Baseline<P = unknown> = P & {
1
+ export declare type Baseline<P> = P & {
2
2
  id: string;
3
3
  };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ninetailed/experience.js",
3
- "version": "2.2.0-beta.0",
3
+ "version": "2.2.0",
4
4
  "main": "./index.umd.js",
5
5
  "module": "./index.esm.js",
6
6
  "typings": "./index.d.ts",
7
7
  "dependencies": {
8
8
  "analytics": "^0.8.0",
9
- "@ninetailed/experience.js-shared": "2.2.0-beta.0",
9
+ "@ninetailed/experience.js-shared": "2.2.0",
10
10
  "uuid": "^8.3.2",
11
11
  "ts-toolbelt": "^9.6.0",
12
12
  "locale-enum": "^1.1.1",