@uniformdev/cli 20.80.1 → 20.80.2-alpha.14.sha-1c81418f05
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.
|
|
24
|
+
version: "20.81.0",
|
|
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-DTT46LYL.mjs";
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
import * as dotenv from "dotenv";
|
|
@@ -4775,6 +4775,11 @@ var ComponentPatternListModule = {
|
|
|
4775
4775
|
)
|
|
4776
4776
|
};
|
|
4777
4777
|
|
|
4778
|
+
// src/commands/canvas/componentInstanceEngineDataSource.ts
|
|
4779
|
+
import {
|
|
4780
|
+
CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE2
|
|
4781
|
+
} from "@uniformdev/canvas";
|
|
4782
|
+
|
|
4778
4783
|
// src/commands/canvas/commands/composition/_util.ts
|
|
4779
4784
|
var selectIdentifier3 = (response) => {
|
|
4780
4785
|
let baseId = response.composition._id;
|
|
@@ -4861,11 +4866,19 @@ function createComponentInstanceEngineDataSource({
|
|
|
4861
4866
|
name: "Uniform API",
|
|
4862
4867
|
objects: getObjects(),
|
|
4863
4868
|
deleteObject: async (providerId) => {
|
|
4869
|
+
const { id: compositionId } = parseSerializedId(providerId);
|
|
4870
|
+
const selector = { compositionId, editionId: toRawEntityId(providerId) };
|
|
4871
|
+
if (stateId === CANVAS_PUBLISHED_STATE2) {
|
|
4872
|
+
if (verbose) {
|
|
4873
|
+
console.log(`\u{1F41B} unpublish composition: (id: ${providerId})`);
|
|
4874
|
+
}
|
|
4875
|
+
await client.unpublish(selector);
|
|
4876
|
+
return;
|
|
4877
|
+
}
|
|
4864
4878
|
if (verbose) {
|
|
4865
4879
|
console.log(`\u{1F41B} delete composition: (id: ${providerId})`);
|
|
4866
4880
|
}
|
|
4867
|
-
|
|
4868
|
-
await client.remove({ compositionId, editionId });
|
|
4881
|
+
await client.remove(selector);
|
|
4869
4882
|
},
|
|
4870
4883
|
writeObject: async (object4) => {
|
|
4871
4884
|
if (verbose) {
|
|
@@ -7116,7 +7129,11 @@ var EntryListModule = {
|
|
|
7116
7129
|
};
|
|
7117
7130
|
|
|
7118
7131
|
// src/commands/canvas/entryEngineDataSource.ts
|
|
7119
|
-
import {
|
|
7132
|
+
import {
|
|
7133
|
+
ApiClientError as ApiClientError2,
|
|
7134
|
+
CANVAS_PUBLISHED_STATE as CANVAS_PUBLISHED_STATE3,
|
|
7135
|
+
convertEntryToPutEntry
|
|
7136
|
+
} from "@uniformdev/canvas";
|
|
7120
7137
|
|
|
7121
7138
|
// src/commands/canvas/commands/entry/_util.ts
|
|
7122
7139
|
var selectEntryIdentifier = (e) => {
|
|
@@ -7188,8 +7205,13 @@ function createEntryEngineDataSource({
|
|
|
7188
7205
|
name: "Uniform API",
|
|
7189
7206
|
objects: getObjects(),
|
|
7190
7207
|
deleteObject: async (providerId) => {
|
|
7191
|
-
const { id: entryId
|
|
7192
|
-
|
|
7208
|
+
const { id: entryId } = parseSerializedId(providerId);
|
|
7209
|
+
const selector = { entryId, editionId: toRawEntityId(providerId) };
|
|
7210
|
+
if (stateId === CANVAS_PUBLISHED_STATE3) {
|
|
7211
|
+
await client.unpublish(selector);
|
|
7212
|
+
return;
|
|
7213
|
+
}
|
|
7214
|
+
await client.remove(selector);
|
|
7193
7215
|
},
|
|
7194
7216
|
writeObject: async ({ object: object4 }) => {
|
|
7195
7217
|
await client.save({ ...convertEntryToPutEntry(object4), state: stateId });
|
|
@@ -9508,7 +9530,6 @@ var PromptPushModule = {
|
|
|
9508
9530
|
proxy,
|
|
9509
9531
|
directory,
|
|
9510
9532
|
mode,
|
|
9511
|
-
whatIf,
|
|
9512
9533
|
project: projectId,
|
|
9513
9534
|
diff: diffMode,
|
|
9514
9535
|
allowEmptySource,
|
|
@@ -9544,7 +9565,6 @@ var PromptPushModule = {
|
|
|
9544
9565
|
source,
|
|
9545
9566
|
target,
|
|
9546
9567
|
mode,
|
|
9547
|
-
whatIf,
|
|
9548
9568
|
allowEmptySource,
|
|
9549
9569
|
log: createSyncEngineConsoleLogger({ diffMode })
|
|
9550
9570
|
});
|
|
@@ -13417,9 +13437,12 @@ var selectFilename2 = (source) => {
|
|
|
13417
13437
|
return cleanFileName(source.sourceUrl.substring(index + 1)) + `_${source.id}`;
|
|
13418
13438
|
};
|
|
13419
13439
|
var selectDisplayName17 = (source) => {
|
|
13440
|
+
if (typeof source.sourceUrl !== "string") {
|
|
13441
|
+
return `${source.id ?? "redirect"} (id: ${source.id})`;
|
|
13442
|
+
}
|
|
13420
13443
|
let pathName = source.sourceUrl;
|
|
13421
13444
|
if (pathName.length > 30) {
|
|
13422
|
-
const slashIndex =
|
|
13445
|
+
const slashIndex = pathName.indexOf("/", pathName.length - 30);
|
|
13423
13446
|
pathName = "..." + pathName.substring(slashIndex);
|
|
13424
13447
|
}
|
|
13425
13448
|
return `${pathName} (id: ${source.id})`;
|
|
@@ -13689,7 +13712,11 @@ var RedirectDefinitionUpdateModule = {
|
|
|
13689
13712
|
const fetch2 = nodeFetchProxy(proxy);
|
|
13690
13713
|
const client = getRedirectClient({ apiKey, apiHost, fetch: fetch2, projectId });
|
|
13691
13714
|
const file = readFileToObject(filename);
|
|
13692
|
-
|
|
13715
|
+
if (!file || typeof file !== "object" || Array.isArray(file)) {
|
|
13716
|
+
console.error(`${filename} does not contain a YAML or JSON object`);
|
|
13717
|
+
process.exit(1);
|
|
13718
|
+
}
|
|
13719
|
+
await client.upsertRedirect("redirect" in file ? file.redirect : file);
|
|
13693
13720
|
}
|
|
13694
13721
|
};
|
|
13695
13722
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.80.
|
|
3
|
+
"version": "20.80.2-alpha.14.sha-1c81418f05",
|
|
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-alpha.14.sha-1c81418f05",
|
|
31
|
+
"@uniformdev/automations-sdk": "20.80.2-alpha.14.sha-1c81418f05",
|
|
32
|
+
"@uniformdev/canvas": "20.80.2-alpha.14.sha-1c81418f05",
|
|
33
|
+
"@uniformdev/context": "20.80.2-alpha.14.sha-1c81418f05",
|
|
34
|
+
"@uniformdev/files": "20.80.2-alpha.14.sha-1c81418f05",
|
|
35
|
+
"@uniformdev/project-map": "20.80.2-alpha.14.sha-1c81418f05",
|
|
36
|
+
"@uniformdev/redirect": "20.80.2-alpha.14.sha-1c81418f05",
|
|
37
|
+
"@uniformdev/richtext": "20.80.2-alpha.14.sha-1c81418f05",
|
|
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": "1c81418f0511232cde31935227eaec24af063252"
|
|
82
82
|
}
|