@contrail/cli 2.0.5 → 2.0.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/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.0.
|
|
18
|
+
@contrail/cli/2.0.6 darwin-arm64 node-v18.13.0
|
|
19
19
|
$ contrail --help [COMMAND]
|
|
20
20
|
USAGE
|
|
21
21
|
$ contrail COMMAND
|
|
@@ -182,7 +182,12 @@ function reduceTypes(dataHolder) {
|
|
|
182
182
|
slug: type.slug,
|
|
183
183
|
label: type.label,
|
|
184
184
|
isArchived: type.isArchived,
|
|
185
|
-
typeProperties: reducedTypeProperties
|
|
185
|
+
typeProperties: reducedTypeProperties.map(x => {
|
|
186
|
+
delete x['id'];
|
|
187
|
+
return {
|
|
188
|
+
...x
|
|
189
|
+
};
|
|
190
|
+
}),
|
|
186
191
|
};
|
|
187
192
|
reducedTypes.push(reducedType);
|
|
188
193
|
}
|
|
@@ -131,8 +131,8 @@ async function uploadRuleSetLinkObjects(loadedRuleSetLinks) {
|
|
|
131
131
|
const hash = `${loadedLink.type}|${loadedLink.ruleSet}`;
|
|
132
132
|
reducedLinksByHashes[hash] = loadedLink;
|
|
133
133
|
}
|
|
134
|
-
console.debug('
|
|
135
|
-
console.debug('
|
|
134
|
+
// console.debug('reduced rule set links:', reducedLinksByHashes);
|
|
135
|
+
// console.debug('current rule set links:', currentLinksHashes);
|
|
136
136
|
for (const loadedRuleSetLink of loadedRuleSetLinks) {
|
|
137
137
|
try {
|
|
138
138
|
const found = currentLinksHashes[`${loadedRuleSetLink.type}|${loadedRuleSetLink.ruleSet}`];
|
|
@@ -69,8 +69,8 @@ async function uploadTPPolicyObjects(reducedTypePropertyPolicies) {
|
|
|
69
69
|
for (const loadedTPP of reducedTypePropertyPolicies) {
|
|
70
70
|
loadedTPPByName[loadedTPP.label] = loadedTPP;
|
|
71
71
|
}
|
|
72
|
-
console.debug('current tp policy:', currentTPPolicies);
|
|
73
|
-
console.debug('reduced tp policy:', reducedTypePropertyPolicies);
|
|
72
|
+
// console.debug('current tp policy:', currentTPPolicies);
|
|
73
|
+
// console.debug('reduced tp policy:', reducedTypePropertyPolicies);
|
|
74
74
|
for (const [label, loadedTPP] of Object.entries(loadedTPPByName)) {
|
|
75
75
|
try {
|
|
76
76
|
const found = currentTPPByLabel[label];
|
package/oclif.manifest.json
CHANGED