@uniformdev/transformer 1.1.13 → 1.1.14
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/cli/index.js +6 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -3699,11 +3699,12 @@ var CompositionConverterService = class {
|
|
|
3699
3699
|
if (flattenComponentIds.length > 0) {
|
|
3700
3700
|
this.transformContentReferences(entry);
|
|
3701
3701
|
}
|
|
3702
|
-
const
|
|
3702
|
+
const entryId = entry.entry._id;
|
|
3703
|
+
const entryFilePath = this.fileSystem.joinPath(entriesDirFull, `${entryId}.json`);
|
|
3703
3704
|
this.logger.action(
|
|
3704
3705
|
whatIf,
|
|
3705
3706
|
"WRITE",
|
|
3706
|
-
`${entriesDir}/${
|
|
3707
|
+
`${entriesDir}/${entryId}.json (${compositionType}, "${this.truncate(compositionName, 50)}")`
|
|
3707
3708
|
);
|
|
3708
3709
|
if (!whatIf) {
|
|
3709
3710
|
await this.fileSystem.writeFile(entryFilePath, entry);
|
|
@@ -3835,9 +3836,10 @@ var CompositionConverterService = class {
|
|
|
3835
3836
|
extraWrapperProps[key] = value;
|
|
3836
3837
|
}
|
|
3837
3838
|
}
|
|
3839
|
+
const entryId = computeGuidHash(`entry${comp._id}`);
|
|
3838
3840
|
return {
|
|
3839
3841
|
entry: {
|
|
3840
|
-
_id:
|
|
3842
|
+
_id: entryId,
|
|
3841
3843
|
_name: comp._name ?? comp._id,
|
|
3842
3844
|
type: comp.type,
|
|
3843
3845
|
fields: { ...comp.parameters ?? {} },
|
|
@@ -4591,7 +4593,7 @@ function createRemoveFieldCommand() {
|
|
|
4591
4593
|
// package.json
|
|
4592
4594
|
var package_default = {
|
|
4593
4595
|
name: "@uniformdev/transformer",
|
|
4594
|
-
version: "1.1.
|
|
4596
|
+
version: "1.1.14",
|
|
4595
4597
|
description: "CLI tool for transforming Uniform.dev serialization files offline",
|
|
4596
4598
|
type: "module",
|
|
4597
4599
|
bin: {
|