Socket
Socket
Sign inDemoInstall

defer-map

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

CHANGELOG.md

6

dist/index.d.ts

@@ -21,3 +21,7 @@ import { Configuration, MapItem } from './interfaces';

*/
defer(key: K): this;
defer(key: K): {
result: Promise<V>;
done: (value: V) => void;
expiry: number;
};
/**

@@ -24,0 +28,0 @@ * Set item.

7

dist/index.js

@@ -64,8 +64,9 @@ "use strict";

});
this.ref.set(key, {
var item = {
result: result,
done: done,
expiry: this.getExpiry(),
});
return this;
};
this.ref.set(key, item);
return item;
};

@@ -72,0 +73,0 @@ /**

{
"name": "defer-map",
"version": "1.0.0",
"version": "1.0.1",
"description": "A small Map wrapper with defer and expiry.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc