@percy/cli-upload 1.12.0 → 1.14.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/dist/upload.js CHANGED
@@ -64,25 +64,23 @@ export const upload = command('upload', {
64
64
  cwd: args.dirname,
65
65
  fs
66
66
  });
67
-
68
67
  if (!pathnames.length) {
69
68
  exit(1, `No matching files found in '${args.dirname}'`);
70
69
  }
71
-
72
70
  let {
73
71
  default: imageSize
74
72
  } = await import('image-size');
75
73
  let {
76
74
  getImageResources
77
- } = await import('./utils.js'); // the internal discovery queue shares a concurrency with the snapshots queue
75
+ } = await import('./utils.js');
78
76
 
77
+ // the internal discovery queue shares a concurrency with the snapshots queue
79
78
  percy.set({
80
79
  discovery: {
81
80
  concurrency: config.concurrency
82
81
  }
83
82
  });
84
83
  yield* percy.yield.start();
85
-
86
84
  for (let relativePath of pathnames) {
87
85
  if (!ALLOWED_FILE_TYPES.test(relativePath)) {
88
86
  log.info(`Skipping unsupported file type: ${relativePath}`);
@@ -110,7 +108,6 @@ export const upload = command('upload', {
110
108
  });
111
109
  }
112
110
  }
113
-
114
111
  try {
115
112
  yield* percy.yield.stop();
116
113
  } catch (error) {
package/dist/utils.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import fs from 'fs';
2
2
  import { createResource, createRootResource } from '@percy/cli-command/utils';
3
- export { yieldAll } from '@percy/cli-command/utils'; // Returns root resource and image resource objects based on image properties. The root resource is
4
- // a generated DOM designed to display an image at it's native size without margins or padding.
3
+ export { yieldAll } from '@percy/cli-command/utils';
5
4
 
5
+ // Returns root resource and image resource objects based on image properties. The root resource is
6
+ // a generated DOM designed to display an image at it's native size without margins or padding.
6
7
  export async function getImageResources({
7
8
  name,
8
9
  type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-upload",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,9 +32,9 @@
32
32
  ]
33
33
  },
34
34
  "dependencies": {
35
- "@percy/cli-command": "1.12.0",
35
+ "@percy/cli-command": "1.14.0",
36
36
  "fast-glob": "^3.2.11",
37
37
  "image-size": "^1.0.0"
38
38
  },
39
- "gitHead": "4303b74df91f60e36065141289d2ef2277d1d6fc"
39
+ "gitHead": "fd72688e449d6dd3eafd346fc07879cb3bb01a4e"
40
40
  }