Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@agoric/assert

Package Overview
Dependencies
Maintainers
0
Versions
2115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/assert - npm Package Compare versions

Comparing version 0.6.1-upgrade-14-dev-c8f9e7b.0 to 0.6.1-upgrade-16-dev-0549112.0

src/types-ambient.js

24

package.json
{
"name": "@agoric/assert",
"version": "0.6.1-upgrade-14-dev-c8f9e7b.0+c8f9e7b",
"version": "0.6.1-upgrade-16-dev-0549112.0+0549112",
"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": "c8f9e7be1645e0be23f47de197409a7d4874add5"
"typeCoverage": {
"atLeast": 100
},
"gitHead": "05491122ee61362c8310a7924ac67f033b02e38f"
}

@@ -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);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc