@mtkruto/node 0.0.971 → 0.0.972

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.
Files changed (131) hide show
  1. package/esm/constants.d.ts +1 -1
  2. package/esm/constants.js +1 -1
  3. package/esm/deps/deno.land/std@0.196.0/assert/_constants.d.ts +1 -0
  4. package/esm/deps/deno.land/std@0.196.0/assert/_constants.js +2 -0
  5. package/esm/deps/deno.land/std@0.196.0/assert/assert.d.ts +2 -0
  6. package/esm/deps/deno.land/std@0.196.0/assert/assert.js +8 -0
  7. package/esm/deps/deno.land/std@0.196.0/assert/assert_almost_equals.d.ts +18 -0
  8. package/esm/deps/deno.land/std@0.196.0/assert/assert_almost_equals.js +32 -0
  9. package/esm/deps/deno.land/std@0.196.0/assert/assert_array_includes.d.ts +14 -0
  10. package/esm/deps/deno.land/std@0.196.0/assert/assert_array_includes.js +38 -0
  11. package/esm/deps/deno.land/std@0.196.0/assert/assert_equals.d.ts +17 -0
  12. package/esm/deps/deno.land/std@0.196.0/assert/assert_equals.js +45 -0
  13. package/esm/deps/deno.land/std@0.196.0/assert/assert_exists.d.ts +5 -0
  14. package/esm/deps/deno.land/std@0.196.0/assert/assert_exists.js +14 -0
  15. package/esm/deps/deno.land/std@0.196.0/assert/assert_false.d.ts +4 -0
  16. package/esm/deps/deno.land/std@0.196.0/assert/assert_false.js +7 -0
  17. package/esm/deps/deno.land/std@0.196.0/assert/assert_instance_of.d.ts +8 -0
  18. package/esm/deps/deno.land/std@0.196.0/assert/assert_instance_of.js +38 -0
  19. package/esm/deps/deno.land/std@0.196.0/assert/assert_is_error.d.ts +7 -0
  20. package/esm/deps/deno.land/std@0.196.0/assert/assert_is_error.js +26 -0
  21. package/esm/deps/deno.land/std@0.196.0/assert/assert_match.d.ts +5 -0
  22. package/esm/deps/deno.land/std@0.196.0/assert/assert_match.js +13 -0
  23. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_equals.d.ts +14 -0
  24. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_equals.js +37 -0
  25. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_instance_of.d.ts +5 -0
  26. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_instance_of.js +14 -0
  27. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_match.d.ts +5 -0
  28. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_match.js +14 -0
  29. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_strict_equals.d.ts +11 -0
  30. package/esm/deps/deno.land/std@0.196.0/assert/assert_not_strict_equals.js +20 -0
  31. package/esm/deps/deno.land/std@0.196.0/assert/assert_object_match.d.ts +5 -0
  32. package/esm/deps/deno.land/std@0.196.0/assert/assert_object_match.js +78 -0
  33. package/esm/deps/deno.land/std@0.196.0/assert/assert_rejects.d.ts +64 -0
  34. package/esm/deps/deno.land/std@0.196.0/assert/assert_rejects.js +50 -0
  35. package/esm/deps/deno.land/std@0.196.0/assert/assert_strict_equals.d.ts +23 -0
  36. package/esm/deps/deno.land/std@0.196.0/assert/assert_strict_equals.js +60 -0
  37. package/esm/deps/deno.land/std@0.196.0/assert/assert_string_includes.d.ts +5 -0
  38. package/esm/deps/deno.land/std@0.196.0/assert/assert_string_includes.js +13 -0
  39. package/esm/deps/deno.land/std@0.196.0/assert/assert_throws.d.ts +54 -0
  40. package/esm/deps/deno.land/std@0.196.0/assert/assert_throws.js +44 -0
  41. package/esm/deps/deno.land/std@0.196.0/assert/assertion_error.d.ts +4 -0
  42. package/esm/deps/deno.land/std@0.196.0/assert/assertion_error.js +12 -0
  43. package/esm/deps/deno.land/std@0.196.0/assert/equal.d.ts +6 -0
  44. package/esm/deps/deno.land/std@0.196.0/assert/equal.js +102 -0
  45. package/esm/deps/deno.land/std@0.196.0/assert/fail.d.ts +4 -0
  46. package/esm/deps/deno.land/std@0.196.0/assert/fail.js +9 -0
  47. package/esm/deps/deno.land/std@0.196.0/assert/mod.d.ts +32 -0
  48. package/esm/deps/deno.land/std@0.196.0/assert/mod.js +33 -0
  49. package/esm/deps/deno.land/std@0.196.0/assert/unimplemented.d.ts +2 -0
  50. package/esm/deps/deno.land/std@0.196.0/assert/unimplemented.js +7 -0
  51. package/esm/deps/deno.land/std@0.196.0/assert/unreachable.d.ts +2 -0
  52. package/esm/deps/deno.land/std@0.196.0/assert/unreachable.js +6 -0
  53. package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.js +2 -2
  54. package/{script/deps/deno.land/std@0.190.0 → esm/deps/deno.land/std@0.196.0}/testing/asserts.d.ts +204 -159
  55. package/esm/deps/deno.land/std@0.196.0/testing/asserts.js +330 -0
  56. package/esm/deps.d.ts +2 -2
  57. package/esm/deps.js +2 -2
  58. package/package.json +1 -1
  59. package/script/constants.d.ts +1 -1
  60. package/script/constants.js +1 -1
  61. package/script/deps/deno.land/std@0.196.0/assert/_constants.d.ts +1 -0
  62. package/script/deps/deno.land/std@0.196.0/assert/_constants.js +5 -0
  63. package/script/deps/deno.land/std@0.196.0/assert/assert.d.ts +2 -0
  64. package/script/deps/deno.land/std@0.196.0/assert/assert.js +12 -0
  65. package/script/deps/deno.land/std@0.196.0/assert/assert_almost_equals.d.ts +18 -0
  66. package/script/deps/deno.land/std@0.196.0/assert/assert_almost_equals.js +36 -0
  67. package/script/deps/deno.land/std@0.196.0/assert/assert_array_includes.d.ts +14 -0
  68. package/script/deps/deno.land/std@0.196.0/assert/assert_array_includes.js +42 -0
  69. package/script/deps/deno.land/std@0.196.0/assert/assert_equals.d.ts +17 -0
  70. package/script/deps/deno.land/std@0.196.0/assert/assert_equals.js +49 -0
  71. package/script/deps/deno.land/std@0.196.0/assert/assert_exists.d.ts +5 -0
  72. package/script/deps/deno.land/std@0.196.0/assert/assert_exists.js +18 -0
  73. package/script/deps/deno.land/std@0.196.0/assert/assert_false.d.ts +4 -0
  74. package/script/deps/deno.land/std@0.196.0/assert/assert_false.js +11 -0
  75. package/script/deps/deno.land/std@0.196.0/assert/assert_instance_of.d.ts +8 -0
  76. package/script/deps/deno.land/std@0.196.0/assert/assert_instance_of.js +42 -0
  77. package/script/deps/deno.land/std@0.196.0/assert/assert_is_error.d.ts +7 -0
  78. package/script/deps/deno.land/std@0.196.0/assert/assert_is_error.js +30 -0
  79. package/script/deps/deno.land/std@0.196.0/assert/assert_match.d.ts +5 -0
  80. package/script/deps/deno.land/std@0.196.0/assert/assert_match.js +17 -0
  81. package/script/deps/deno.land/std@0.196.0/assert/assert_not_equals.d.ts +14 -0
  82. package/script/deps/deno.land/std@0.196.0/assert/assert_not_equals.js +41 -0
  83. package/script/deps/deno.land/std@0.196.0/assert/assert_not_instance_of.d.ts +5 -0
  84. package/script/deps/deno.land/std@0.196.0/assert/assert_not_instance_of.js +18 -0
  85. package/script/deps/deno.land/std@0.196.0/assert/assert_not_match.d.ts +5 -0
  86. package/script/deps/deno.land/std@0.196.0/assert/assert_not_match.js +18 -0
  87. package/script/deps/deno.land/std@0.196.0/assert/assert_not_strict_equals.d.ts +11 -0
  88. package/script/deps/deno.land/std@0.196.0/assert/assert_not_strict_equals.js +24 -0
  89. package/script/deps/deno.land/std@0.196.0/assert/assert_object_match.d.ts +5 -0
  90. package/script/deps/deno.land/std@0.196.0/assert/assert_object_match.js +82 -0
  91. package/script/deps/deno.land/std@0.196.0/assert/assert_rejects.d.ts +64 -0
  92. package/script/deps/deno.land/std@0.196.0/assert/assert_rejects.js +54 -0
  93. package/script/deps/deno.land/std@0.196.0/assert/assert_strict_equals.d.ts +23 -0
  94. package/script/deps/deno.land/std@0.196.0/assert/assert_strict_equals.js +64 -0
  95. package/script/deps/deno.land/std@0.196.0/assert/assert_string_includes.d.ts +5 -0
  96. package/script/deps/deno.land/std@0.196.0/assert/assert_string_includes.js +17 -0
  97. package/script/deps/deno.land/std@0.196.0/assert/assert_throws.d.ts +54 -0
  98. package/script/deps/deno.land/std@0.196.0/assert/assert_throws.js +48 -0
  99. package/script/deps/deno.land/std@0.196.0/assert/assertion_error.d.ts +4 -0
  100. package/script/deps/deno.land/std@0.196.0/assert/assertion_error.js +16 -0
  101. package/script/deps/deno.land/std@0.196.0/assert/equal.d.ts +6 -0
  102. package/script/deps/deno.land/std@0.196.0/assert/equal.js +106 -0
  103. package/script/deps/deno.land/std@0.196.0/assert/fail.d.ts +4 -0
  104. package/script/deps/deno.land/std@0.196.0/assert/fail.js +13 -0
  105. package/script/deps/deno.land/std@0.196.0/assert/mod.d.ts +32 -0
  106. package/script/deps/deno.land/std@0.196.0/assert/mod.js +49 -0
  107. package/script/deps/deno.land/std@0.196.0/assert/unimplemented.d.ts +2 -0
  108. package/script/deps/deno.land/std@0.196.0/assert/unimplemented.js +11 -0
  109. package/script/deps/deno.land/std@0.196.0/assert/unreachable.d.ts +2 -0
  110. package/script/deps/deno.land/std@0.196.0/assert/unreachable.js +10 -0
  111. package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.js +2 -2
  112. package/{esm/deps/deno.land/std@0.190.0 → script/deps/deno.land/std@0.196.0}/testing/asserts.d.ts +204 -159
  113. package/script/deps/deno.land/std@0.196.0/testing/asserts.js +333 -0
  114. package/script/deps.d.ts +2 -2
  115. package/script/deps.js +2 -2
  116. package/esm/deps/deno.land/std@0.190.0/testing/asserts.js +0 -633
  117. package/script/deps/deno.land/std@0.190.0/testing/asserts.js +0 -659
  118. /package/esm/deps/deno.land/{std@0.190.0/testing/_diff.d.ts → std@0.196.0/_util/diff.d.ts} +0 -0
  119. /package/esm/deps/deno.land/{std@0.190.0/testing/_diff.js → std@0.196.0/_util/diff.js} +0 -0
  120. /package/esm/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.d.ts +0 -0
  121. /package/esm/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.js +0 -0
  122. /package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.d.ts +0 -0
  123. /package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.js +0 -0
  124. /package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.d.ts +0 -0
  125. /package/script/deps/deno.land/{std@0.190.0/testing/_diff.d.ts → std@0.196.0/_util/diff.d.ts} +0 -0
  126. /package/script/deps/deno.land/{std@0.190.0/testing/_diff.js → std@0.196.0/_util/diff.js} +0 -0
  127. /package/script/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.d.ts +0 -0
  128. /package/script/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.js +0 -0
  129. /package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.d.ts +0 -0
  130. /package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.js +0 -0
  131. /package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.d.ts +0 -0
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assertThrows = void 0;
4
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
+ const assert_is_error_js_1 = require("./assert_is_error.js");
6
+ const assertion_error_js_1 = require("./assertion_error.js");
7
+ function assertThrows(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
8
+ // deno-lint-ignore no-explicit-any
9
+ let ErrorClass = undefined;
10
+ let msgIncludes = undefined;
11
+ let err;
12
+ if (typeof errorClassOrMsg !== "string") {
13
+ if (errorClassOrMsg === undefined ||
14
+ errorClassOrMsg.prototype instanceof Error ||
15
+ errorClassOrMsg.prototype === Error.prototype) {
16
+ // deno-lint-ignore no-explicit-any
17
+ ErrorClass = errorClassOrMsg;
18
+ msgIncludes = msgIncludesOrMsg;
19
+ }
20
+ else {
21
+ msg = msgIncludesOrMsg;
22
+ }
23
+ }
24
+ else {
25
+ msg = errorClassOrMsg;
26
+ }
27
+ let doesThrow = false;
28
+ const msgSuffix = msg ? `: ${msg}` : ".";
29
+ try {
30
+ fn();
31
+ }
32
+ catch (error) {
33
+ if (ErrorClass) {
34
+ if (error instanceof Error === false) {
35
+ throw new assertion_error_js_1.AssertionError(`A non-Error object was thrown${msgSuffix}`);
36
+ }
37
+ (0, assert_is_error_js_1.assertIsError)(error, ErrorClass, msgIncludes, msg);
38
+ }
39
+ err = error;
40
+ doesThrow = true;
41
+ }
42
+ if (!doesThrow) {
43
+ msg = `Expected function to throw${msgSuffix}`;
44
+ throw new assertion_error_js_1.AssertionError(msg);
45
+ }
46
+ return err;
47
+ }
48
+ exports.assertThrows = assertThrows;
@@ -0,0 +1,4 @@
1
+ export declare class AssertionError extends Error {
2
+ name: string;
3
+ constructor(message: string);
4
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssertionError = void 0;
4
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
+ class AssertionError extends Error {
6
+ constructor(message) {
7
+ super(message);
8
+ Object.defineProperty(this, "name", {
9
+ enumerable: true,
10
+ configurable: true,
11
+ writable: true,
12
+ value: "AssertionError"
13
+ });
14
+ }
15
+ }
16
+ exports.AssertionError = AssertionError;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Deep equality comparison used in assertions
3
+ * @param c actual value
4
+ * @param d expected value
5
+ */
6
+ export declare function equal(c: unknown, d: unknown): boolean;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.equal = void 0;
4
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
+ function isKeyedCollection(x) {
6
+ return [Symbol.iterator, "size"].every((k) => k in x);
7
+ }
8
+ function constructorsEqual(a, b) {
9
+ return a.constructor === b.constructor ||
10
+ a.constructor === Object && !b.constructor ||
11
+ !a.constructor && b.constructor === Object;
12
+ }
13
+ /**
14
+ * Deep equality comparison used in assertions
15
+ * @param c actual value
16
+ * @param d expected value
17
+ */
18
+ function equal(c, d) {
19
+ const seen = new Map();
20
+ return (function compare(a, b) {
21
+ // Have to render RegExp & Date for string comparison
22
+ // unless it's mistreated as object
23
+ if (a &&
24
+ b &&
25
+ ((a instanceof RegExp && b instanceof RegExp) ||
26
+ (a instanceof URL && b instanceof URL))) {
27
+ return String(a) === String(b);
28
+ }
29
+ if (a instanceof Date && b instanceof Date) {
30
+ const aTime = a.getTime();
31
+ const bTime = b.getTime();
32
+ // Check for NaN equality manually since NaN is not
33
+ // equal to itself.
34
+ if (Number.isNaN(aTime) && Number.isNaN(bTime)) {
35
+ return true;
36
+ }
37
+ return aTime === bTime;
38
+ }
39
+ if (typeof a === "number" && typeof b === "number") {
40
+ return Number.isNaN(a) && Number.isNaN(b) || a === b;
41
+ }
42
+ if (Object.is(a, b)) {
43
+ return true;
44
+ }
45
+ if (a && typeof a === "object" && b && typeof b === "object") {
46
+ if (a && b && !constructorsEqual(a, b)) {
47
+ return false;
48
+ }
49
+ if (a instanceof WeakMap || b instanceof WeakMap) {
50
+ if (!(a instanceof WeakMap && b instanceof WeakMap))
51
+ return false;
52
+ throw new TypeError("cannot compare WeakMap instances");
53
+ }
54
+ if (a instanceof WeakSet || b instanceof WeakSet) {
55
+ if (!(a instanceof WeakSet && b instanceof WeakSet))
56
+ return false;
57
+ throw new TypeError("cannot compare WeakSet instances");
58
+ }
59
+ if (seen.get(a) === b) {
60
+ return true;
61
+ }
62
+ if (Object.keys(a || {}).length !== Object.keys(b || {}).length) {
63
+ return false;
64
+ }
65
+ seen.set(a, b);
66
+ if (isKeyedCollection(a) && isKeyedCollection(b)) {
67
+ if (a.size !== b.size) {
68
+ return false;
69
+ }
70
+ let unmatchedEntries = a.size;
71
+ for (const [aKey, aValue] of a.entries()) {
72
+ for (const [bKey, bValue] of b.entries()) {
73
+ /* Given that Map keys can be references, we need
74
+ * to ensure that they are also deeply equal */
75
+ if ((aKey === aValue && bKey === bValue && compare(aKey, bKey)) ||
76
+ (compare(aKey, bKey) && compare(aValue, bValue))) {
77
+ unmatchedEntries--;
78
+ break;
79
+ }
80
+ }
81
+ }
82
+ return unmatchedEntries === 0;
83
+ }
84
+ const merged = { ...a, ...b };
85
+ for (const key of [
86
+ ...Object.getOwnPropertyNames(merged),
87
+ ...Object.getOwnPropertySymbols(merged),
88
+ ]) {
89
+ if (!compare(a && a[key], b && b[key])) {
90
+ return false;
91
+ }
92
+ if (((key in a) && (!(key in b))) || ((key in b) && (!(key in a)))) {
93
+ return false;
94
+ }
95
+ }
96
+ if (a instanceof WeakRef || b instanceof WeakRef) {
97
+ if (!(a instanceof WeakRef && b instanceof WeakRef))
98
+ return false;
99
+ return compare(a.deref(), b.deref());
100
+ }
101
+ return true;
102
+ }
103
+ return false;
104
+ })(c, d);
105
+ }
106
+ exports.equal = equal;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Forcefully throws a failed assertion
3
+ */
4
+ export declare function fail(msg?: string): never;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fail = void 0;
4
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
+ const assert_js_1 = require("./assert.js");
6
+ /**
7
+ * Forcefully throws a failed assertion
8
+ */
9
+ function fail(msg) {
10
+ const msgSuffix = msg ? `: ${msg}` : ".";
11
+ (0, assert_js_1.assert)(false, `Failed assertion${msgSuffix}`);
12
+ }
13
+ exports.fail = fail;
@@ -0,0 +1,32 @@
1
+ /** A library of assertion functions.
2
+ * If the assertion is false an `AssertionError` will be thrown which will
3
+ * result in pretty-printed diff of failing assertion.
4
+ *
5
+ * This module is browser compatible, but do not rely on good formatting of
6
+ * values for AssertionError messages in browsers.
7
+ *
8
+ * @module
9
+ */
10
+ export * from "./assert_almost_equals.js";
11
+ export * from "./assert_array_includes.js";
12
+ export * from "./assert_equals.js";
13
+ export * from "./assert_exists.js";
14
+ export * from "./assert_false.js";
15
+ export * from "./assert_instance_of.js";
16
+ export * from "./assert_is_error.js";
17
+ export * from "./assert_match.js";
18
+ export * from "./assert_not_equals.js";
19
+ export * from "./assert_not_instance_of.js";
20
+ export * from "./assert_not_match.js";
21
+ export * from "./assert_not_strict_equals.js";
22
+ export * from "./assert_object_match.js";
23
+ export * from "./assert_rejects.js";
24
+ export * from "./assert_strict_equals.js";
25
+ export * from "./assert_string_includes.js";
26
+ export * from "./assert_throws.js";
27
+ export * from "./assert.js";
28
+ export * from "./assertion_error.js";
29
+ export * from "./equal.js";
30
+ export * from "./fail.js";
31
+ export * from "./unimplemented.js";
32
+ export * from "./unreachable.js";
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ /** A library of assertion functions.
19
+ * If the assertion is false an `AssertionError` will be thrown which will
20
+ * result in pretty-printed diff of failing assertion.
21
+ *
22
+ * This module is browser compatible, but do not rely on good formatting of
23
+ * values for AssertionError messages in browsers.
24
+ *
25
+ * @module
26
+ */
27
+ __exportStar(require("./assert_almost_equals.js"), exports);
28
+ __exportStar(require("./assert_array_includes.js"), exports);
29
+ __exportStar(require("./assert_equals.js"), exports);
30
+ __exportStar(require("./assert_exists.js"), exports);
31
+ __exportStar(require("./assert_false.js"), exports);
32
+ __exportStar(require("./assert_instance_of.js"), exports);
33
+ __exportStar(require("./assert_is_error.js"), exports);
34
+ __exportStar(require("./assert_match.js"), exports);
35
+ __exportStar(require("./assert_not_equals.js"), exports);
36
+ __exportStar(require("./assert_not_instance_of.js"), exports);
37
+ __exportStar(require("./assert_not_match.js"), exports);
38
+ __exportStar(require("./assert_not_strict_equals.js"), exports);
39
+ __exportStar(require("./assert_object_match.js"), exports);
40
+ __exportStar(require("./assert_rejects.js"), exports);
41
+ __exportStar(require("./assert_strict_equals.js"), exports);
42
+ __exportStar(require("./assert_string_includes.js"), exports);
43
+ __exportStar(require("./assert_throws.js"), exports);
44
+ __exportStar(require("./assert.js"), exports);
45
+ __exportStar(require("./assertion_error.js"), exports);
46
+ __exportStar(require("./equal.js"), exports);
47
+ __exportStar(require("./fail.js"), exports);
48
+ __exportStar(require("./unimplemented.js"), exports);
49
+ __exportStar(require("./unreachable.js"), exports);
@@ -0,0 +1,2 @@
1
+ /** Use this to stub out methods that will throw when invoked. */
2
+ export declare function unimplemented(msg?: string): never;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unimplemented = void 0;
4
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
+ const assertion_error_js_1 = require("./assertion_error.js");
6
+ /** Use this to stub out methods that will throw when invoked. */
7
+ function unimplemented(msg) {
8
+ const msgSuffix = msg ? `: ${msg}` : ".";
9
+ throw new assertion_error_js_1.AssertionError(`Unimplemented${msgSuffix}`);
10
+ }
11
+ exports.unimplemented = unimplemented;
@@ -0,0 +1,2 @@
1
+ /** Use this to assert unreachable code. */
2
+ export declare function unreachable(): never;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unreachable = void 0;
4
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
5
+ const assertion_error_js_1 = require("./assertion_error.js");
6
+ /** Use this to assert unreachable code. */
7
+ function unreachable() {
8
+ throw new assertion_error_js_1.AssertionError("unreachable");
9
+ }
10
+ exports.unreachable = unreachable;
@@ -79,14 +79,14 @@ const dntShim = __importStar(require("../../../../_dnt.shims.js"));
79
79
  const { Deno } = dntShim.dntGlobalThis;
80
80
  const noColor = typeof Deno?.noColor === "boolean"
81
81
  ? Deno.noColor
82
- : true;
82
+ : false;
83
83
  let enabled = !noColor;
84
84
  /**
85
85
  * Set changing text color to enabled or disabled
86
86
  * @param value
87
87
  */
88
88
  function setColorEnabled(value) {
89
- if (noColor) {
89
+ if (Deno?.noColor) {
90
90
  return;
91
91
  }
92
92
  enabled = value;