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

@agoric/assert

Package Overview
Dependencies
Maintainers
9
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-dev-05aeff2.0 to 0.6.1-dev-0705f2c.0

src/types-ambient.js

12

package.json
{
"name": "@agoric/assert",
"version": "0.6.1-dev-05aeff2.0+05aeff2",
"version": "0.6.1-dev-0705f2c.0+0705f2c",
"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": "^1.0.1",
"@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": "05aeff247b93d914c83656a082a9a89ef882fc55"
"gitHead": "0705f2c34da9a89c2b3441b47f8e5bfca53a9590"
}

@@ -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);
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