@agoric/assert
Advanced tools
Comparing version 0.6.1-dev-43543c3.0 to 0.6.1-dev-4390d8c.0
{ | ||
"name": "@agoric/assert", | ||
"version": "0.6.1-dev-43543c3.0+43543c3", | ||
"version": "0.6.1-dev-4390d8c.0+4390d8c", | ||
"description": "Assert expression support that protects sensitive data", | ||
@@ -8,3 +8,3 @@ "type": "module", | ||
"engines": { | ||
"node": ">=14.15.0" | ||
"node": "^18.12 || ^20.9" | ||
}, | ||
@@ -22,3 +22,3 @@ "scripts": { | ||
"devDependencies": { | ||
"@endo/init": "^0.5.59", | ||
"@endo/init": "^1.1.2", | ||
"ava": "^5.3.0" | ||
@@ -29,2 +29,5 @@ }, | ||
"@endo/init/debug.js" | ||
], | ||
"files": [ | ||
"test/**/*.test.*" | ||
] | ||
@@ -48,3 +51,2 @@ }, | ||
"src/", | ||
"exported.js", | ||
"NEWS.md" | ||
@@ -58,3 +60,3 @@ ], | ||
}, | ||
"gitHead": "43543c3ce2f4ccb3b959b9ea3fb1c779b1f853e5" | ||
"gitHead": "4390d8c21fd8ac80a9c83f55d38c52e3f98faa1e" | ||
} |
@@ -21,9 +21,7 @@ /* global globalThis */ | ||
// but we need to import it here as well. | ||
/// <reference path="./types.js" /> | ||
/// <reference path="./types-ambient.js" /> | ||
/** @typedef {import('@endo/marshal').Checker} Checker */ | ||
const { freeze } = Object; | ||
/** @type {Assert} */ | ||
/** @type {import('ses').Assert} */ | ||
const globalAssert = globalThis.assert; | ||
@@ -92,14 +90,1 @@ | ||
export { an }; | ||
/** | ||
* In the `assertFoo`/`isFoo`/`checkFoo` pattern, `checkFoo` has a `check` | ||
* parameter of type `Checker`. `assertFoo` calls `checkFoo` passes | ||
* `assertChecker` as the `check` argument. `isFoo` passes `identChecker` | ||
* as the `check` argument. `identChecker` acts precisely like an | ||
* identity function, but is typed as a `Checker` to indicate its | ||
* intended use. | ||
* | ||
* @type {Checker} | ||
*/ | ||
export const identChecker = (cond, _details) => cond; | ||
harden(identChecker); |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
27514
6
401
2