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

rest-easy-loki

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-easy-loki - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

dist/authorization.d.ts
import * as Koa from 'koa';
/** Simple Policy Enforcement Point */
export declare const pep: (ctx: Koa.Context, next: () => Promise<any>) => void;
export declare const pep: (ctx: Koa.Context, next: () => Promise<any>) => Promise<void>;

@@ -75,10 +75,11 @@ "use strict";

/** Simple Policy Enforcement Point */
exports.pep = (ctx, next) => {
exports.pep = async (ctx, next) => {
if (!apiKeys) {
next();
// Use await next. See here: https://github.com/ZijianHe/koa-router/issues/358
await next();
}
if (pdp(ctx)) {
next();
else if (pdp(ctx)) {
await next();
}
};
//# sourceMappingURL=authorization.js.map
{
"name": "rest-easy-loki",
"version": "0.5.0",
"version": "0.5.1",
"description": "A REST interface for lokijs supporting CRUD operations and automatic creation of new collections.",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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