@percy/cli-upload 1.11.0 → 1.13.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 +2 -5
- package/dist/utils.js +3 -2
- package/package.json +3 -3
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');
|
|
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';
|
|
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.
|
|
3
|
+
"version": "1.13.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.
|
|
35
|
+
"@percy/cli-command": "1.13.0",
|
|
36
36
|
"fast-glob": "^3.2.11",
|
|
37
37
|
"image-size": "^1.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "d2e812d14aa446fa580ffa75144a6280627b5a27"
|
|
40
40
|
}
|