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 1.5.1 to 1.5.3

4

dist/routes.js

@@ -38,3 +38,3 @@ "use strict";

const { collection, id } = ctx.params;
ctx.body = (0, database_1.get)(collection, +id) || (resolve && resolve({ uniqueId: '$loki', id: +id }));
ctx.body = (0, database_1.get)(collection, +id) || (resolve && (await resolve({ uniqueId: '$loki', id: +id })));
});

@@ -44,3 +44,3 @@ /** Get by unique ID */

const { collection, id, unique } = ctx.params;
ctx.body = (0, database_1.get)(collection, id, unique) || (resolve && resolve({ uniqueId: unique, id }));
ctx.body = (0, database_1.get)(collection, id, unique) || (resolve && (await resolve({ uniqueId: unique, id })));
});

@@ -47,0 +47,0 @@ /**

{
"name": "rest-easy-loki",
"version": "1.5.1",
"version": "1.5.3",
"description": "A REST interface for lokijs supporting CRUD operations and automatic creation of new collections.",

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

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