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

feather-cache

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feather-cache - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

2

dist/src/index.d.ts

@@ -39,3 +39,3 @@ import { IFeatherCacheDriver } from './feather-cache-driver.interface';

*/
set(key: string, value: any, opt?: ISetOptions): Promise<void>;
set(key: string, val: any, opt?: ISetOptions): Promise<void>;
show(): Promise<any>;

@@ -42,0 +42,0 @@ }

@@ -11,3 +11,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const clone = require("clone");
const default_driver_1 = require("./default-driver");

@@ -56,3 +55,3 @@ const verify_options_1 = require("./verify-options");

}
return clone(data.val);
return data.val;
});

@@ -76,3 +75,3 @@ }

}
return clone(data);
return data;
});

@@ -86,5 +85,4 @@ }

*/
set(key, value, opt = {}) {
set(key, val, opt = {}) {
return __awaiter(this, void 0, void 0, function* () {
const val = clone(value);
const validTill = new Date(new Date().getTime() + (opt.maxAgeInMs || this.options.maxAgeInMs));

@@ -91,0 +89,0 @@ const dataToStore = { validTill, key, val };

{
"name": "feather-cache",
"version": "1.0.5",
"version": "1.1.0",
"description": "A Simple Lightweight Pluggable Key-Value Cache For Multiple Storage Options.",

@@ -15,3 +15,8 @@ "homepage": "https://github.com/vajahath/feather-cache#readme",

],
"keywords": [],
"keywords": [
"feather-cache",
"cache",
"storage",
"key-value"
],
"scripts": {

@@ -36,8 +41,5 @@ "build": "gulp build",

"license": "MIT",
"dependencies": {
"clone": "^2.1.2"
},
"dependencies": {},
"devDependencies": {
"@types/chalk": "^2.2.0",
"@types/clone": "^0.1.30",
"@types/jest": "^23.3.1",

@@ -56,6 +58,6 @@ "@types/yeoman-generator": "^2.0.3",

"run-sequence": "^2.2.1",
"ts-node": "^7.0.1",
"tslint": "^5.10.0",
"ts-node": "^7.0.1",
"typescript": "^3.0.0"
}
}

@@ -27,3 +27,3 @@ # feather-cache

Actual use case for this module is to use with a driver (mongodb-driver or indexed-db-driver etc.) which enables persistent caching.
Actual use case for this module is to use with a driver (mongodb-driver or [indexed-db-driver](https://www.npmjs.com/package/feather-cache-indexeddb) etc.) which enables persistent caching.

@@ -98,2 +98,12 @@ ### Example

An example: [feather-cache-indexeddb](https://www.npmjs.com/package/feather-cache-indexeddb).
Those who publish drivers advised to follow the naming convention:
```txt
feather-cache-<storage_option_name>
```
Also, attach the key word `feather-cache`.
---

@@ -100,0 +110,0 @@

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