@appliedblockchain/assert-combinators
Advanced tools
Comparing version 4.1.1 to 4.1.2
# Changelog | ||
## [v4.1.2](../../compare/v4.1.1...v4.1.2) (2021-06-17) | ||
* Be nice to old parsers. | ||
* Updating changelog. | ||
## [v4.1.1](../../compare/v4.1.0...v4.1.1) (2021-06-16) | ||
@@ -4,0 +9,0 @@ |
@@ -9,5 +9,7 @@ "use strict"; | ||
catch (err) { | ||
onError?.(err instanceof Error ? | ||
err : | ||
new Error(String(err))); | ||
if (onError) { | ||
onError(err instanceof Error ? | ||
err : | ||
new Error(String(err))); | ||
} | ||
return value; | ||
@@ -17,2 +19,2 @@ } | ||
exports.default = ignore; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWdub3JlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaWdub3JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEseUdBQXlHO0FBQ3pHLE1BQU0sTUFBTSxHQUNWLENBQUksQ0FBWSxFQUFFLE9BQThCLEVBQWEsRUFBRSxDQUM3RCxLQUFLLENBQUMsRUFBRTtJQUNOLElBQUk7UUFDRixPQUFPLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQTtLQUNoQjtJQUFDLE9BQU8sR0FBRyxFQUFFO1FBQ1osT0FBTyxFQUFFLENBQ1AsR0FBRyxZQUFZLEtBQUssQ0FBQyxDQUFDO1lBQ3BCLEdBQUcsQ0FBQyxDQUFDO1lBQ0wsSUFBSSxLQUFLLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQ3pCLENBQUE7UUFDRCxPQUFPLEtBQVUsQ0FBQTtLQUNsQjtBQUNILENBQUMsQ0FBQTtBQUVMLGtCQUFlLE1BQU0sQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIEFzc2VydCBmcm9tICcuL3R5cGVzL2Fzc2VydCdcblxuLyoqIElnbm9y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LEtBQUssQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FDekIsQ0FBQTtTQUNGO1FBQ0QsT0FBTyxLQUFVLENBQUE7S0FDbEI7QUFDSCxDQUFDLENBQUE7QUFFTCxrQkFBZSxNQUFNLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSBBc3NlcnQgZnJvbSAnLi90eXBlcy9hc3NlcnQnXG5cbi8qKiBJZ25vcmVzIGVycm9yIHJldHVybmluZyB2YWx1ZSBhcyBpcy4gT3B0aW9uYWwgb24tZXJyb3IgaGFuZGxlciBjYW4gYmUgcHJvdmlkZWQgdG8gaWUuIGxvZyB3YXJuaW5nLiAqL1xuY29uc3QgaWdub3JlID1cbiAgPFQ+KGE6IEFzc2VydDxUPiwgb25FcnJvcj86IChlcnI6IEVycm9yKSA9PiB2b2lkKTogQXNzZXJ0PFQ+ID0+XG4gICAgdmFsdWUgPT4ge1xuICAgICAgdHJ5IHtcbiAgICAgICAgcmV0dXJuIGEodmFsdWUpXG4gICAgICB9IGNhdGNoIChlcnIpIHtcbiAgICAgICAgaWYgKG9uRXJyb3IpIHtcbiAgICAgICAgICBvbkVycm9yKFxuICAgICAgICAgICAgZXJyIGluc3RhbmNlb2YgRXJyb3IgP1xuICAgICAgICAgICAgICBlcnIgOlxuICAgICAgICAgICAgICBuZXcgRXJyb3IoU3RyaW5nKGVycikpXG4gICAgICAgICAgKVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiB2YWx1ZSBhcyBUXG4gICAgICB9XG4gICAgfVxuXG5leHBvcnQgZGVmYXVsdCBpZ25vcmVcbiJdfQ== |
@@ -10,7 +10,9 @@ import type Assert from './types/assert' | ||
} catch (err) { | ||
onError?.( | ||
err instanceof Error ? | ||
err : | ||
new Error(String(err)) | ||
) | ||
if (onError) { | ||
onError( | ||
err instanceof Error ? | ||
err : | ||
new Error(String(err)) | ||
) | ||
} | ||
return value as T | ||
@@ -17,0 +19,0 @@ } |
{ | ||
"name": "@appliedblockchain/assert-combinators", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Assertion combinators.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
141312
1683