@agoric/assert
Advanced tools
Comparing version 0.6.1-u11wf.0 to 0.6.1-u16.0
{ | ||
"name": "@agoric/assert", | ||
"version": "0.6.1-u11wf.0", | ||
"version": "0.6.1-u16.0", | ||
"description": "Assert expression support that protects sensitive data", | ||
@@ -8,3 +8,3 @@ "type": "module", | ||
"engines": { | ||
"node": ">=14.15.0" | ||
"node": "^18.12 || ^20.9" | ||
}, | ||
@@ -19,8 +19,16 @@ "scripts": { | ||
"lint:eslint": "eslint .", | ||
"lint:types": "tsc -p jsconfig.json" | ||
"lint:types": "tsc" | ||
}, | ||
"devDependencies": { | ||
"@endo/init": "0.5.56", | ||
"ava": "^5.2.0" | ||
"@endo/init": "^1.1.2", | ||
"ava": "^5.3.0" | ||
}, | ||
"ava": { | ||
"require": [ | ||
"@endo/init/debug.js" | ||
], | ||
"files": [ | ||
"test/**/*.test.*" | ||
] | ||
}, | ||
"repository": { | ||
@@ -42,3 +50,2 @@ "type": "git", | ||
"src/", | ||
"exported.js", | ||
"NEWS.md" | ||
@@ -49,3 +56,6 @@ ], | ||
}, | ||
"gitHead": "faf9ba6ab8b2b69bf25f435f262f0b5bd2f2bc97" | ||
"typeCoverage": { | ||
"atLeast": 100 | ||
}, | ||
"gitHead": "bbdf652c3f413381cb352a8a360db1063974fafd" | ||
} |
@@ -21,9 +21,7 @@ /* global globalThis */ | ||
// but we need to import it here as well. | ||
import './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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
27498
6
401
2