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

asyngleton

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyngleton - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.npmignore

13

lib/index.js

@@ -8,4 +8,9 @@ var EventEmitter = require("events").EventEmitter;

function singleton(fn) {
function singleton(resetEachCall, fn) {
if(arguments.length == 1) {
fn = resetEachCall;
resetEachCall = false;
}
var _id = singletonIndex++;

@@ -15,3 +20,3 @@

var asyng = asyngleton.info.call(this);
var asyng = asyngleton.info.call(this), self = this;

@@ -32,2 +37,3 @@

asyng.em.once("singleton", callback);

@@ -46,2 +52,5 @@

asyng.em.emit.apply(asyng.em, ["singleton"].concat(asyng.result));
if(resetEachCall) {
asyngleton.reset.call(self);
}
};

@@ -48,0 +57,0 @@

9

package.json

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

"description": "asynchronously generate singletons",
"version": "0.1.1",
"version": "0.1.2",
"repository": {

@@ -12,6 +12,9 @@ "type": "git",

"main": "./lib/index.js",
"dependencies": {},
"dependencies": {
},
"devDependencies": {
"structr": "*"
"structr": "*",
"expect.js": "0.2.x",
"mocha": "1.8.x"
}
}
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