@contrail/cli 2.1.11 → 2.1.12
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/README.md +1 -1
- package/dist/helpers/types/type-uploader.js +0 -15
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ $ npm install -g @contrail/cli
|
|
|
15
15
|
$ contrail COMMAND
|
|
16
16
|
running command...
|
|
17
17
|
$ contrail (--version)
|
|
18
|
-
@contrail/cli/2.1.
|
|
18
|
+
@contrail/cli/2.1.12 darwin-arm64 node-v18.13.0
|
|
19
19
|
$ contrail --help [COMMAND]
|
|
20
20
|
USAGE
|
|
21
21
|
$ contrail COMMAND
|
|
@@ -100,21 +100,6 @@ async function uploadReducedTypes(dir) {
|
|
|
100
100
|
console.log('Error Uploading Types: ', err);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
for (const currentType of currentTypes) {
|
|
104
|
-
try {
|
|
105
|
-
const found = newTypesBySlug[currentType.slug];
|
|
106
|
-
if (!found) {
|
|
107
|
-
console.log('Deleting Type: ', currentType.slug);
|
|
108
|
-
await new sdk_1.Entities().delete({
|
|
109
|
-
entityName: 'type',
|
|
110
|
-
id: currentType.id,
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
catch (err) {
|
|
115
|
-
throw new Error(`Error Deleting Types: ${err}`);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
103
|
}
|
|
119
104
|
async function uploadReducedTypeProperties(type, currentPropertyTypes, newPropertyTypes) {
|
|
120
105
|
const currentPropertyTypeBySlug = {};
|
package/oclif.manifest.json
CHANGED