Comparing version 1.3.0 to 1.3.1
@@ -1,2 +0,3 @@ | ||
module.exports = once | ||
var wrappy = require('wrappy') | ||
module.exports = wrappy(once) | ||
@@ -3,0 +4,0 @@ once.proto = once(function () { |
{ | ||
"name": "once", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Run a function exactly one time", | ||
@@ -9,3 +9,5 @@ "main": "once.js", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"wrappy": "1" | ||
}, | ||
"devDependencies": { | ||
@@ -12,0 +14,0 @@ "tap": "~0.3.0" |
@@ -6,7 +6,10 @@ var test = require('tap').test | ||
var f = 0 | ||
var foo = once(function (g) { | ||
function fn (g) { | ||
t.equal(f, 0) | ||
f ++ | ||
return f + g + this | ||
}) | ||
} | ||
fn.ownProperty = {} | ||
var foo = once(fn) | ||
t.equal(fn.ownProperty, foo.ownProperty) | ||
t.notOk(foo.called) | ||
@@ -13,0 +16,0 @@ for (var i = 0; i < 1E3; i++) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3733
41
1
+ Addedwrappy@1
+ Addedwrappy@1.0.2(transitive)