brisky-stamp
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -7,2 +7,3 @@ if (global.briskystamp) { | ||
var on | ||
var start = 0 | ||
@@ -33,6 +34,8 @@ exports.cnt = 0 | ||
if (on) { | ||
for (let i = 0; i < on.length; i++) { | ||
for (let i = start; i < on.length; i++) { | ||
start = i + 1 | ||
on[i]() | ||
} | ||
on = false | ||
start = 0 | ||
} | ||
@@ -39,0 +42,0 @@ } |
{ | ||
"name": "brisky-stamp", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Generate unique meta information for change in a system", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -91,1 +91,13 @@ 'use strict' | ||
}) | ||
test('on complete listeners -- on close 00 create a new one', t => { | ||
var cnt = 0 | ||
bstamp.on(() => { | ||
bstamp.create() | ||
cnt++ | ||
bstamp.close() | ||
}) | ||
bstamp.close() | ||
t.equal(cnt, 1, 'listener fired') | ||
t.end() | ||
}) |
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
104623
327