@endo/common
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,6 +1,6 @@ | ||
import { q, Fail } from '@endo/errors'; | ||
const { fromEntries } = Object; | ||
const { ownKeys } = Reflect; | ||
const { quote: q, Fail } = assert; | ||
/** | ||
@@ -7,0 +7,0 @@ * Throws if multiple entries use the same property name. Otherwise acts |
{ | ||
"name": "@endo/common", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "common low level utilities", | ||
@@ -44,8 +44,9 @@ "keywords": [], | ||
"dependencies": { | ||
"@endo/eventual-send": "^1.1.0", | ||
"@endo/promise-kit": "^1.0.2" | ||
"@endo/errors": "^1.0.3", | ||
"@endo/eventual-send": "^1.1.1", | ||
"@endo/promise-kit": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@endo/lockdown": "^1.0.2", | ||
"@endo/ses-ava": "^1.1.0", | ||
"@endo/lockdown": "^1.0.3", | ||
"@endo/ses-ava": "^1.1.1", | ||
"ava": "^5.3.0", | ||
@@ -76,3 +77,3 @@ "c8": "^7.14.0", | ||
}, | ||
"gitHead": "373f9eebab66c94ed42350473c90fb25e6054f0a" | ||
"gitHead": "f731c5c12f8d185dbf2daf53ec6a57e5ac56e4e9" | ||
} |
@@ -1,2 +0,2 @@ | ||
const { details: X } = assert; | ||
import { X, makeError, annotateError } from '@endo/errors'; | ||
@@ -17,9 +17,6 @@ /** | ||
} | ||
const outerErr = assert.error( | ||
`${label}: ${innerErr.message}`, | ||
ErrorConstructor, | ||
); | ||
assert.note(outerErr, X`Caused by ${innerErr}`); | ||
const outerErr = makeError(`${label}: ${innerErr.message}`, ErrorConstructor); | ||
annotateError(outerErr, X`Caused by ${innerErr}`); | ||
throw outerErr; | ||
}; | ||
harden(throwLabeled); |
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
34498
3
378
+ Added@endo/errors@^1.0.3
+ Added@endo/errors@1.2.8(transitive)
Updated@endo/eventual-send@^1.1.1
Updated@endo/promise-kit@^1.0.3