authorized-rules
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -54,10 +54,8 @@ "use strict"; | ||
var authorize = function (_a, executionRule) { | ||
var headers = _a.headers; | ||
if (executionRule === void 0) { executionRule = function () { return Promise.resolve({ passed: true, ruleName: 'authorize', data: [] }); }; } | ||
var authorization = _a.headers.authorization; | ||
return __awaiter(void 0, void 0, void 0, function () { | ||
var authorization, token, ruleResult; | ||
var token, ruleResult; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
case 0: | ||
authorization = headers.authorization; | ||
assertBearerToken(authorization); | ||
@@ -64,0 +62,0 @@ token = getToken(authorization); |
{ | ||
"name": "authorized-rules", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -9,2 +9,3 @@ { | ||
"lib": ["es5", "es6", "dom"], /* Specify library files to be included in the compilation. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"sourceMap": true, /* Generates corresponding '.map' file. */ | ||
@@ -23,3 +24,3 @@ "outDir": "dist", /* Redirect output structure to the directory. */ | ||
}, | ||
"exclude": [ "node_modules", "test", "types" ] | ||
"exclude": [ "node_modules", "tests", "types" ] | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18060
10
333
1