@uniformdev/cli 20.49.3-alpha.9 → 20.49.4-alpha.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.
- package/dist/index.mjs +9 -19
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1124,7 +1124,7 @@ import { PostHog } from "posthog-node";
|
|
|
1124
1124
|
// package.json
|
|
1125
1125
|
var package_default = {
|
|
1126
1126
|
name: "@uniformdev/cli",
|
|
1127
|
-
version: "20.49.
|
|
1127
|
+
version: "20.49.3",
|
|
1128
1128
|
description: "Uniform command line interface tool",
|
|
1129
1129
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1130
1130
|
main: "./cli.js",
|
|
@@ -2612,15 +2612,6 @@ var compareCompositionsOrEntriesWithoutAssetUrls = (source, target) => {
|
|
|
2612
2612
|
removeUrlsFromAssetParameters(structuredClone(target.object))
|
|
2613
2613
|
);
|
|
2614
2614
|
};
|
|
2615
|
-
var PUBLISH_TIMESTAMP_TOLERANCE_MS = 2e3;
|
|
2616
|
-
var compareCompositionsOrEntriesWithoutAssetUrlsForPublishing = (source, target) => {
|
|
2617
|
-
const sourceModified = new Date(source.object.modified).getTime();
|
|
2618
|
-
const targetModified = new Date(target.object.modified).getTime();
|
|
2619
|
-
if (sourceModified - targetModified > PUBLISH_TIMESTAMP_TOLERANCE_MS) {
|
|
2620
|
-
return false;
|
|
2621
|
-
}
|
|
2622
|
-
return compareCompositionsOrEntriesWithoutAssetUrls(source, target);
|
|
2623
|
-
};
|
|
2624
2615
|
var removeUrlFromAsset = (asset) => {
|
|
2625
2616
|
if (asset.asset.fields?.url?.value) {
|
|
2626
2617
|
asset.asset.fields.url.value = "";
|
|
@@ -4210,7 +4201,7 @@ var CompositionPublishModule = {
|
|
|
4210
4201
|
fileClient
|
|
4211
4202
|
});
|
|
4212
4203
|
},
|
|
4213
|
-
compareContents:
|
|
4204
|
+
compareContents: compareCompositionsOrEntriesWithoutAssetUrls,
|
|
4214
4205
|
onBeforeWriteObject: async (sourceObject) => {
|
|
4215
4206
|
return uploadFilesForCompositionOrEntry({
|
|
4216
4207
|
entity: sourceObject,
|
|
@@ -4751,6 +4742,7 @@ var CompositionUnpublishModule = {
|
|
|
4751
4742
|
console.log(`Composition ${id} was not found`);
|
|
4752
4743
|
return;
|
|
4753
4744
|
}
|
|
4745
|
+
console.log(`\u{1F41B} unpublishing composition: (id: ${id})`);
|
|
4754
4746
|
if (!whatIf) {
|
|
4755
4747
|
actions.push(client.removeComposition({ compositionId: id, state: CANVAS_PUBLISHED_STATE2 }));
|
|
4756
4748
|
}
|
|
@@ -4763,7 +4755,6 @@ var CompositionUnpublishModule = {
|
|
|
4763
4755
|
diff: () => diffJson2(targetObject.object, sourceObject.object)
|
|
4764
4756
|
});
|
|
4765
4757
|
}
|
|
4766
|
-
await Promise.all(actions);
|
|
4767
4758
|
}
|
|
4768
4759
|
};
|
|
4769
4760
|
|
|
@@ -6054,10 +6045,10 @@ var EntryPublishModule = {
|
|
|
6054
6045
|
command: "publish [ids]",
|
|
6055
6046
|
describe: "Publishes entry(ies)",
|
|
6056
6047
|
builder: (yargs42) => withConfiguration(
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6048
|
+
withDiffOptions(
|
|
6049
|
+
withApiOptions(
|
|
6050
|
+
withProjectOptions(
|
|
6051
|
+
withDiffOptions(
|
|
6061
6052
|
yargs42.positional("ids", {
|
|
6062
6053
|
describe: "Publishes entry(ies) by ID. Comma-separate multiple IDs. Use --all to publish all instead.",
|
|
6063
6054
|
type: "string"
|
|
@@ -6117,7 +6108,7 @@ var EntryPublishModule = {
|
|
|
6117
6108
|
fileClient
|
|
6118
6109
|
});
|
|
6119
6110
|
},
|
|
6120
|
-
compareContents:
|
|
6111
|
+
compareContents: compareCompositionsOrEntriesWithoutAssetUrls,
|
|
6121
6112
|
onBeforeWriteObject: async (sourceObject) => {
|
|
6122
6113
|
return uploadFilesForCompositionOrEntry({
|
|
6123
6114
|
entity: sourceObject,
|
|
@@ -6436,7 +6427,6 @@ var EntryUnpublishModule = {
|
|
|
6436
6427
|
diff: () => diffJson3(targetObject.object, sourceObject.object)
|
|
6437
6428
|
});
|
|
6438
6429
|
}
|
|
6439
|
-
await Promise.all(actions);
|
|
6440
6430
|
}
|
|
6441
6431
|
};
|
|
6442
6432
|
|
|
@@ -6670,7 +6660,7 @@ var EntryPatternPublishModule = {
|
|
|
6670
6660
|
fileClient
|
|
6671
6661
|
});
|
|
6672
6662
|
},
|
|
6673
|
-
compareContents:
|
|
6663
|
+
compareContents: compareCompositionsOrEntriesWithoutAssetUrls,
|
|
6674
6664
|
onBeforeWriteObject: async (sourceObject) => {
|
|
6675
6665
|
return uploadFilesForCompositionOrEntry({
|
|
6676
6666
|
entity: sourceObject,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.49.
|
|
3
|
+
"version": "20.49.4-alpha.2+0201693aca",
|
|
4
4
|
"description": "Uniform command line interface tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./cli.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@inquirer/prompts": "^7.10.1",
|
|
30
30
|
"@thi.ng/mime": "^2.2.23",
|
|
31
|
-
"@uniformdev/assets": "20.49.
|
|
32
|
-
"@uniformdev/canvas": "20.49.
|
|
33
|
-
"@uniformdev/context": "20.49.
|
|
34
|
-
"@uniformdev/files": "20.49.
|
|
35
|
-
"@uniformdev/project-map": "20.49.
|
|
36
|
-
"@uniformdev/redirect": "20.49.
|
|
37
|
-
"@uniformdev/richtext": "20.49.
|
|
31
|
+
"@uniformdev/assets": "20.49.4-alpha.2+0201693aca",
|
|
32
|
+
"@uniformdev/canvas": "20.49.4-alpha.2+0201693aca",
|
|
33
|
+
"@uniformdev/context": "20.49.4-alpha.2+0201693aca",
|
|
34
|
+
"@uniformdev/files": "20.49.4-alpha.2+0201693aca",
|
|
35
|
+
"@uniformdev/project-map": "20.49.4-alpha.2+0201693aca",
|
|
36
|
+
"@uniformdev/redirect": "20.49.4-alpha.2+0201693aca",
|
|
37
|
+
"@uniformdev/richtext": "20.49.4-alpha.2+0201693aca",
|
|
38
38
|
"call-bind": "^1.0.2",
|
|
39
39
|
"colorette": "2.0.20",
|
|
40
40
|
"cosmiconfig": "9.0.0",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "0201693aca0f20b06ffaaef22decc086ec730035"
|
|
85
85
|
}
|