@firestartr/cli 1.42.1-snapshot-1 → 1.42.1-snapshot-3
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/build/index.js +0 -15
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -287185,7 +287185,6 @@ function extractRefs(renderClaims, kind) {
|
|
|
287185
287185
|
function extractAllRefs(claimData) {
|
|
287186
287186
|
const refs = getClaimReferences(claimData);
|
|
287187
287187
|
const parsedClaim = yaml_dist.parse(claimData);
|
|
287188
|
-
refs.push(...extractVirtualRefs(parsedClaim));
|
|
287189
287188
|
switch (parsedClaim.kind) {
|
|
287190
287189
|
case 'TFWorkspaceClaim': {
|
|
287191
287190
|
const tfWorkspaceRefs = getTfWorkspacesRefs(parsedClaim.providers.terraform.values);
|
|
@@ -287206,20 +287205,6 @@ function extractAllRefs(claimData) {
|
|
|
287206
287205
|
}
|
|
287207
287206
|
return [...new Set(refs)];
|
|
287208
287207
|
}
|
|
287209
|
-
function extractVirtualRefs(parsedClaim) {
|
|
287210
|
-
const virtualRefs = [];
|
|
287211
|
-
switch (parsedClaim.kind) {
|
|
287212
|
-
case 'ComponentClaim': {
|
|
287213
|
-
if (parsedClaim.providers.github.orgPermissions === 'view' ||
|
|
287214
|
-
parsedClaim.providers.github.orgPermissions === 'maintain') {
|
|
287215
|
-
refsExtractor_log(`Adding virtual reference for ${parsedClaim.providers.github.org}-all`);
|
|
287216
|
-
virtualRefs.push(`group:${parsedClaim.providers.github.org}-all`);
|
|
287217
|
-
}
|
|
287218
|
-
break;
|
|
287219
|
-
}
|
|
287220
|
-
}
|
|
287221
|
-
return virtualRefs;
|
|
287222
|
-
}
|
|
287223
287208
|
function getGroupParentRef(parent, references = []) {
|
|
287224
287209
|
if (!parent)
|
|
287225
287210
|
return [];
|