byu-group-mem
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -61,10 +61,10 @@ /** | ||
if (!config) throw new Error('The byu-group-mem function must have exactly one parameter.'); | ||
if (!req.verifiedJWTs) throw new Error('No JWT verification found. Please install and setup the byu-jwt node module.') | ||
if (!req.verifiedJWTs) throw new Error('No JWT verification found. Please install and setup the byu-jwt node module.'); | ||
if (typeof config.wso2_request_instance !== 'object' | ||
|| (typeof wso2_request_instance === 'object' && !Object.keys(config.wso2_request_instance).includes('request'))) | ||
throw new Error('The first parameter in the byu-group-mem function must be an instance of the byu-wso2-request package.'); | ||
throw new Error('The wso2_request_instance in the byu-group-mem function must be an instance of the byu-wso2-request package.'); | ||
if (typeof config.group_name !== 'string') | ||
throw new Error('The second parameter in the byu-group-mem function must be a string.'); | ||
throw new Error('The group_name in the byu-group-mem function must be a string.'); | ||
if (config.handler && typeof config.handler !== 'function') | ||
throw new Error('The third parameter in the byu-group-mem function must be a callback function.'); | ||
throw new Error('The handler in the byu-group-mem function must be a callback function.'); | ||
@@ -71,0 +71,0 @@ Promise.race([ |
{ | ||
"name": "byu-group-mem", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Validates the group membership of a person", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20773