New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rapid-access

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rapid-access - npm Package Compare versions

Comparing version 0.1.1 to 0.1.12

1

design.md

@@ -65,2 +65,3 @@ RAPID DAL设计

- function set(key:string, data:any, options:object): Promise
- function delete(key:string): Promise

@@ -67,0 +68,0 @@ ###Db

@@ -20,2 +20,6 @@ var Lru = require('lru-cache'),

return resolved();
},
'delete': function (key) {
lru.del(key);
return resolved();
}

@@ -50,3 +54,3 @@ };

if (obj.impl.storage) {
var $set = obj.set;
var $set = obj.set, $delete = obj.delete;
obj.set = function (key, val, options) {

@@ -56,2 +60,6 @@ cache.set(key, val, options);

};
obj.delete = function (key) {
cache.delete(key);
return $delete.apply(obj, arguments);
};
}

@@ -71,3 +79,3 @@ }

}
return $find.call(tbl, where, options).then(function (ret) {
return $find.call(obj, tbl, where, options).then(function (ret) {
cache.set(key, ret);

@@ -74,0 +82,0 @@ return ret;

2

package.json
{
"name": "rapid-access",
"version": "0.1.1",
"version": "0.1.12",
"description": "data access layer for rapid",

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

@@ -37,2 +37,11 @@ var assert = require('assert');

it('delete', function (next) {
cache.delete('foo').then(function () {
return cache.get('foo');
}).then(function (ret) {
assert.strictEqual(ret, undefined);
next();
}).done();
})
});
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