@testim/testim-cli 3.272.0 → 3.273.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.
@@ -98,7 +98,7 @@ function postFullRes(url, body, headers = {}, timeout = DEFAULT_REQUEST_TIMEOUT,
98
98
  request.retry(retry);
99
99
  }
100
100
 
101
- return promiseFromCallback((callback) => request.end(callback)).catch(e => e, e => {
101
+ return promiseFromCallback((callback) => request.end(callback)).catch(e => {
102
102
  e.url = url;
103
103
  e.originalRequestTimeout = timeout;
104
104
  e.additionalSetHeaders = headers;
@@ -66,14 +66,14 @@ function generateToken() {
66
66
  _isNgrokWhitelisted = customToken.isNgrokWhitelisted;
67
67
  return _serverToken;
68
68
  })
69
- .catch(error => error.message.includes('Unauthorized'), () => {
70
- throw new ArgError(
71
- 'Error trying to retrieve CLI token. ' +
72
- 'Your CLI token and project might not match. ' +
73
- 'Please make sure to pass `--project` and `--token` that' +
74
- ' match to each other or make sure they match in your ~/.testim file.');
75
- })
76
69
  .catch(error => {
70
+ if (error.message.includes('Unauthorized')) {
71
+ throw new ArgError(
72
+ 'Error trying to retrieve CLI token. ' +
73
+ 'Your CLI token and project might not match. ' +
74
+ 'Please make sure to pass `--project` and `--token` that' +
75
+ ' match to each other or make sure they match in your ~/.testim file.');
76
+ }
77
77
  logger.error(`While trying to retrieve CLI token. caught error: ${error}`, { projectId: _projectId });
78
78
  throw new ArgError(`While trying to retrieve CLI token, caught error: ${error}`);
79
79
  });
@@ -455,7 +455,7 @@ async function uploadArtifact(projectId, testId, testResultId, content, subType,
455
455
 
456
456
  await pRetry(
457
457
  () => postAuthFormData(`/storage${storagePath}`, {}, files, { 'X-Asset-Encoding': 'gzip' }),
458
- { retries: DEFAULT_REQUEST_RETRY, factor: 1 }
458
+ { retries: DEFAULT_REQUEST_RETRY, factor: 1 },
459
459
  );
460
460
  return storagePath;
461
461
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@testim/testim-cli",
3
- "version": "3.272.0",
3
+ "version": "3.273.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@testim/testim-cli",
9
- "version": "3.272.0",
9
+ "version": "3.273.0",
10
10
  "license": "Proprietary",
11
11
  "dependencies": {
12
12
  "@applitools/eyes-sdk-core": "13.11.21",
@@ -7709,9 +7709,9 @@
7709
7709
  "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
7710
7710
  },
7711
7711
  "node_modules/json5": {
7712
- "version": "1.0.1",
7713
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
7714
- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
7712
+ "version": "1.0.2",
7713
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
7714
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
7715
7715
  "dev": true,
7716
7716
  "dependencies": {
7717
7717
  "minimist": "^1.2.0"
@@ -13305,9 +13305,9 @@
13305
13305
  }
13306
13306
  },
13307
13307
  "node_modules/safe-stable-stringify": {
13308
- "version": "2.4.1",
13309
- "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.1.tgz",
13310
- "integrity": "sha512-dVHE6bMtS/bnL2mwualjc6IxEv1F+OCUpA46pKUj6F8uDbUM0jCCulPqRNPSnWwGNKx5etqMjZYdXtrm5KJZGA==",
13308
+ "version": "2.4.2",
13309
+ "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.2.tgz",
13310
+ "integrity": "sha512-gMxvPJYhP0O9n2pvcfYfIuYgbledAOJFcqRThtPRmjscaipiwcwPPKLytpVzMkG2HAN87Qmo2d4PtGiri1dSLA==",
13311
13311
  "engines": {
13312
13312
  "node": ">=10"
13313
13313
  }
@@ -22008,9 +22008,9 @@
22008
22008
  "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
22009
22009
  },
22010
22010
  "json5": {
22011
- "version": "1.0.1",
22012
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
22013
- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
22011
+ "version": "1.0.2",
22012
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
22013
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
22014
22014
  "dev": true,
22015
22015
  "requires": {
22016
22016
  "minimist": "^1.2.0"
@@ -26172,9 +26172,9 @@
26172
26172
  }
26173
26173
  },
26174
26174
  "safe-stable-stringify": {
26175
- "version": "2.4.1",
26176
- "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.1.tgz",
26177
- "integrity": "sha512-dVHE6bMtS/bnL2mwualjc6IxEv1F+OCUpA46pKUj6F8uDbUM0jCCulPqRNPSnWwGNKx5etqMjZYdXtrm5KJZGA=="
26175
+ "version": "2.4.2",
26176
+ "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.2.tgz",
26177
+ "integrity": "sha512-gMxvPJYhP0O9n2pvcfYfIuYgbledAOJFcqRThtPRmjscaipiwcwPPKLytpVzMkG2HAN87Qmo2d4PtGiri1dSLA=="
26178
26178
  },
26179
26179
  "safer-buffer": {
26180
26180
  "version": "2.1.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testim/testim-cli",
3
- "version": "3.272.0",
3
+ "version": "3.273.0",
4
4
  "description": "Command line interface for running Testing on your CI",
5
5
  "author": "Oren Rubin",
6
6
  "contributors": [{