@uniformdev/cli 20.51.1-alpha.14 → 20.53.1-alpha.7
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 +11 -43
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -722,7 +722,7 @@ import mitt from "mitt";
|
|
|
722
722
|
|
|
723
723
|
// src/sync/serializedDequal.ts
|
|
724
724
|
var has = Object.prototype.hasOwnProperty;
|
|
725
|
-
var ignoredProperties = /* @__PURE__ */ new Set(["created", "modified", "updated"
|
|
725
|
+
var ignoredProperties = /* @__PURE__ */ new Set(["created", "modified", "updated"]);
|
|
726
726
|
function serializedDequal(foo, bar) {
|
|
727
727
|
let ctor, len;
|
|
728
728
|
if (foo === bar) {
|
|
@@ -1107,7 +1107,7 @@ import { PostHog } from "posthog-node";
|
|
|
1107
1107
|
// package.json
|
|
1108
1108
|
var package_default = {
|
|
1109
1109
|
name: "@uniformdev/cli",
|
|
1110
|
-
version: "20.
|
|
1110
|
+
version: "20.53.0",
|
|
1111
1111
|
description: "Uniform command line interface tool",
|
|
1112
1112
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1113
1113
|
main: "./cli.js",
|
|
@@ -7090,10 +7090,6 @@ function getLabelClient(options) {
|
|
|
7090
7090
|
}
|
|
7091
7091
|
|
|
7092
7092
|
// src/commands/canvas/labelsEngineDataSource.ts
|
|
7093
|
-
function normalizeLabelForSync(label) {
|
|
7094
|
-
const { projectId: _projectId, ...labelWithoutProjectId } = label;
|
|
7095
|
-
return labelWithoutProjectId;
|
|
7096
|
-
}
|
|
7097
7093
|
function createLabelsEngineDataSource({
|
|
7098
7094
|
client
|
|
7099
7095
|
}) {
|
|
@@ -7104,7 +7100,7 @@ function createLabelsEngineDataSource({
|
|
|
7104
7100
|
id: label.label.publicId,
|
|
7105
7101
|
displayName: `${label.label.displayName} (pid: ${label.label.publicId})`,
|
|
7106
7102
|
providerId: label.label.publicId,
|
|
7107
|
-
object:
|
|
7103
|
+
object: label
|
|
7108
7104
|
};
|
|
7109
7105
|
yield result;
|
|
7110
7106
|
}
|
|
@@ -7208,7 +7204,6 @@ var LabelPullModule = {
|
|
|
7208
7204
|
};
|
|
7209
7205
|
|
|
7210
7206
|
// src/commands/canvas/commands/label/push.ts
|
|
7211
|
-
var __INTERNAL_MISSING_PARENT_LABEL_ERROR = "Parent label with public ID";
|
|
7212
7207
|
var LabelPushModule = {
|
|
7213
7208
|
command: "push <directory>",
|
|
7214
7209
|
describe: "Pushes all labels from files in a directory to Uniform",
|
|
@@ -7266,41 +7261,14 @@ var LabelPushModule = {
|
|
|
7266
7261
|
});
|
|
7267
7262
|
}
|
|
7268
7263
|
const target = createLabelsEngineDataSource({ client });
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
whatIf,
|
|
7278
|
-
allowEmptySource,
|
|
7279
|
-
log: createSyncEngineConsoleLogger({ diffMode }),
|
|
7280
|
-
onError: (error, object4) => {
|
|
7281
|
-
if (error.message.includes(__INTERNAL_MISSING_PARENT_LABEL_ERROR)) {
|
|
7282
|
-
labelsFailedDueToMissingParent.add(object4.object);
|
|
7283
|
-
} else {
|
|
7284
|
-
throw error;
|
|
7285
|
-
}
|
|
7286
|
-
}
|
|
7287
|
-
});
|
|
7288
|
-
if (labelsFailedDueToMissingParent.size !== 0) {
|
|
7289
|
-
const newFailedLabelsCount = labelsFailedDueToMissingParent.size;
|
|
7290
|
-
if (newFailedLabelsCount !== lastFailedLabelsCount) {
|
|
7291
|
-
source = await createArraySyncEngineDataSource({
|
|
7292
|
-
name: `Labels re-push from ${directory}`,
|
|
7293
|
-
objects: Array.from(labelsFailedDueToMissingParent),
|
|
7294
|
-
selectIdentifier: selectLabelIdentifier,
|
|
7295
|
-
selectDisplayName: selectLabelDisplayName
|
|
7296
|
-
});
|
|
7297
|
-
await attemptSync();
|
|
7298
|
-
} else {
|
|
7299
|
-
throw new Error("Failed to push labels due to missing parent labels");
|
|
7300
|
-
}
|
|
7301
|
-
}
|
|
7302
|
-
};
|
|
7303
|
-
await attemptSync();
|
|
7264
|
+
await syncEngine({
|
|
7265
|
+
source,
|
|
7266
|
+
target,
|
|
7267
|
+
mode,
|
|
7268
|
+
whatIf,
|
|
7269
|
+
allowEmptySource,
|
|
7270
|
+
log: createSyncEngineConsoleLogger({ diffMode })
|
|
7271
|
+
});
|
|
7304
7272
|
}
|
|
7305
7273
|
};
|
|
7306
7274
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/cli",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.53.1-alpha.7+1c3bd56284",
|
|
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.
|
|
32
|
-
"@uniformdev/canvas": "20.
|
|
33
|
-
"@uniformdev/context": "20.
|
|
34
|
-
"@uniformdev/files": "20.
|
|
35
|
-
"@uniformdev/project-map": "20.
|
|
36
|
-
"@uniformdev/redirect": "20.
|
|
37
|
-
"@uniformdev/richtext": "20.
|
|
31
|
+
"@uniformdev/assets": "20.53.1-alpha.7+1c3bd56284",
|
|
32
|
+
"@uniformdev/canvas": "20.53.1-alpha.7+1c3bd56284",
|
|
33
|
+
"@uniformdev/context": "20.53.1-alpha.7+1c3bd56284",
|
|
34
|
+
"@uniformdev/files": "20.53.1-alpha.7+1c3bd56284",
|
|
35
|
+
"@uniformdev/project-map": "20.53.1-alpha.7+1c3bd56284",
|
|
36
|
+
"@uniformdev/redirect": "20.53.1-alpha.7+1c3bd56284",
|
|
37
|
+
"@uniformdev/richtext": "20.53.1-alpha.7+1c3bd56284",
|
|
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": "1c3bd56284db96f16318a18e62b3b6e83cb09f9b"
|
|
85
85
|
}
|