@uniformdev/cli 19.45.2-alpha.6 → 19.45.2-alpha.7
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/index.mjs +4 -3
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1515,17 +1515,18 @@ var extractAndDownloadUniformFilesForObject = async (object, options) => {
|
|
|
1515
1515
|
if (uniformFileUrlMatches) {
|
|
1516
1516
|
const fileDownloadQueue = new PQueue({ concurrency: 10 });
|
|
1517
1517
|
for (const match of uniformFileUrlMatches) {
|
|
1518
|
-
const url = match[1];
|
|
1518
|
+
const url = new URL(match[1]);
|
|
1519
1519
|
fileDownloadQueue.add(async () => {
|
|
1520
1520
|
try {
|
|
1521
|
-
const
|
|
1521
|
+
const fetchUrl = `${url.origin}${url.pathname}?format=original`;
|
|
1522
|
+
const fileName = urlToFileName(fetchUrl);
|
|
1522
1523
|
const fileAlreadyExists = await fsj.existsAsync(
|
|
1523
1524
|
join2(options.directory, FILES_DIRECTORY_NAME, fileName)
|
|
1524
1525
|
);
|
|
1525
1526
|
if (fileAlreadyExists) {
|
|
1526
1527
|
return;
|
|
1527
1528
|
}
|
|
1528
|
-
const response = await fetch(
|
|
1529
|
+
const response = await fetch(fetchUrl);
|
|
1529
1530
|
if (!response.ok) {
|
|
1530
1531
|
return;
|
|
1531
1532
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.45.2-alpha.
|
|
3
|
+
"version": "19.45.2-alpha.7+9afef6594",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@thi.ng/mime": "^2.2.23",
|
|
20
|
-
"@uniformdev/canvas": "19.45.2-alpha.
|
|
21
|
-
"@uniformdev/context": "19.45.2-alpha.
|
|
22
|
-
"@uniformdev/files": "19.45.2-alpha.
|
|
23
|
-
"@uniformdev/project-map": "19.45.2-alpha.
|
|
24
|
-
"@uniformdev/redirect": "19.45.2-alpha.
|
|
20
|
+
"@uniformdev/canvas": "19.45.2-alpha.7+9afef6594",
|
|
21
|
+
"@uniformdev/context": "19.45.2-alpha.7+9afef6594",
|
|
22
|
+
"@uniformdev/files": "19.45.2-alpha.7+9afef6594",
|
|
23
|
+
"@uniformdev/project-map": "19.45.2-alpha.7+9afef6594",
|
|
24
|
+
"@uniformdev/redirect": "19.45.2-alpha.7+9afef6594",
|
|
25
25
|
"colorette": "2.0.20",
|
|
26
26
|
"cosmiconfig": "8.2.0",
|
|
27
27
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "9afef6594b505ff451ade8bdd5a2d29e8e0e586c"
|
|
70
70
|
}
|