@graffy/core
Advanced tools
Comparing version 0.14.3 to 0.14.4
12
Core.js
@@ -12,5 +12,2 @@ "use strict"; | ||
// import mergeStreams from 'merge-async-iterators'; | ||
// import { merge, wrap, unwrap, remove, makePath } from '@graffy/common'; | ||
// import { decorate } from '@graffy/common'; | ||
function resolve(handlers, firstPayload, options) { | ||
@@ -30,3 +27,10 @@ if (!handlers || !handlers.length) throw Error('resolve.no_provider'); | ||
return handle(payload, options, function (nextPayload) { | ||
if (nextCalled) throw Error('resolve.duplicate_next: ' + handle.name); | ||
if (nextCalled) { | ||
throw Error('resolve.duplicate_next_call: ' + handlers[i].name); | ||
} | ||
if (typeof nextPayload === 'undefined') { | ||
throw Error('resolve.next_without_payload: ' + handlers[i].name); | ||
} | ||
nextCalled = true; | ||
@@ -33,0 +37,0 @@ return run(i + 1, nextPayload); |
@@ -5,3 +5,3 @@ { | ||
"author": "aravind (https://github.com/aravindet)", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"main": "index.js", | ||
@@ -17,5 +17,5 @@ "source": "src/index.js", | ||
"@babel/runtime-corejs3": "^7.8.4", | ||
"@graffy/common": "0.14.3", | ||
"@graffy/stream": "0.14.3" | ||
"@graffy/common": "0.14.4", | ||
"@graffy/stream": "0.14.4" | ||
} | ||
} |
@@ -1,5 +0,1 @@ | ||
// import mergeStreams from 'merge-async-iterators'; | ||
// import { merge, wrap, unwrap, remove, makePath } from '@graffy/common'; | ||
// import { decorate } from '@graffy/common'; | ||
import { unwrap } from '@graffy/common'; | ||
@@ -21,3 +17,8 @@ | ||
return handle(payload, options, nextPayload => { | ||
if (nextCalled) throw Error('resolve.duplicate_next: ' + handle.name); | ||
if (nextCalled) { | ||
throw Error('resolve.duplicate_next_call: ' + handlers[i].name); | ||
} | ||
if (typeof nextPayload === 'undefined') { | ||
throw Error('resolve.next_without_payload: ' + handlers[i].name); | ||
} | ||
nextCalled = true; | ||
@@ -24,0 +25,0 @@ return run(i + 1, nextPayload); |
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
893
36662
+ Added@graffy/common@0.14.4(transitive)
+ Added@graffy/stream@0.14.4(transitive)
- Removed@graffy/common@0.14.3(transitive)
- Removed@graffy/stream@0.14.3(transitive)
Updated@graffy/common@0.14.4
Updated@graffy/stream@0.14.4