How to use the moleculer.match function in moleculer

To help you get started, we’ve selected a few moleculer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github moleculerjs / moleculer-web / src / index.js View on Github external
return route.whitelist.find(mask => {
				if (_.isString(mask))
					return match(action, mask);
				else if (_.isRegExp(mask))
					return mask.test(action);
			}) != null;
		},
github tiaod / moleculer-io / src / index.js View on Github external
return whitelist.find(mask => {
    if (_.isString(mask)) {
      return match(action, mask)
    }
    else if (_.isRegExp(mask)) {
      return mask.test(action)
    }
  }) != null
}
github icebob / kantab / backend / services / acl.service.js View on Github external
			return permList.some(p => match(permission, p));
		},
github icebob / kantab / backend / services / config.service.js View on Github external
			return allItems.filter(item => match(item.key, mask));
		},
github icebob / kantab / backend / services / acl.service.js View on Github external
			return permissions.some(perm => permList.find(p => match(perm, p)));
		},