@percy/cli-upload 1.22.0-alpha.0 → 1.22.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/utils.js +2 -2
- package/package.json +3 -3
package/dist/utils.js
CHANGED
|
@@ -12,8 +12,8 @@ export async function getImageResources({
|
|
|
12
12
|
relativePath,
|
|
13
13
|
absolutePath
|
|
14
14
|
}) {
|
|
15
|
-
let rootUrl = `http://
|
|
16
|
-
let imageUrl = `http://
|
|
15
|
+
let rootUrl = `http://local/${encodeURIComponent(name)}`;
|
|
16
|
+
let imageUrl = `http://local/${encodeURIComponent(relativePath)}`;
|
|
17
17
|
let content = await fs.promises.readFile(absolutePath);
|
|
18
18
|
let mimetype = `image/${type}`;
|
|
19
19
|
return [createRootResource(rootUrl, `
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/cli-upload",
|
|
3
|
-
"version": "1.22.0
|
|
3
|
+
"version": "1.22.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.22.0
|
|
35
|
+
"@percy/cli-command": "1.22.0",
|
|
36
36
|
"fast-glob": "^3.2.11",
|
|
37
37
|
"image-size": "^1.0.0"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "473ae8925585bc77f584bbcaa7058fc967bd3c61"
|
|
40
40
|
}
|