@uniformdev/cli 19.51.1-alpha.1 → 19.51.1-alpha.22
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 +16 -17
- package/package.json +14 -14
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// ../../node_modules/.pnpm/tsup@7.2.0_postcss@8.4.28_ts-node@10.9.1_typescript@5.
|
|
3
|
+
// ../../node_modules/.pnpm/tsup@7.2.0_postcss@8.4.28_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/assets/esm_shims.js
|
|
4
4
|
import { fileURLToPath } from "url";
|
|
5
5
|
import path from "path";
|
|
6
6
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1599,8 +1599,8 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
1599
1599
|
fileUploadQueue.add(async () => {
|
|
1600
1600
|
try {
|
|
1601
1601
|
const fileAlreadyExistsChecks = await Promise.all([
|
|
1602
|
-
options.fileClient.
|
|
1603
|
-
options.fileClient.
|
|
1602
|
+
options.fileClient.get({ url }).catch(() => null),
|
|
1603
|
+
options.fileClient.get({ sourceId: hash }).catch(() => null)
|
|
1604
1604
|
]);
|
|
1605
1605
|
if (fileAlreadyExistsChecks.some((check) => check !== null)) {
|
|
1606
1606
|
return;
|
|
@@ -1632,13 +1632,12 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
})();
|
|
1635
|
-
const { id, method, uploadUrl } = await options.fileClient.
|
|
1635
|
+
const { id, method, uploadUrl } = await options.fileClient.insert({
|
|
1636
1636
|
name: fileName,
|
|
1637
1637
|
mediaType: preferredType(url.split(".").at(-1) ?? ""),
|
|
1638
1638
|
size: fileBuffer.length,
|
|
1639
1639
|
width,
|
|
1640
1640
|
height,
|
|
1641
|
-
projectId: options.projectId,
|
|
1642
1641
|
sourceId: hash
|
|
1643
1642
|
});
|
|
1644
1643
|
const uploadResponse = await fetch(uploadUrl, {
|
|
@@ -1650,8 +1649,8 @@ var extractAndUploadUniformFilesForObject = async (object, options) => {
|
|
|
1650
1649
|
return;
|
|
1651
1650
|
}
|
|
1652
1651
|
const checkForFile = async () => {
|
|
1653
|
-
const file = await options.fileClient.
|
|
1654
|
-
if (!file || file.state !== FILE_READY_STATE) {
|
|
1652
|
+
const file = await options.fileClient.get({ id });
|
|
1653
|
+
if (!file || file.state !== FILE_READY_STATE || !file.url) {
|
|
1655
1654
|
await new Promise((resolve2) => setTimeout(resolve2, 500));
|
|
1656
1655
|
return checkForFile();
|
|
1657
1656
|
}
|
|
@@ -1685,8 +1684,8 @@ var swapOutUniformFileUrlsForTargetProject = async (object, options) => {
|
|
|
1685
1684
|
fileUrlReplacementQueue.add(async () => {
|
|
1686
1685
|
try {
|
|
1687
1686
|
const fileAlreadyExistsChecks = await Promise.all([
|
|
1688
|
-
options.fileClient.
|
|
1689
|
-
options.fileClient.
|
|
1687
|
+
options.fileClient.get({ url }).catch(() => null),
|
|
1688
|
+
options.fileClient.get({ sourceId: hash }).catch(() => null)
|
|
1690
1689
|
]);
|
|
1691
1690
|
const file = fileAlreadyExistsChecks.find((check) => check !== null);
|
|
1692
1691
|
if (!file) {
|
|
@@ -4779,7 +4778,7 @@ import { PostHog } from "posthog-node";
|
|
|
4779
4778
|
// package.json
|
|
4780
4779
|
var package_default = {
|
|
4781
4780
|
name: "@uniformdev/cli",
|
|
4782
|
-
version: "19.
|
|
4781
|
+
version: "19.57.0",
|
|
4783
4782
|
description: "Uniform command line interface tool",
|
|
4784
4783
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
4785
4784
|
main: "./cli.js",
|
|
@@ -4802,17 +4801,17 @@ var package_default = {
|
|
|
4802
4801
|
"@uniformdev/project-map": "workspace:*",
|
|
4803
4802
|
"@uniformdev/redirect": "workspace:*",
|
|
4804
4803
|
colorette: "2.0.20",
|
|
4805
|
-
cosmiconfig: "8.
|
|
4804
|
+
cosmiconfig: "8.3.6",
|
|
4806
4805
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
4807
4806
|
diff: "^5.0.0",
|
|
4808
4807
|
dotenv: "^16.0.3",
|
|
4809
4808
|
execa: "5.1.1",
|
|
4810
4809
|
"fs-jetpack": "5.1.0",
|
|
4811
|
-
graphql: "16.8.
|
|
4810
|
+
graphql: "16.8.1",
|
|
4812
4811
|
"graphql-request": "6.1.0",
|
|
4813
4812
|
"https-proxy-agent": "^7.0.0",
|
|
4814
4813
|
"image-size": "^1.0.2",
|
|
4815
|
-
inquirer: "9.2.
|
|
4814
|
+
inquirer: "9.2.11",
|
|
4816
4815
|
"isomorphic-git": "1.24.5",
|
|
4817
4816
|
"isomorphic-unfetch": "^3.1.0",
|
|
4818
4817
|
"js-yaml": "^4.1.0",
|
|
@@ -4828,12 +4827,12 @@ var package_default = {
|
|
|
4828
4827
|
zod: "3.21.4"
|
|
4829
4828
|
},
|
|
4830
4829
|
devDependencies: {
|
|
4831
|
-
"@types/diff": "5.0.
|
|
4830
|
+
"@types/diff": "5.0.4",
|
|
4832
4831
|
"@types/inquirer": "9.0.3",
|
|
4833
|
-
"@types/js-yaml": "4.0.
|
|
4834
|
-
"@types/jsonwebtoken": "9.0.
|
|
4832
|
+
"@types/js-yaml": "4.0.6",
|
|
4833
|
+
"@types/jsonwebtoken": "9.0.3",
|
|
4835
4834
|
"@types/lodash.isequalwith": "4.4.7",
|
|
4836
|
-
"@types/node": "18.17.
|
|
4835
|
+
"@types/node": "18.17.17",
|
|
4837
4836
|
"@types/yargs": "17.0.24"
|
|
4838
4837
|
},
|
|
4839
4838
|
bin: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "19.51.1-alpha.
|
|
3
|
+
"version": "19.51.1-alpha.22+ee274f045",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -17,23 +17,23 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@thi.ng/mime": "^2.2.23",
|
|
20
|
-
"@uniformdev/canvas": "19.51.1-alpha.
|
|
21
|
-
"@uniformdev/context": "19.51.1-alpha.
|
|
22
|
-
"@uniformdev/files": "19.51.1-alpha.
|
|
23
|
-
"@uniformdev/project-map": "19.51.1-alpha.
|
|
24
|
-
"@uniformdev/redirect": "19.51.1-alpha.
|
|
20
|
+
"@uniformdev/canvas": "19.51.1-alpha.22+ee274f045",
|
|
21
|
+
"@uniformdev/context": "19.51.1-alpha.22+ee274f045",
|
|
22
|
+
"@uniformdev/files": "19.51.1-alpha.22+ee274f045",
|
|
23
|
+
"@uniformdev/project-map": "19.51.1-alpha.22+ee274f045",
|
|
24
|
+
"@uniformdev/redirect": "19.51.1-alpha.22+ee274f045",
|
|
25
25
|
"colorette": "2.0.20",
|
|
26
|
-
"cosmiconfig": "8.
|
|
26
|
+
"cosmiconfig": "8.3.6",
|
|
27
27
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
28
28
|
"diff": "^5.0.0",
|
|
29
29
|
"dotenv": "^16.0.3",
|
|
30
30
|
"execa": "5.1.1",
|
|
31
31
|
"fs-jetpack": "5.1.0",
|
|
32
|
-
"graphql": "16.8.
|
|
32
|
+
"graphql": "16.8.1",
|
|
33
33
|
"graphql-request": "6.1.0",
|
|
34
34
|
"https-proxy-agent": "^7.0.0",
|
|
35
35
|
"image-size": "^1.0.2",
|
|
36
|
-
"inquirer": "9.2.
|
|
36
|
+
"inquirer": "9.2.11",
|
|
37
37
|
"isomorphic-git": "1.24.5",
|
|
38
38
|
"isomorphic-unfetch": "^3.1.0",
|
|
39
39
|
"js-yaml": "^4.1.0",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"zod": "3.21.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/diff": "5.0.
|
|
52
|
+
"@types/diff": "5.0.4",
|
|
53
53
|
"@types/inquirer": "9.0.3",
|
|
54
|
-
"@types/js-yaml": "4.0.
|
|
55
|
-
"@types/jsonwebtoken": "9.0.
|
|
54
|
+
"@types/js-yaml": "4.0.6",
|
|
55
|
+
"@types/jsonwebtoken": "9.0.3",
|
|
56
56
|
"@types/lodash.isequalwith": "4.4.7",
|
|
57
|
-
"@types/node": "18.17.
|
|
57
|
+
"@types/node": "18.17.17",
|
|
58
58
|
"@types/yargs": "17.0.24"
|
|
59
59
|
},
|
|
60
60
|
"bin": {
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "ee274f04521c4024826b21fee01d50fcc1e414a1"
|
|
70
70
|
}
|