@uniformdev/cli 20.74.6-alpha.5 → 20.74.6-alpha.6
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 +14 -11
- package/package.json +10 -10
package/dist/index.mjs
CHANGED
|
@@ -4659,11 +4659,11 @@ function splitSerializedIds(ids) {
|
|
|
4659
4659
|
return ids.split(",").map((id) => id.trim()).filter(Boolean);
|
|
4660
4660
|
}
|
|
4661
4661
|
function toRawEntityIds(serializedIds) {
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
});
|
|
4666
|
-
return
|
|
4662
|
+
return Array.from(new Set(serializedIds.map(toRawEntityId)));
|
|
4663
|
+
}
|
|
4664
|
+
function toRawEntityId(serializedId) {
|
|
4665
|
+
const { id, editionId } = parseSerializedId(serializedId);
|
|
4666
|
+
return editionId ?? id;
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
4669
|
// src/commands/canvas/componentInstanceEngineDataSource.ts
|
|
@@ -5412,9 +5412,9 @@ var CompositionUnpublishModule = {
|
|
|
5412
5412
|
console.log(`Composition ${id} did not have a draft (removing published)`);
|
|
5413
5413
|
}
|
|
5414
5414
|
if (!whatIf) {
|
|
5415
|
-
const { id: compositionId
|
|
5415
|
+
const { id: compositionId } = parseSerializedId(id);
|
|
5416
5416
|
actions.push(
|
|
5417
|
-
client.unpublish({ compositionId, editionId }).catch((err) => {
|
|
5417
|
+
client.unpublish({ compositionId, editionId: toRawEntityId(id) }).catch((err) => {
|
|
5418
5418
|
const isNotFound = err instanceof ApiClientError && err.statusCode === 404;
|
|
5419
5419
|
if (isNotFound) {
|
|
5420
5420
|
console.warn(
|
|
@@ -7210,9 +7210,9 @@ var EntryUnpublishModule = {
|
|
|
7210
7210
|
console.log(`Entry ${id} did not have a draft (removing published)`);
|
|
7211
7211
|
}
|
|
7212
7212
|
if (!whatIf) {
|
|
7213
|
-
const { id: entryId
|
|
7213
|
+
const { id: entryId } = parseSerializedId(id);
|
|
7214
7214
|
actions.push(
|
|
7215
|
-
client.unpublish({ entryId, editionId }).catch((err) => {
|
|
7215
|
+
client.unpublish({ entryId, editionId: toRawEntityId(id) }).catch((err) => {
|
|
7216
7216
|
const isNotFound = err instanceof ApiClientError3 && err.statusCode === 404;
|
|
7217
7217
|
if (isNotFound) {
|
|
7218
7218
|
console.warn(
|
|
@@ -7781,9 +7781,9 @@ var EntryPatternUnpublishModule = {
|
|
|
7781
7781
|
console.log(`Entry pattern ${id} did not have a draft (removing published)`);
|
|
7782
7782
|
}
|
|
7783
7783
|
if (!whatIf) {
|
|
7784
|
-
const { id: entryId
|
|
7784
|
+
const { id: entryId } = parseSerializedId(id);
|
|
7785
7785
|
actions.push(
|
|
7786
|
-
client.unpublish({ entryId, editionId }).catch((err) => {
|
|
7786
|
+
client.unpublish({ entryId, editionId: toRawEntityId(id) }).catch((err) => {
|
|
7787
7787
|
const isNotFound = err instanceof ApiClientError4 && err.statusCode === 404;
|
|
7788
7788
|
if (isNotFound) {
|
|
7789
7789
|
console.warn(
|
|
@@ -13921,6 +13921,9 @@ var SyncPushModule = {
|
|
|
13921
13921
|
successText: (outcome) => outcome.skippedReason ? `skipped ${label}: ${outcome.skippedReason}` : `published ${label}`,
|
|
13922
13922
|
failLabel: `publishing ${label}`,
|
|
13923
13923
|
run: async () => {
|
|
13924
|
+
if (otherParams.whatIf) {
|
|
13925
|
+
return { skippedReason: "what-if run did not write preview" };
|
|
13926
|
+
}
|
|
13924
13927
|
let ids;
|
|
13925
13928
|
if (scope === "pushed") {
|
|
13926
13929
|
const written = pushedIds.get(entityType) ?? [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.74.6-alpha.
|
|
3
|
+
"version": "20.74.6-alpha.6+1b8686943a",
|
|
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.74.6-alpha.
|
|
31
|
-
"@uniformdev/automations-sdk": "20.74.6-alpha.
|
|
32
|
-
"@uniformdev/canvas": "20.74.6-alpha.
|
|
33
|
-
"@uniformdev/context": "20.74.6-alpha.
|
|
34
|
-
"@uniformdev/files": "20.74.6-alpha.
|
|
35
|
-
"@uniformdev/project-map": "20.74.6-alpha.
|
|
36
|
-
"@uniformdev/redirect": "20.74.6-alpha.
|
|
37
|
-
"@uniformdev/richtext": "20.74.6-alpha.
|
|
30
|
+
"@uniformdev/assets": "20.74.6-alpha.6+1b8686943a",
|
|
31
|
+
"@uniformdev/automations-sdk": "20.74.6-alpha.6+1b8686943a",
|
|
32
|
+
"@uniformdev/canvas": "20.74.6-alpha.6+1b8686943a",
|
|
33
|
+
"@uniformdev/context": "20.74.6-alpha.6+1b8686943a",
|
|
34
|
+
"@uniformdev/files": "20.74.6-alpha.6+1b8686943a",
|
|
35
|
+
"@uniformdev/project-map": "20.74.6-alpha.6+1b8686943a",
|
|
36
|
+
"@uniformdev/redirect": "20.74.6-alpha.6+1b8686943a",
|
|
37
|
+
"@uniformdev/richtext": "20.74.6-alpha.6+1b8686943a",
|
|
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": "1b8686943aec6f9c1e87d1364318328cfce5fe72"
|
|
82
82
|
}
|