@uniformdev/cli 20.80.1 → 20.80.2
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.
|
@@ -21,7 +21,7 @@ import { dirname, extname, isAbsolute, resolve, sep } from "path";
|
|
|
21
21
|
// package.json
|
|
22
22
|
var package_default = {
|
|
23
23
|
name: "@uniformdev/cli",
|
|
24
|
-
version: "20.80.
|
|
24
|
+
version: "20.80.2",
|
|
25
25
|
description: "Uniform command line interface tool",
|
|
26
26
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
27
27
|
main: "./cli.js",
|
package/dist/defaultConfig.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
withFormatOptions,
|
|
26
26
|
withProjectOptions,
|
|
27
27
|
withTeamOptions
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KFSVRP42.mjs";
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
import * as dotenv from "dotenv";
|
|
@@ -9508,7 +9508,6 @@ var PromptPushModule = {
|
|
|
9508
9508
|
proxy,
|
|
9509
9509
|
directory,
|
|
9510
9510
|
mode,
|
|
9511
|
-
whatIf,
|
|
9512
9511
|
project: projectId,
|
|
9513
9512
|
diff: diffMode,
|
|
9514
9513
|
allowEmptySource,
|
|
@@ -9544,7 +9543,6 @@ var PromptPushModule = {
|
|
|
9544
9543
|
source,
|
|
9545
9544
|
target,
|
|
9546
9545
|
mode,
|
|
9547
|
-
whatIf,
|
|
9548
9546
|
allowEmptySource,
|
|
9549
9547
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9550
9548
|
});
|
|
@@ -13417,9 +13415,12 @@ var selectFilename2 = (source) => {
|
|
|
13417
13415
|
return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
|
|
13418
13416
|
};
|
|
13419
13417
|
var selectDisplayName17 = (source) => {
|
|
13418
|
+
if (typeof source.sourceUrl !== "string") {
|
|
13419
|
+
return `${source.id ?? "redirect"} (id: ${source.id})`;
|
|
13420
|
+
}
|
|
13420
13421
|
let pathName = source.sourceUrl;
|
|
13421
13422
|
if (pathName.length > 30) {
|
|
13422
|
-
const slashIndex =
|
|
13423
|
+
const slashIndex = pathName.indexOf("/", pathName.length - 30);
|
|
13423
13424
|
pathName = "..." + pathName.substring(slashIndex);
|
|
13424
13425
|
}
|
|
13425
13426
|
return `${pathName} (id: ${source.id})`;
|
|
@@ -13689,7 +13690,11 @@ var RedirectDefinitionUpdateModule = {
|
|
|
13689
13690
|
const fetch2 = nodeFetchProxy(proxy);
|
|
13690
13691
|
const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
13691
13692
|
const file = readFileToObject(filename);
|
|
13692
|
-
|
|
13693
|
+
if (!file || typeof file !== "object" || Array.isArray(file)) {
|
|
13694
|
+
console.error(`${filename} does not contain a YAML or JSON object`);
|
|
13695
|
+
process.exit(1);
|
|
13696
|
+
}
|
|
13697
|
+
await client.upsertRedirect("redirect" in file ? file.redirect : file);
|
|
13693
13698
|
}
|
|
13694
13699
|
};
|
|
13695
13700
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.80.
|
|
3
|
+
"version": "20.80.2",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@inquirer/prompts": "^8.5.2",
|
|
29
29
|
"@thi.ng/mime": "^2.2.23",
|
|
30
|
-
"@uniformdev/assets": "20.80.
|
|
31
|
-
"@uniformdev/automations-sdk": "20.80.
|
|
32
|
-
"@uniformdev/canvas": "20.80.
|
|
33
|
-
"@uniformdev/context": "20.80.
|
|
34
|
-
"@uniformdev/files": "20.80.
|
|
35
|
-
"@uniformdev/project-map": "20.80.
|
|
36
|
-
"@uniformdev/redirect": "20.80.
|
|
37
|
-
"@uniformdev/richtext": "20.80.
|
|
30
|
+
"@uniformdev/assets": "20.80.2",
|
|
31
|
+
"@uniformdev/automations-sdk": "20.80.2",
|
|
32
|
+
"@uniformdev/canvas": "20.80.2",
|
|
33
|
+
"@uniformdev/context": "20.80.2",
|
|
34
|
+
"@uniformdev/files": "20.80.2",
|
|
35
|
+
"@uniformdev/project-map": "20.80.2",
|
|
36
|
+
"@uniformdev/redirect": "20.80.2",
|
|
37
|
+
"@uniformdev/richtext": "20.80.2",
|
|
38
38
|
"call-bind": "^1.0.2",
|
|
39
39
|
"colorette": "2.0.20",
|
|
40
40
|
"cosmiconfig": "9.0.2",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "bca4d65db051ab479d8da8b50286457a23725c75"
|
|
82
82
|
}
|