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

@workablehr/idb

Package Overview
Dependencies
Maintainers
13
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workablehr/idb - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

readme.md

9

es/index.js

@@ -10,3 +10,12 @@ import { get as indexDBGet, set as indexDBSet, Store, clear as indexDBClear, del as indexDBDelete } from "idb-keyval";

};
/**
* @description A simple cache mechanisms that is based on IndexDB.
* @example
* const { store, set, get, clear, del } = makeIDB("workable-store");
*
* idb.get("myKey", { fetch: performFetch, maxAge: 100 });
* // if 'myKey' does not exists, it fetches and stores the result for 100 seconds
*/
export default (function (name) {

@@ -13,0 +22,0 @@ if (!name) {

@@ -18,3 +18,12 @@ "use strict";

};
/**
* @description A simple cache mechanisms that is based on IndexDB.
* @example
* const { store, set, get, clear, del } = makeIDB("workable-store");
*
* idb.get("myKey", { fetch: performFetch, maxAge: 100 });
* // if 'myKey' does not exists, it fetches and stores the result for 100 seconds
*/
var _default = function _default(name) {

@@ -21,0 +30,0 @@ if (!name) {

2

package.json

@@ -5,3 +5,3 @@ {

"license": "UNLICENSED",
"version": "0.0.1",
"version": "0.0.2",
"main": "lib/index.js",

@@ -8,0 +8,0 @@ "module": "es/index.js",

@@ -13,2 +13,11 @@ import {

/**
* @description A simple cache mechanisms that is based on IndexDB.
* @example
* const { store, set, get, clear, del } = makeIDB("workable-store");
*
* idb.get("myKey", { fetch: performFetch, maxAge: 100 });
* // if 'myKey' does not exists, it fetches and stores the result for 100 seconds
*/
export default name => {

@@ -15,0 +24,0 @@ if (!name) {

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