@cabloy/module-glob 5.0.8 → 5.0.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.
package/dist/index.js CHANGED
@@ -290,19 +290,23 @@ function __logSuites(context, log) {
290
290
  }
291
291
  function __getDisabledModules(disabledModules) {
292
292
  const disabledModulesMap = {};
293
- if (disabledModules && disabledModules.length > 0) {
294
- for (const moduleName of disabledModules) {
295
- disabledModulesMap[moduleName] = true;
296
- }
293
+ if (!disabledModules)
294
+ return disabledModulesMap;
295
+ if (typeof disabledModules === 'string')
296
+ disabledModules = disabledModules.split(',');
297
+ for (const moduleName of disabledModules) {
298
+ disabledModulesMap[moduleName] = true;
297
299
  }
298
300
  return disabledModulesMap;
299
301
  }
300
302
  function __getDisabledSuites(disabledSuites) {
301
303
  const disabledSuitesMap = {};
302
- if (disabledSuites && disabledSuites.length > 0) {
303
- for (const suiteName of disabledSuites) {
304
- disabledSuitesMap[suiteName] = true;
305
- }
304
+ if (!disabledSuites)
305
+ return disabledSuitesMap;
306
+ if (typeof disabledSuites === 'string')
307
+ disabledSuites = disabledSuites.split(',');
308
+ for (const suiteName of disabledSuites) {
309
+ disabledSuitesMap[suiteName] = true;
306
310
  }
307
311
  return disabledSuitesMap;
308
312
  }
@@ -2,8 +2,8 @@ import { IModule, ISuite, TypeProjectMode } from '@cabloy/module-info';
2
2
  export interface IModuleGlobOptions {
3
3
  projectMode: TypeProjectMode;
4
4
  projectPath: string;
5
- disabledModules?: string[];
6
- disabledSuites?: string[];
5
+ disabledModules?: string[] | string;
6
+ disabledSuites?: string[] | string;
7
7
  log?: boolean;
8
8
  }
9
9
  export interface IModuleGlobContext {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/module-glob",
3
- "version": "5.0.8",
3
+ "version": "5.0.9",
4
4
  "description": "cabloy module-glob",
5
5
  "publishConfig": {
6
6
  "access": "public"