@uniformdev/cli 19.45.2-alpha.6 → 19.45.2-alpha.8

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -3
  2. 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 fileName = urlToFileName(url);
1521
+ const fetchUrl = `${url.origin}${url.pathname}?format=original`;
1522
+ const fileName = urlToFileName(url.toString());
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(url);
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.6+ea4628ae5",
3
+ "version": "19.45.2-alpha.8+1d53453a2",
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.6+ea4628ae5",
21
- "@uniformdev/context": "19.45.2-alpha.6+ea4628ae5",
22
- "@uniformdev/files": "19.45.2-alpha.6+ea4628ae5",
23
- "@uniformdev/project-map": "19.45.2-alpha.6+ea4628ae5",
24
- "@uniformdev/redirect": "19.45.2-alpha.6+ea4628ae5",
20
+ "@uniformdev/canvas": "19.45.2-alpha.8+1d53453a2",
21
+ "@uniformdev/context": "19.45.2-alpha.8+1d53453a2",
22
+ "@uniformdev/files": "19.45.2-alpha.8+1d53453a2",
23
+ "@uniformdev/project-map": "19.45.2-alpha.8+1d53453a2",
24
+ "@uniformdev/redirect": "19.45.2-alpha.8+1d53453a2",
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": "ea4628ae5765af32b174d3dac546fed03170c9aa"
69
+ "gitHead": "1d53453a2a1c232e6fab4e3d24893c72158a25ad"
70
70
  }