@cabloy/module-glob 5.1.10 → 5.1.11

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/dist/index.js +14 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -390,7 +390,7 @@ function __checkSuites(context, suites) {
390
390
  for (const key in suites) {
391
391
  const suite = suites[key];
392
392
  // check if disable
393
- if (!context.disabledSuites[key]) {
393
+ if (_checkSuiteValid(context, suites, key)) {
394
394
  context.suites[key] = suite;
395
395
  }
396
396
  else {
@@ -401,4 +401,17 @@ function __checkSuites(context, suites) {
401
401
  }
402
402
  }
403
403
  }
404
+ function _checkSuiteValid(context, suites, suiteRelativeName) {
405
+ // suite
406
+ const suite = suites[suiteRelativeName];
407
+ // check if disable
408
+ if (context.disabledSuites[suiteRelativeName])
409
+ return false;
410
+ // check meta
411
+ const capabilities = suite.package.zovaModule?.capabilities ?? suite.package.vonaModule?.capabilities;
412
+ if (context.meta && capabilities && !(0, utils_1.checkMeta)(capabilities.meta, context.meta))
413
+ return false;
414
+ // ok
415
+ return true;
416
+ }
404
417
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/module-glob",
3
- "version": "5.1.10",
3
+ "version": "5.1.11",
4
4
  "description": "cabloy module-glob",
5
5
  "publishConfig": {
6
6
  "access": "public"