@uniformdev/cli 19.86.1-alpha.10 → 19.86.1-alpha.12

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 +7 -6
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -801,11 +801,12 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
801
801
  return;
802
802
  }
803
803
  const localFileName = urlToFileName(url);
804
- const fileExistsLocally = await fsj.existsAsync(
805
- join2(writeDirectory, FILES_DIRECTORY_NAME, localFileName)
806
- );
804
+ const expectedFilePath = join2(writeDirectory, FILES_DIRECTORY_NAME, localFileName);
805
+ const fileExistsLocally = await fsj.existsAsync(expectedFilePath);
807
806
  if (!fileExistsLocally) {
808
- console.warn(`Skipping file ${url} as we couldn't find a local copy`);
807
+ console.warn(
808
+ `Skipping file ${url} as we couldn't find a local copy (looked at ${expectedFilePath})`
809
+ );
809
810
  return;
810
811
  }
811
812
  const fileBuffer = await fsj.readAsync(
@@ -857,8 +858,8 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
857
858
  return file.url;
858
859
  };
859
860
  const abortTimeout = setTimeout(() => {
860
- throw new Error(`Failed to upload file ${url}`);
861
- }, 1e4);
861
+ throw new Error(`Failed to upload file ${url} (upload timed out)`);
862
+ }, 3e4);
862
863
  const uploadedFileUrl = await checkForFile();
863
864
  clearTimeout(abortTimeout);
864
865
  objectAsString = objectAsString.replaceAll(`"${url}"`, `"${uploadedFileUrl}"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.86.1-alpha.10+3a63322d8",
3
+ "version": "19.86.1-alpha.12+269e1d3d8",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -17,12 +17,12 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@thi.ng/mime": "^2.2.23",
20
- "@uniformdev/assets": "19.86.1-alpha.10+3a63322d8",
21
- "@uniformdev/canvas": "19.86.1-alpha.10+3a63322d8",
22
- "@uniformdev/context": "19.86.1-alpha.10+3a63322d8",
23
- "@uniformdev/files": "19.86.1-alpha.10+3a63322d8",
24
- "@uniformdev/project-map": "19.86.1-alpha.10+3a63322d8",
25
- "@uniformdev/redirect": "19.86.1-alpha.10+3a63322d8",
20
+ "@uniformdev/assets": "19.86.1-alpha.12+269e1d3d8",
21
+ "@uniformdev/canvas": "19.86.1-alpha.12+269e1d3d8",
22
+ "@uniformdev/context": "19.86.1-alpha.12+269e1d3d8",
23
+ "@uniformdev/files": "19.86.1-alpha.12+269e1d3d8",
24
+ "@uniformdev/project-map": "19.86.1-alpha.12+269e1d3d8",
25
+ "@uniformdev/redirect": "19.86.1-alpha.12+269e1d3d8",
26
26
  "call-bind": "^1.0.2",
27
27
  "colorette": "2.0.20",
28
28
  "cosmiconfig": "8.3.6",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "3a63322d8e6be500eec846e067b9afb7cd28c6fd"
72
+ "gitHead": "269e1d3d882fbfbef93721434d142475c32a5891"
73
73
  }