0.6.1-u16.0 • Published 6 months ago

@agoric/assert v0.6.1-u16.0

Weekly downloads
2,081
License
Apache-2.0
Repository
github
Last release
6 months ago

assert

An assertion library that keeps sensitive data outside of the Error.

Throw (using provided error message) if expression is false. Assert that expr is truthy, with an optional details to describe the assertion. It is a tagged template literal like

assert(expr, details`....`);

If expr is falsy, then the template contents are reported to the console and also in a thrown error.

The literal portions of the template are assumed non-sensitive, as are the typeof types of the substitution values. These are assembled into the thrown error message. The actual contents of the substitution values are assumed sensitive, to be revealed to the console only. We assume only the virtual platform's owner can read what is written to the console, where the owner is in a privileged position over computation running on that platform.

The optional details can be a string for backwards compatibility with the nodejs assertion library.

0.6.1-u16.0

6 months ago

0.6.1-dev-c731c8c.0

10 months ago

0.6.1-dev-6793c14.0

10 months ago

0.6.1-dev-7ba058a.0

10 months ago

0.6.1-dev-21c29e2.0

10 months ago

0.6.1-dev-83b106a.0

10 months ago

0.6.1-dev-177a8d0.0

10 months ago

0.6.1-dev-5d5ee65.0

10 months ago

0.6.1-dev-32c4d68.0

10 months ago

0.6.1-dev-c5284e4.0

10 months ago

0.6.1-dev-64cb69f.0

11 months ago

0.6.1-dev-7ffae88.0

11 months ago

0.6.1-dev-d2ea4b4.0

11 months ago

0.6.1-dev-f30b379.0

11 months ago

0.6.1-dev-121b677.0

11 months ago

0.6.1-dev-b7a5c92.0

11 months ago

0.6.1-dev-7bf5870.0

11 months ago

0.6.1-dev-a253f74.0

11 months ago

0.6.1-dev-0142906.0

11 months ago

0.6.1-dev-1f4333e.0

11 months ago

0.6.1-dev-7386420.0

11 months ago

0.6.1-dev-7d47297.0

11 months ago

0.6.1-dev-f3c2b65.0

11 months ago

0.6.1-dev-1108cfd.0

11 months ago

0.6.1-dev-b233223.0

11 months ago

0.6.1-dev-72d3ed2.0

11 months ago

0.6.1-dev-2c609b8.0

11 months ago

0.6.1-dev-c132a31.0

11 months ago

0.6.1-dev-eddf36d.0

11 months ago

0.6.1-dev-99fc025.0

11 months ago

0.6.1-dev-09e90ee.0

11 months ago

0.6.1-dev-6b07a7b.0

11 months ago

0.6.1-dev-af57c38.0

11 months ago

0.6.1-dev-0769559.0

11 months ago

0.6.1-dev-1cea34c.0

11 months ago

0.6.1-dev-853cca5.0

11 months ago

0.6.1-dev-01baa28.0

11 months ago

0.6.1-dev-55a0902.0

11 months ago

0.6.1-dev-e0447b8.0

11 months ago

0.6.1-dev-046af59.0

11 months ago

0.6.1-dev-305b232.0

11 months ago

0.6.1-dev-51f64c2.0

11 months ago

0.6.1-dev-f85d35b.0

11 months ago

0.6.1-dev-8ef62f4.0

11 months ago

0.6.1-dev-00137a3.0

11 months ago

0.6.1-dev-6e90d96.0

11 months ago

0.6.1-dev-627b56b.0

11 months ago

0.6.1-dev-87e4ef4.0

11 months ago

0.6.1-dev-d48e752.0

12 months ago

0.6.1-dev-df3d0a7.0

12 months ago

0.6.1-dev-53ec11c.0

12 months ago

0.6.1-dev-73364fa.0

12 months ago

0.6.1-dev-ba2f0d9.0

12 months ago

0.6.1-dev-82d3548.0

12 months ago

0.6.1-dev-8604b01.0

12 months ago

0.6.1-dev-d3ddae6.0

12 months ago

0.6.1-dev-780a461.0

12 months ago

0.6.1-dev-05aeff2.0

12 months ago

0.6.1-dev-4dcc411.0

12 months ago

0.6.1-dev-75ef233.0

12 months ago

0.6.1-dev-6466eec.0

12 months ago

0.6.1-dev-6388a00.0

12 months ago

0.6.1-dev-376e47d.0

12 months ago

0.6.1-dev-8ecb5d7.0

12 months ago

0.6.1-dev-92855b2.0

12 months ago

0.6.1-u11wf.0

1 year ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.0

3 years ago

0.3.16

3 years ago

0.3.15

3 years ago

0.3.15-dev.1

3 years ago

0.3.15-dev.2

3 years ago

0.3.15-dev.0

3 years ago

0.3.14

3 years ago

0.3.13

3 years ago

0.3.12

3 years ago

0.3.11

3 years ago

0.3.10

3 years ago

0.3.9

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.5-dev.0

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2-dev.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.12-dev.0

4 years ago

0.0.11

4 years ago

0.0.11-dev.1

4 years ago

0.0.11-dev.2

4 years ago

0.0.11-dev.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago