@testim/testim-cli 3.272.0 → 3.274.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.274.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.274.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
  }
@@ -14552,12 +14552,9 @@
14552
14552
  "integrity": "sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw=="
14553
14553
  },
14554
14554
  "node_modules/tinycolor2": {
14555
- "version": "1.5.1",
14556
- "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.5.1.tgz",
14557
- "integrity": "sha512-BHlrsGeYN2OpkRpfAgkEwCMu6w8Quq8JkK/mp4c55NZP7OwceJObR1CPZt62TqiA0Y3J5pwuDX+fXDqc35REtg==",
14558
- "engines": {
14559
- "node": "*"
14560
- }
14555
+ "version": "1.5.2",
14556
+ "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.5.2.tgz",
14557
+ "integrity": "sha512-h80m9GPFGbcLzZByXlNSEhp1gf8Dy+VX/2JCGUZsWLo7lV1mnE/XlxGYgRBoMLJh1lIDXP0EMC4RPTjlRaV+Bg=="
14561
14558
  },
14562
14559
  "node_modules/tmp": {
14563
14560
  "version": "0.0.33",
@@ -22008,9 +22005,9 @@
22008
22005
  "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA=="
22009
22006
  },
22010
22007
  "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==",
22008
+ "version": "1.0.2",
22009
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
22010
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
22014
22011
  "dev": true,
22015
22012
  "requires": {
22016
22013
  "minimist": "^1.2.0"
@@ -26172,9 +26169,9 @@
26172
26169
  }
26173
26170
  },
26174
26171
  "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=="
26172
+ "version": "2.4.2",
26173
+ "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.4.2.tgz",
26174
+ "integrity": "sha512-gMxvPJYhP0O9n2pvcfYfIuYgbledAOJFcqRThtPRmjscaipiwcwPPKLytpVzMkG2HAN87Qmo2d4PtGiri1dSLA=="
26178
26175
  },
26179
26176
  "safer-buffer": {
26180
26177
  "version": "2.1.2",
@@ -27179,9 +27176,9 @@
27179
27176
  "integrity": "sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw=="
27180
27177
  },
27181
27178
  "tinycolor2": {
27182
- "version": "1.5.1",
27183
- "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.5.1.tgz",
27184
- "integrity": "sha512-BHlrsGeYN2OpkRpfAgkEwCMu6w8Quq8JkK/mp4c55NZP7OwceJObR1CPZt62TqiA0Y3J5pwuDX+fXDqc35REtg=="
27179
+ "version": "1.5.2",
27180
+ "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.5.2.tgz",
27181
+ "integrity": "sha512-h80m9GPFGbcLzZByXlNSEhp1gf8Dy+VX/2JCGUZsWLo7lV1mnE/XlxGYgRBoMLJh1lIDXP0EMC4RPTjlRaV+Bg=="
27185
27182
  },
27186
27183
  "tmp": {
27187
27184
  "version": "0.0.33",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testim/testim-cli",
3
- "version": "3.272.0",
3
+ "version": "3.274.0",
4
4
  "description": "Command line interface for running Testing on your CI",
5
5
  "author": "Oren Rubin",
6
6
  "contributors": [{