@kerebron/test-utils 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -11
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.16/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.js +5 -2
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.js +6 -5
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.js +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.js +7 -6
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.d.ts +3 -5
- package/esm/deps/jsr.io/@std/internal/1.0.12/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/build_message.js +13 -7
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts +25 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/types.d.ts.map +1 -0
- package/esm/test-utils.d.ts +1 -1
- package/esm/test-utils.js +1 -1
- package/package.json +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.14/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.10/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.10/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.10/types.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/almost_equals.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/array_includes.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assert.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/assertion_error.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/fail.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/false.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/greater_or_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/is_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/less_or_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/mod.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_instance_of.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/not_strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/object_match.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/rejects.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/string_includes.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/throws.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unimplemented.js +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.14 → 1.0.16}/unreachable.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.10 → 1.0.12}/types.js +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
## Playground Demo
|
|
10
10
|
|
|
11
|
-
[playground](https://
|
|
11
|
+
[playground](https://demo.kerebron.com) - be nice.
|
|
12
12
|
|
|
13
13
|
## Overview
|
|
14
14
|
|
|
@@ -26,22 +26,27 @@ number of output npm modules.
|
|
|
26
26
|
|
|
27
27
|
**Work in progress**
|
|
28
28
|
|
|
29
|
-
## Development
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
## Build
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
### Build static examples and `.wasm` files
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
deno task build
|
|
35
36
|
```
|
|
36
37
|
|
|
37
|
-
##
|
|
38
|
+
## Development
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
To start example server:
|
|
40
41
|
|
|
41
|
-
```
|
|
42
|
-
deno task -
|
|
42
|
+
```sh
|
|
43
|
+
deno task -f server-deno-hono start
|
|
43
44
|
```
|
|
44
45
|
|
|
46
|
+
## Examples
|
|
47
|
+
|
|
48
|
+
TODO
|
|
49
|
+
|
|
45
50
|
### NPM packages are generated using DNT
|
|
46
51
|
|
|
47
52
|
- https://deno.com/blog/publish-esm-cjs-module-dnt - the easiest way to publish
|
|
@@ -51,13 +56,27 @@ deno task -r build
|
|
|
51
56
|
|
|
52
57
|
To generate npm packages
|
|
53
58
|
|
|
54
|
-
```
|
|
59
|
+
```sh
|
|
55
60
|
deno -A ./build/build_npm.ts
|
|
56
61
|
```
|
|
57
62
|
|
|
58
63
|
## Run through docker
|
|
59
64
|
|
|
60
|
-
```
|
|
65
|
+
```sh
|
|
61
66
|
docker build . -t editor-test
|
|
62
67
|
docker run -it -p 8000:8000 -v $PWD:/usr/src/app editor-test
|
|
63
68
|
```
|
|
69
|
+
|
|
70
|
+
## Prerequisites
|
|
71
|
+
|
|
72
|
+
Install deno
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
npm install -g deno
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Install rust
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
82
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { equal } from "./equal.js";
|
|
4
|
-
import { format } from "../../internal/1.0.
|
|
4
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
5
5
|
import { AssertionError } from "./assertion_error.js";
|
|
6
6
|
/**
|
|
7
7
|
* Make an assertion that `actual` includes the `expected` values. If not then
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/equal.ts"],"names":[],"mappings":"AA0FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAgHrD"}
|
|
@@ -34,8 +34,7 @@ function getKeysDeep(obj) {
|
|
|
34
34
|
return keys;
|
|
35
35
|
}
|
|
36
36
|
// deno-lint-ignore no-explicit-any
|
|
37
|
-
const Temporal = dntShim.dntGlobalThis.Temporal ??
|
|
38
|
-
new Proxy({}, { get: () => { } });
|
|
37
|
+
const Temporal = dntShim.dntGlobalThis.Temporal ?? Object.create(null);
|
|
39
38
|
/** A non-exhaustive list of prototypes that can be accurately fast-path compared with `String(instance)` */
|
|
40
39
|
const stringComparablePrototypes = new Set([
|
|
41
40
|
Intl.Locale,
|
|
@@ -105,6 +104,10 @@ export function equal(a, b) {
|
|
|
105
104
|
if (a instanceof TypedArray) {
|
|
106
105
|
return compareTypedArrays(a, b);
|
|
107
106
|
}
|
|
107
|
+
if (a instanceof ArrayBuffer ||
|
|
108
|
+
(globalThis.SharedArrayBuffer && a instanceof SharedArrayBuffer)) {
|
|
109
|
+
return compareTypedArrays(new Uint8Array(a), new Uint8Array(b));
|
|
110
|
+
}
|
|
108
111
|
if (a instanceof WeakMap) {
|
|
109
112
|
throw new TypeError("Cannot compare WeakMap instances");
|
|
110
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { equal } from "./equal.js";
|
|
4
|
-
import { buildMessage } from "../../internal/1.0.
|
|
5
|
-
import { diff } from "../../internal/1.0.
|
|
6
|
-
import { diffStr } from "../../internal/1.0.
|
|
7
|
-
import { format } from "../../internal/1.0.
|
|
4
|
+
import { buildMessage } from "../../internal/1.0.12/build_message.js";
|
|
5
|
+
import { diff } from "../../internal/1.0.12/diff.js";
|
|
6
|
+
import { diffStr } from "../../internal/1.0.12/diff_str.js";
|
|
7
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
8
8
|
import { AssertionError } from "./assertion_error.js";
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
@@ -52,7 +52,8 @@ export function assertEquals(actual, expected, msg) {
|
|
|
52
52
|
const diffResult = stringDiff
|
|
53
53
|
? diffStr(actual, expected)
|
|
54
54
|
: diff(actualString.split("\n"), expectedString.split("\n"));
|
|
55
|
-
const diffMsg = buildMessage(diffResult, { stringDiff })
|
|
55
|
+
const diffMsg = buildMessage(diffResult, { stringDiff }, arguments[3])
|
|
56
|
+
.join("\n");
|
|
56
57
|
message = `${message}\n${diffMsg}`;
|
|
57
58
|
throw new AssertionError(message);
|
|
58
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { format } from "../../internal/1.0.
|
|
3
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
4
4
|
import { AssertionError } from "./assertion_error.js";
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `actual` is greater than `expected`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { format } from "../../internal/1.0.
|
|
3
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
4
4
|
import { AssertionError } from "./assertion_error.js";
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `actual` is greater than or equal to `expected`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { AssertionError } from "./assertion_error.js";
|
|
4
|
-
import { stripAnsiCode } from "../../internal/1.0.
|
|
4
|
+
import { stripAnsiCode } from "../../internal/1.0.12/styles.js";
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `error` is an `Error`.
|
|
7
7
|
* If not then an error will be thrown.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { format } from "../../internal/1.0.
|
|
3
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
4
4
|
import { AssertionError } from "./assertion_error.js";
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `actual` is less than `expected`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/less_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { format } from "../../internal/1.0.
|
|
3
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
4
4
|
import { AssertionError } from "./assertion_error.js";
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `actual` is less than or equal to `expected`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/not_equals.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAUtE"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { equal } from "./equal.js";
|
|
4
4
|
import { AssertionError } from "./assertion_error.js";
|
|
5
|
-
import { format } from "../../internal/1.0.
|
|
5
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
6
6
|
/**
|
|
7
7
|
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
8
8
|
* If not then throw.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/not_instance_of.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAClD,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { AssertionError } from "./assertion_error.js";
|
|
4
|
-
import { format } from "../../internal/1.0.
|
|
4
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
5
5
|
/**
|
|
6
6
|
* Make an assertion that `actual` and `expected` are not strictly equal, using
|
|
7
7
|
* {@linkcode Object.is} for equality comparison. If the values are strictly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"object_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/object_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CAUN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CAgCrB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { buildMessage } from "../../internal/1.0.
|
|
4
|
-
import { diff } from "../../internal/1.0.
|
|
5
|
-
import { diffStr } from "../../internal/1.0.
|
|
6
|
-
import { format } from "../../internal/1.0.
|
|
7
|
-
import { red } from "../../internal/1.0.
|
|
3
|
+
import { buildMessage } from "../../internal/1.0.12/build_message.js";
|
|
4
|
+
import { diff } from "../../internal/1.0.12/diff.js";
|
|
5
|
+
import { diffStr } from "../../internal/1.0.12/diff_str.js";
|
|
6
|
+
import { format } from "../../internal/1.0.12/format.js";
|
|
7
|
+
import { red } from "../../internal/1.0.12/styles.js";
|
|
8
8
|
import { AssertionError } from "./assertion_error.js";
|
|
9
9
|
/**
|
|
10
10
|
* Make an assertion that `actual` and `expected` are strictly equal, using
|
|
@@ -50,7 +50,8 @@ export function assertStrictEquals(actual, expected, msg) {
|
|
|
50
50
|
const diffResult = stringDiff
|
|
51
51
|
? diffStr(actual, expected)
|
|
52
52
|
: diff(actualString.split("\n"), expectedString.split("\n"));
|
|
53
|
-
const diffMsg = buildMessage(diffResult, { stringDiff })
|
|
53
|
+
const diffMsg = buildMessage(diffResult, { stringDiff }, arguments[3])
|
|
54
|
+
.join("\n");
|
|
54
55
|
message = `Values are not strictly equal${msgSuffix}\n${diffMsg}`;
|
|
55
56
|
}
|
|
56
57
|
throw new AssertionError(message);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"string_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/string_includes.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"unimplemented.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/unimplemented.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.
|
|
1
|
+
{"version":3,"file":"unreachable.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.16/unreachable.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAG/C"}
|
|
@@ -46,7 +46,6 @@ export declare function createSign(diffType: DiffType): string;
|
|
|
46
46
|
export interface BuildMessageOptions {
|
|
47
47
|
/**
|
|
48
48
|
* Whether to output the diff as a single string.
|
|
49
|
-
*
|
|
50
49
|
* @default {false}
|
|
51
50
|
*/
|
|
52
51
|
stringDiff?: boolean;
|
|
@@ -56,6 +55,7 @@ export interface BuildMessageOptions {
|
|
|
56
55
|
*
|
|
57
56
|
* @param diffResult The diff result array.
|
|
58
57
|
* @param options Optional parameters for customizing the message.
|
|
58
|
+
* @param truncateDiff Function to truncate the diff (default is no truncation).
|
|
59
59
|
*
|
|
60
60
|
* @returns An array of strings representing the built message.
|
|
61
61
|
*
|
|
@@ -63,9 +63,7 @@ export interface BuildMessageOptions {
|
|
|
63
63
|
* ```ts no-assert
|
|
64
64
|
* import { diffStr, buildMessage } from "@std/internal";
|
|
65
65
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* console.log(buildMessage(diffResult));
|
|
66
|
+
* diffStr("Hello, world!", "Hello, world");
|
|
69
67
|
* // [
|
|
70
68
|
* // "",
|
|
71
69
|
* // "",
|
|
@@ -78,5 +76,5 @@ export interface BuildMessageOptions {
|
|
|
78
76
|
* // ]
|
|
79
77
|
* ```
|
|
80
78
|
*/
|
|
81
|
-
export declare function buildMessage(diffResult: ReadonlyArray<DiffResult<string>>, options?: BuildMessageOptions): string[];
|
|
79
|
+
export declare function buildMessage(diffResult: ReadonlyArray<DiffResult<string>>, options?: BuildMessageOptions, truncateDiff?: (diffResult: ReadonlyArray<DiffResult<string>>, stringDiff: boolean, contextLength?: number | null) => ReadonlyArray<DiffResult<string>>): string[];
|
|
82
80
|
//# sourceMappingURL=build_message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAWvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,EACjC,YAAY,CAAC,EAAE,CACb,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,UAAU,EAAE,OAAO,EACnB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,KAC1B,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GACrC,MAAM,EAAE,CA8BV"}
|
|
@@ -31,6 +31,8 @@ background = false) {
|
|
|
31
31
|
return (s) => background ? bgGreen(white(s)) : green(bold(s));
|
|
32
32
|
case "removed":
|
|
33
33
|
return (s) => background ? bgRed(white(s)) : red(bold(s));
|
|
34
|
+
case "truncation":
|
|
35
|
+
return gray;
|
|
34
36
|
default:
|
|
35
37
|
return white;
|
|
36
38
|
}
|
|
@@ -67,6 +69,7 @@ export function createSign(diffType) {
|
|
|
67
69
|
*
|
|
68
70
|
* @param diffResult The diff result array.
|
|
69
71
|
* @param options Optional parameters for customizing the message.
|
|
72
|
+
* @param truncateDiff Function to truncate the diff (default is no truncation).
|
|
70
73
|
*
|
|
71
74
|
* @returns An array of strings representing the built message.
|
|
72
75
|
*
|
|
@@ -74,9 +77,7 @@ export function createSign(diffType) {
|
|
|
74
77
|
* ```ts no-assert
|
|
75
78
|
* import { diffStr, buildMessage } from "@std/internal";
|
|
76
79
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* console.log(buildMessage(diffResult));
|
|
80
|
+
* diffStr("Hello, world!", "Hello, world");
|
|
80
81
|
* // [
|
|
81
82
|
* // "",
|
|
82
83
|
* // "",
|
|
@@ -89,7 +90,10 @@ export function createSign(diffType) {
|
|
|
89
90
|
* // ]
|
|
90
91
|
* ```
|
|
91
92
|
*/
|
|
92
|
-
export function buildMessage(diffResult, options = {}) {
|
|
93
|
+
export function buildMessage(diffResult, options = {}, truncateDiff) {
|
|
94
|
+
if (truncateDiff != null) {
|
|
95
|
+
diffResult = truncateDiff(diffResult, options.stringDiff ?? false);
|
|
96
|
+
}
|
|
93
97
|
const { stringDiff = false } = options;
|
|
94
98
|
const messages = [
|
|
95
99
|
"",
|
|
@@ -100,9 +104,11 @@ export function buildMessage(diffResult, options = {}) {
|
|
|
100
104
|
];
|
|
101
105
|
const diffMessages = diffResult.map((result) => {
|
|
102
106
|
const color = createColor(result.type);
|
|
103
|
-
const line = result.
|
|
104
|
-
?
|
|
105
|
-
|
|
107
|
+
const line = result.type === "added" || result.type === "removed"
|
|
108
|
+
? result.details?.map((detail) => detail.type !== "common"
|
|
109
|
+
? createColor(detail.type, true)(detail.value)
|
|
110
|
+
: detail.value).join("") ?? result.value
|
|
111
|
+
: result.value;
|
|
106
112
|
return color(`${createSign(result.type)}${line}`);
|
|
107
113
|
});
|
|
108
114
|
messages.push(...(stringDiff ? [diffMessages.join("")] : diffMessages), "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/diff.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD,2DAA2D;AAC3D,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAanD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,IAAI,aAAa,CAWvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,CAAC,EAAE,CAAC,EAAE,EACN,CAAC,EAAE,CAAC,EAAE,EACN,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,GACzB,KAAK,CAAC;IACP,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;CACV,CAAC,CAgCD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,QAAQ,CACtB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,WAAW,EACnB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,aAAa,EACrB,IAAI,CAAC,EAAE,aAAa,GACnB,aAAa,CAsBf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAwEvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,YAAY,CAAC;AAGhE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/format.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GAAG,CACtB,CAAC,EAAE,OAAO,EACV,OAAO,EAAE;IACP,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,KACE,MAAM,CAAC;AAEZ;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAmBzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/styles.ts"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE3C;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Ways that lines in a diff can be different. */
|
|
2
|
+
export type DiffType = DiffResult<unknown>["type"];
|
|
3
|
+
/**
|
|
4
|
+
* Represents the result of a diff operation.
|
|
5
|
+
* @typeParam T The type of the value in the diff result.
|
|
6
|
+
*/
|
|
7
|
+
export type DiffResult<T> = ChangedDiffResult<T> | CommonDiffResult<T>;
|
|
8
|
+
/**
|
|
9
|
+
* Represents the result of a common diff operation.
|
|
10
|
+
* @typeParam T The type of the value in the diff result.
|
|
11
|
+
*/
|
|
12
|
+
export type CommonDiffResult<T> = {
|
|
13
|
+
type: "common" | "truncation";
|
|
14
|
+
value: T;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Represents the result of a changed diff operation.
|
|
18
|
+
* @typeParam T The type of the value in the diff result.
|
|
19
|
+
*/
|
|
20
|
+
export type ChangedDiffResult<T> = {
|
|
21
|
+
type: "removed" | "added";
|
|
22
|
+
value: T;
|
|
23
|
+
details?: DiffResult<T>[];
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD;;;GAGG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAEvE;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,IAAI,EAAE,QAAQ,GAAG,YAAY,CAAC;IAC9B,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IAC1B,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B,CAAC"}
|
package/esm/test-utils.d.ts
CHANGED
package/esm/test-utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.14/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/build_message.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEvD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ;AAClB;;;GAGG;AACH,UAAU,UAAQ,GACjB,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CASvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CASrD;AAED,4CAA4C;AAC5C,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAsBV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diff_str.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/diff_str.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAY/C;AAKD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,UAAQ,GAAG,MAAM,EAAE,CAiBnE;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,EACxB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,GAC3B,UAAU,CAAC,MAAM,CAAC,EAAE,CAetB;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,EAAE,CAkDlE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Ways that lines in a diff can be different. */
|
|
2
|
-
export type DiffType = "removed" | "common" | "added";
|
|
3
|
-
/**
|
|
4
|
-
* Represents the result of a diff operation.
|
|
5
|
-
*
|
|
6
|
-
* @typeParam T The type of the value in the diff result.
|
|
7
|
-
*/
|
|
8
|
-
export interface DiffResult<T> {
|
|
9
|
-
/** The type of the diff. */
|
|
10
|
-
type: DiffType;
|
|
11
|
-
/** The value of the diff. */
|
|
12
|
-
value: T;
|
|
13
|
-
/** The details of the diff. */
|
|
14
|
-
details?: DiffResult<T>[];
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.10/types.ts"],"names":[],"mappings":"AAGA,kDAAkD;AAClD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,6BAA6B;IAC7B,KAAK,EAAE,CAAC,CAAC;IACT,+BAA+B;IAC/B,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;CAC3B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|