@effection/events
Advanced tools
Comparing version 0.6.1-a8ad962 to 0.6.1-d293fb5
@@ -14,4 +14,6 @@ "use strict"; | ||
while (true) { | ||
if (this.events.length > 0) { | ||
return this.events.shift(); | ||
let [event, ...events] = this.events; | ||
if (event) { | ||
this.events = events; | ||
return event; | ||
} | ||
@@ -18,0 +20,0 @@ yield once_1.once(this.source, this.eventName); |
@@ -9,3 +9,3 @@ "use strict"; | ||
function* once(source, eventName) { | ||
let onceListener; | ||
let onceListener = () => { }; | ||
try { | ||
@@ -12,0 +12,0 @@ return yield new Promise((resolve) => { |
{ | ||
"name": "@effection/events", | ||
"version": "0.6.1-a8ad962", | ||
"version": "0.6.1-d293fb5", | ||
"description": "Helpers for listening to events with effection", | ||
"main": "dist/index.js", | ||
"typings": "dist/index.d.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/thefrontside/bigtest.git", | ||
@@ -12,2 +12,3 @@ "author": "Frontside Engineering <engineering@frontside.io>", | ||
"dist/*", | ||
"src", | ||
"README.md" | ||
@@ -18,6 +19,7 @@ ], | ||
"test": "mocha -r ts-node/register test/**/*.test.ts", | ||
"prepack": "tsc --outdir dist --project tsconfig.dist.json --declaration --sourcemap --module commonjs", | ||
"prepack": "tsc --outdir dist --project tsconfig.dist.json", | ||
"mocha": "mocha -r ts-node/register" | ||
}, | ||
"devDependencies": { | ||
"@frontside/tsconfig": "0.0.1", | ||
"@types/node": "^12.7.11", | ||
@@ -24,0 +26,0 @@ "expect": "^25.4.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
13357
23
210
6