@firestartr/cli 1.59.0-snapshot-7 → 1.59.0-snapshot-9

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.
Files changed (2) hide show
  1. package/build/index.js +28 -4
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -367329,12 +367329,36 @@ function compileReg(value) {
367329
367329
 
367330
367330
 
367331
367331
 
367332
+ const KIND_TO_COLLECTION_FILTERS = {
367333
+ FirestartrGithubRepository: 'gh-repo',
367334
+ FirestartrGithubGroup: 'gh-group',
367335
+ FirestartrGithubMembership: 'gh-members',
367336
+ };
367332
367337
  // we create a special Collection that will use
367333
367338
  class ReimportCollection {
367339
+ helperNameExtractor(cr) {
367340
+ return cr.metadata.annotations['firestartr.dev/external-name'];
367341
+ }
367342
+ isSkipped(cr, generatedFilters) {
367343
+ if (cr.kind in KIND_TO_COLLECTION_FILTERS) {
367344
+ return this.IS_SKIP_SET(generatedFilters, KIND_TO_COLLECTION_FILTERS[cr.kind]);
367345
+ }
367346
+ else {
367347
+ return false;
367348
+ }
367349
+ }
367334
367350
  isCrIncluded(cr, generatedFilters) {
367335
- return this.filter('cr', generatedFilters, [cr]).then((result) => {
367336
- return result.length > 0;
367337
- });
367351
+ if (this.isSkipped(cr, generatedFilters)) {
367352
+ return Promise.resolve(false);
367353
+ }
367354
+ if (cr.kind in KIND_TO_COLLECTION_FILTERS) {
367355
+ return this.filter(KIND_TO_COLLECTION_FILTERS[cr.kind], generatedFilters, [this.helperNameExtractor(cr)]).then((result) => {
367356
+ return result.length > 0;
367357
+ });
367358
+ }
367359
+ else {
367360
+ return Promise.resolve(false);
367361
+ }
367338
367362
  }
367339
367363
  }
367340
367364
  applyCollectionMixins(ReimportCollection);
@@ -378471,7 +378495,7 @@ const crs_analyzerSubcommand = {
378471
378495
  };
378472
378496
 
378473
378497
  ;// CONCATENATED MODULE: ./package.json
378474
- const package_namespaceObject = JSON.parse('{"i8":"1.59.0-snapshot-7"}');
378498
+ const package_namespaceObject = JSON.parse('{"i8":"1.59.0-snapshot-9"}');
378475
378499
  ;// CONCATENATED MODULE: ../../package.json
378476
378500
  const package_namespaceObject_1 = {"i8":"1.58.0"};
378477
378501
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.59.0-snapshot-7",
3
+ "version": "1.59.0-snapshot-9",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",