Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

authorized-rules

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authorized-rules - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/index.d.ts

6

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc