@mtkruto/node 0.0.970 → 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 (133) 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/esm/tl/1_tl_object.js +1 -1
  59. package/package.json +1 -1
  60. package/script/constants.d.ts +1 -1
  61. package/script/constants.js +1 -1
  62. package/script/deps/deno.land/std@0.196.0/assert/_constants.d.ts +1 -0
  63. package/script/deps/deno.land/std@0.196.0/assert/_constants.js +5 -0
  64. package/script/deps/deno.land/std@0.196.0/assert/assert.d.ts +2 -0
  65. package/script/deps/deno.land/std@0.196.0/assert/assert.js +12 -0
  66. package/script/deps/deno.land/std@0.196.0/assert/assert_almost_equals.d.ts +18 -0
  67. package/script/deps/deno.land/std@0.196.0/assert/assert_almost_equals.js +36 -0
  68. package/script/deps/deno.land/std@0.196.0/assert/assert_array_includes.d.ts +14 -0
  69. package/script/deps/deno.land/std@0.196.0/assert/assert_array_includes.js +42 -0
  70. package/script/deps/deno.land/std@0.196.0/assert/assert_equals.d.ts +17 -0
  71. package/script/deps/deno.land/std@0.196.0/assert/assert_equals.js +49 -0
  72. package/script/deps/deno.land/std@0.196.0/assert/assert_exists.d.ts +5 -0
  73. package/script/deps/deno.land/std@0.196.0/assert/assert_exists.js +18 -0
  74. package/script/deps/deno.land/std@0.196.0/assert/assert_false.d.ts +4 -0
  75. package/script/deps/deno.land/std@0.196.0/assert/assert_false.js +11 -0
  76. package/script/deps/deno.land/std@0.196.0/assert/assert_instance_of.d.ts +8 -0
  77. package/script/deps/deno.land/std@0.196.0/assert/assert_instance_of.js +42 -0
  78. package/script/deps/deno.land/std@0.196.0/assert/assert_is_error.d.ts +7 -0
  79. package/script/deps/deno.land/std@0.196.0/assert/assert_is_error.js +30 -0
  80. package/script/deps/deno.land/std@0.196.0/assert/assert_match.d.ts +5 -0
  81. package/script/deps/deno.land/std@0.196.0/assert/assert_match.js +17 -0
  82. package/script/deps/deno.land/std@0.196.0/assert/assert_not_equals.d.ts +14 -0
  83. package/script/deps/deno.land/std@0.196.0/assert/assert_not_equals.js +41 -0
  84. package/script/deps/deno.land/std@0.196.0/assert/assert_not_instance_of.d.ts +5 -0
  85. package/script/deps/deno.land/std@0.196.0/assert/assert_not_instance_of.js +18 -0
  86. package/script/deps/deno.land/std@0.196.0/assert/assert_not_match.d.ts +5 -0
  87. package/script/deps/deno.land/std@0.196.0/assert/assert_not_match.js +18 -0
  88. package/script/deps/deno.land/std@0.196.0/assert/assert_not_strict_equals.d.ts +11 -0
  89. package/script/deps/deno.land/std@0.196.0/assert/assert_not_strict_equals.js +24 -0
  90. package/script/deps/deno.land/std@0.196.0/assert/assert_object_match.d.ts +5 -0
  91. package/script/deps/deno.land/std@0.196.0/assert/assert_object_match.js +82 -0
  92. package/script/deps/deno.land/std@0.196.0/assert/assert_rejects.d.ts +64 -0
  93. package/script/deps/deno.land/std@0.196.0/assert/assert_rejects.js +54 -0
  94. package/script/deps/deno.land/std@0.196.0/assert/assert_strict_equals.d.ts +23 -0
  95. package/script/deps/deno.land/std@0.196.0/assert/assert_strict_equals.js +64 -0
  96. package/script/deps/deno.land/std@0.196.0/assert/assert_string_includes.d.ts +5 -0
  97. package/script/deps/deno.land/std@0.196.0/assert/assert_string_includes.js +17 -0
  98. package/script/deps/deno.land/std@0.196.0/assert/assert_throws.d.ts +54 -0
  99. package/script/deps/deno.land/std@0.196.0/assert/assert_throws.js +48 -0
  100. package/script/deps/deno.land/std@0.196.0/assert/assertion_error.d.ts +4 -0
  101. package/script/deps/deno.land/std@0.196.0/assert/assertion_error.js +16 -0
  102. package/script/deps/deno.land/std@0.196.0/assert/equal.d.ts +6 -0
  103. package/script/deps/deno.land/std@0.196.0/assert/equal.js +106 -0
  104. package/script/deps/deno.land/std@0.196.0/assert/fail.d.ts +4 -0
  105. package/script/deps/deno.land/std@0.196.0/assert/fail.js +13 -0
  106. package/script/deps/deno.land/std@0.196.0/assert/mod.d.ts +32 -0
  107. package/script/deps/deno.land/std@0.196.0/assert/mod.js +49 -0
  108. package/script/deps/deno.land/std@0.196.0/assert/unimplemented.d.ts +2 -0
  109. package/script/deps/deno.land/std@0.196.0/assert/unimplemented.js +11 -0
  110. package/script/deps/deno.land/std@0.196.0/assert/unreachable.d.ts +2 -0
  111. package/script/deps/deno.land/std@0.196.0/assert/unreachable.js +10 -0
  112. package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.js +2 -2
  113. package/{esm/deps/deno.land/std@0.190.0 → script/deps/deno.land/std@0.196.0}/testing/asserts.d.ts +204 -159
  114. package/script/deps/deno.land/std@0.196.0/testing/asserts.js +333 -0
  115. package/script/deps.d.ts +2 -2
  116. package/script/deps.js +2 -2
  117. package/script/tl/1_tl_object.js +1 -1
  118. package/esm/deps/deno.land/std@0.190.0/testing/asserts.js +0 -633
  119. package/script/deps/deno.land/std@0.190.0/testing/asserts.js +0 -659
  120. /package/esm/deps/deno.land/{std@0.190.0/testing/_diff.d.ts → std@0.196.0/_util/diff.d.ts} +0 -0
  121. /package/esm/deps/deno.land/{std@0.190.0/testing/_diff.js → std@0.196.0/_util/diff.js} +0 -0
  122. /package/esm/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.d.ts +0 -0
  123. /package/esm/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.js +0 -0
  124. /package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.d.ts +0 -0
  125. /package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.js +0 -0
  126. /package/esm/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.d.ts +0 -0
  127. /package/script/deps/deno.land/{std@0.190.0/testing/_diff.d.ts → std@0.196.0/_util/diff.d.ts} +0 -0
  128. /package/script/deps/deno.land/{std@0.190.0/testing/_diff.js → std@0.196.0/_util/diff.js} +0 -0
  129. /package/script/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.d.ts +0 -0
  130. /package/script/deps/deno.land/{std@0.190.0/testing → std@0.196.0/assert}/_format.js +0 -0
  131. /package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.d.ts +0 -0
  132. /package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/encoding/base64.js +0 -0
  133. /package/script/deps/deno.land/{std@0.190.0 → std@0.196.0}/fmt/colors.d.ts +0 -0
@@ -0,0 +1,333 @@
1
+ "use strict";
2
+ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.unreachable = exports.unimplemented = exports.fail = exports.equal = exports.assertThrows = exports.assertStringIncludes = exports.assertStrictEquals = exports.assertRejects = exports.assertObjectMatch = exports.assertNotStrictEquals = exports.assertNotMatch = exports.assertNotInstanceOf = exports.assertNotEquals = exports.assertMatch = exports.assertIsError = exports.AssertionError = exports.assertInstanceOf = exports.assertFalse = exports.assertExists = exports.assertEquals = exports.assertArrayIncludes = exports.assertAlmostEquals = exports.assert = void 0;
5
+ /**
6
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/mod.ts` instead.
7
+ *
8
+ * A library of assertion functions.
9
+ * If the assertion is false an `AssertionError` will be thrown which will
10
+ * result in pretty-printed diff of failing assertion.
11
+ *
12
+ * This module is browser compatible, but do not rely on good formatting of
13
+ * values for AssertionError messages in browsers.
14
+ *
15
+ * @module
16
+ */
17
+ var mod_js_1 = require("../assert/mod.js");
18
+ /**
19
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert.ts` instead.
20
+ *
21
+ * Make an assertion, error will be thrown if `expr` does not have truthy value.
22
+ */
23
+ Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return mod_js_1.assert; } });
24
+ /**
25
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_almost_equals.ts` instead.
26
+ *
27
+ * Make an assertion that `actual` and `expected` are almost equal numbers through
28
+ * a given tolerance. It can be used to take into account IEEE-754 double-precision
29
+ * floating-point representation limitations.
30
+ * If the values are not almost equal then throw.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * import { assertAlmostEquals, assertThrows } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
35
+ *
36
+ * assertAlmostEquals(0.1, 0.2);
37
+ *
38
+ * // Using a custom tolerance value
39
+ * assertAlmostEquals(0.1 + 0.2, 0.3, 1e-16);
40
+ * assertThrows(() => assertAlmostEquals(0.1 + 0.2, 0.3, 1e-17));
41
+ * ```
42
+ */
43
+ Object.defineProperty(exports, "assertAlmostEquals", { enumerable: true, get: function () { return mod_js_1.assertAlmostEquals; } });
44
+ /**
45
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_array_includes.ts` instead.
46
+ *
47
+ * Make an assertion that `actual` includes the `expected` values.
48
+ * If not then an error will be thrown.
49
+ *
50
+ * Type parameter can be specified to ensure values under comparison have the same type.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * import { assertArrayIncludes } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
55
+ *
56
+ * assertArrayIncludes<number>([1, 2], [2])
57
+ * ```
58
+ */
59
+ Object.defineProperty(exports, "assertArrayIncludes", { enumerable: true, get: function () { return mod_js_1.assertArrayIncludes; } });
60
+ /**
61
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_equals.ts` instead.
62
+ *
63
+ * Make an assertion that `actual` and `expected` are equal, deeply. If not
64
+ * deeply equal, then throw.
65
+ *
66
+ * Type parameter can be specified to ensure values under comparison have the same type.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * import { assertEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
71
+ *
72
+ * Deno.test("example", function (): void {
73
+ * assertEquals("world", "world");
74
+ * assertEquals({ hello: "world" }, { hello: "world" });
75
+ * });
76
+ * ```
77
+ */
78
+ Object.defineProperty(exports, "assertEquals", { enumerable: true, get: function () { return mod_js_1.assertEquals; } });
79
+ /**
80
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_exists.ts` instead.
81
+ *
82
+ * Make an assertion that actual is not null or undefined.
83
+ * If not then throw.
84
+ */
85
+ Object.defineProperty(exports, "assertExists", { enumerable: true, get: function () { return mod_js_1.assertExists; } });
86
+ /**
87
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_false.ts` instead.
88
+ *
89
+ * Make an assertion, error will be thrown if `expr` have truthy value.
90
+ */
91
+ Object.defineProperty(exports, "assertFalse", { enumerable: true, get: function () { return mod_js_1.assertFalse; } });
92
+ /**
93
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_instance_of.ts` instead.
94
+ *
95
+ * Make an assertion that `obj` is an instance of `type`.
96
+ * If not then throw.
97
+ */
98
+ Object.defineProperty(exports, "assertInstanceOf", { enumerable: true, get: function () { return mod_js_1.assertInstanceOf; } });
99
+ /** @deprecated (will be removed after 1.0.0) Import from `std/assert/assertion_error.ts` instead. */
100
+ Object.defineProperty(exports, "AssertionError", { enumerable: true, get: function () { return mod_js_1.AssertionError; } });
101
+ /**
102
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_is_error.ts` instead.
103
+ *
104
+ * Make an assertion that `error` is an `Error`.
105
+ * If not then an error will be thrown.
106
+ * An error class and a string that should be included in the
107
+ * error message can also be asserted.
108
+ */
109
+ Object.defineProperty(exports, "assertIsError", { enumerable: true, get: function () { return mod_js_1.assertIsError; } });
110
+ /**
111
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_match.ts` instead.
112
+ *
113
+ * Make an assertion that `actual` match RegExp `expected`. If not
114
+ * then throw.
115
+ */
116
+ Object.defineProperty(exports, "assertMatch", { enumerable: true, get: function () { return mod_js_1.assertMatch; } });
117
+ /**
118
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_not_equals.ts` instead.
119
+ *
120
+ * Make an assertion that `actual` and `expected` are not equal, deeply.
121
+ * If not then throw.
122
+ *
123
+ * Type parameter can be specified to ensure values under comparison have the same type.
124
+ *
125
+ * @example
126
+ * ```ts
127
+ * import { assertNotEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
128
+ *
129
+ * assertNotEquals<number>(1, 2)
130
+ * ```
131
+ */
132
+ Object.defineProperty(exports, "assertNotEquals", { enumerable: true, get: function () { return mod_js_1.assertNotEquals; } });
133
+ /**
134
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_not_instance_of.ts` instead.
135
+ *
136
+ * Make an assertion that `obj` is not an instance of `type`.
137
+ * If so, then throw.
138
+ */
139
+ Object.defineProperty(exports, "assertNotInstanceOf", { enumerable: true, get: function () { return mod_js_1.assertNotInstanceOf; } });
140
+ /**
141
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_not_match.ts` instead.
142
+ *
143
+ * Make an assertion that `actual` object is a subset of `expected` object, deeply.
144
+ * If not, then throw.
145
+ */
146
+ Object.defineProperty(exports, "assertNotMatch", { enumerable: true, get: function () { return mod_js_1.assertNotMatch; } });
147
+ /**
148
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_not_strict_equals.ts` instead.
149
+ *
150
+ * Make an assertion that `actual` and `expected` are not strictly equal.
151
+ * If the values are strictly equal then throw.
152
+ *
153
+ * ```ts
154
+ * import { assertNotStrictEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
155
+ *
156
+ * assertNotStrictEquals(1, 1)
157
+ * ```
158
+ */
159
+ Object.defineProperty(exports, "assertNotStrictEquals", { enumerable: true, get: function () { return mod_js_1.assertNotStrictEquals; } });
160
+ /**
161
+ * Make an assertion that `actual` object is a subset of `expected` object, deeply.
162
+ * If not, then throw.
163
+ */
164
+ Object.defineProperty(exports, "assertObjectMatch", { enumerable: true, get: function () { return mod_js_1.assertObjectMatch; } });
165
+ /**
166
+ * Executes a function which returns a promise, expecting it to reject.
167
+ * If it does not, then it throws. An error class and a string that should be
168
+ * included in the error message can also be asserted.
169
+ *
170
+ * @example
171
+ * ```ts
172
+ * import { assertRejects } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
173
+ *
174
+ * Deno.test("doesThrow", async function () {
175
+ * await assertRejects(async () => {
176
+ * throw new TypeError("hello world!");
177
+ * }, TypeError);
178
+ * await assertRejects(
179
+ * async () => {
180
+ * throw new TypeError("hello world!");
181
+ * },
182
+ * TypeError,
183
+ * "hello",
184
+ * );
185
+ * });
186
+ *
187
+ * // This test will not pass.
188
+ * Deno.test("fails", async function () {
189
+ * await assertRejects(
190
+ * async () => {
191
+ * console.log("Hello world");
192
+ * },
193
+ * );
194
+ * });
195
+ * ```
196
+ *
197
+ * * @example
198
+ * ```ts
199
+ * import { assertRejects } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
200
+ *
201
+ * Deno.test("doesThrow", async function () {
202
+ * await assertRejects(
203
+ * async () => {
204
+ * throw new TypeError("hello world!");
205
+ * },
206
+ * );
207
+ * await assertRejects(
208
+ * async () => {
209
+ * return Promise.reject(new Error());
210
+ * },
211
+ * );
212
+ * });
213
+ *
214
+ * // This test will not pass.
215
+ * Deno.test("fails", async function () {
216
+ * await assertRejects(
217
+ * async () => {
218
+ * console.log("Hello world");
219
+ * },
220
+ * );
221
+ * });
222
+ * ```
223
+ */
224
+ Object.defineProperty(exports, "assertRejects", { enumerable: true, get: function () { return mod_js_1.assertRejects; } });
225
+ /**
226
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_strict_equals.ts` instead.
227
+ *
228
+ * Make an assertion that `actual` and `expected` are strictly equal. If
229
+ * not then throw.
230
+ *
231
+ * @example
232
+ * ```ts
233
+ * import { assertStrictEquals } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
234
+ *
235
+ * Deno.test("isStrictlyEqual", function (): void {
236
+ * const a = {};
237
+ * const b = a;
238
+ * assertStrictEquals(a, b);
239
+ * });
240
+ *
241
+ * // This test fails
242
+ * Deno.test("isNotStrictlyEqual", function (): void {
243
+ * const a = {};
244
+ * const b = {};
245
+ * assertStrictEquals(a, b);
246
+ * });
247
+ * ```
248
+ */
249
+ Object.defineProperty(exports, "assertStrictEquals", { enumerable: true, get: function () { return mod_js_1.assertStrictEquals; } });
250
+ /**
251
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_string_includes.ts` instead.
252
+ *
253
+ * Make an assertion that actual includes expected. If not
254
+ * then throw.
255
+ */
256
+ Object.defineProperty(exports, "assertStringIncludes", { enumerable: true, get: function () { return mod_js_1.assertStringIncludes; } });
257
+ /**
258
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/assert_throws.ts` instead.
259
+ *
260
+ * Executes a function, expecting it to throw. If it does not, then it
261
+ * throws. An error class and a string that should be included in the
262
+ * error message can also be asserted.
263
+ *
264
+ * @example
265
+ * ```ts
266
+ * import { assertThrows } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
267
+ *
268
+ * Deno.test("doesThrow", function (): void {
269
+ * assertThrows((): void => {
270
+ * throw new TypeError("hello world!");
271
+ * }, TypeError);
272
+ * assertThrows(
273
+ * (): void => {
274
+ * throw new TypeError("hello world!");
275
+ * },
276
+ * TypeError,
277
+ * "hello",
278
+ * );
279
+ * });
280
+ *
281
+ * // This test will not pass.
282
+ * Deno.test("fails", function (): void {
283
+ * assertThrows((): void => {
284
+ * console.log("Hello world");
285
+ * });
286
+ * });
287
+ * ```
288
+ *
289
+ * @example
290
+ * ```ts
291
+ * import { assertThrows } from "https://deno.land/std@$STD_VERSION/testing/asserts.ts";
292
+ *
293
+ * Deno.test("doesThrow", function (): void {
294
+ * assertThrows((): void => {
295
+ * throw new TypeError("hello world!");
296
+ * });
297
+ * });
298
+ *
299
+ * // This test will not pass.
300
+ * Deno.test("fails", function (): void {
301
+ * assertThrows((): void => {
302
+ * console.log("Hello world");
303
+ * });
304
+ * });
305
+ * ```
306
+ */
307
+ Object.defineProperty(exports, "assertThrows", { enumerable: true, get: function () { return mod_js_1.assertThrows; } });
308
+ /**
309
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/equal.ts` instead.
310
+ *
311
+ * Deep equality comparison used in assertions
312
+ * @param c actual value
313
+ * @param d expected value
314
+ */
315
+ Object.defineProperty(exports, "equal", { enumerable: true, get: function () { return mod_js_1.equal; } });
316
+ /**
317
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/fail.ts` instead.
318
+ *
319
+ * Forcefully throws a failed assertion
320
+ */
321
+ Object.defineProperty(exports, "fail", { enumerable: true, get: function () { return mod_js_1.fail; } });
322
+ /**
323
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/unimplemented.ts` instead.
324
+ *
325
+ * Use this to stub out methods that will throw when invoked.
326
+ */
327
+ Object.defineProperty(exports, "unimplemented", { enumerable: true, get: function () { return mod_js_1.unimplemented; } });
328
+ /**
329
+ * @deprecated (will be removed after 1.0.0) Import from `std/assert/unreachable.ts` instead.
330
+ *
331
+ * Use this to assert unreachable code.
332
+ */
333
+ Object.defineProperty(exports, "unreachable", { enumerable: true, get: function () { return mod_js_1.unreachable; } });
package/script/deps.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from "./deps/deno.land/std@0.190.0/testing/asserts.js";
1
+ export * from "./deps/deno.land/std@0.196.0/testing/asserts.js";
2
2
  export { ctr256Decrypt, ctr256Encrypt, factorize, ige256Decrypt, ige256Encrypt, init as initTgCrypto } from "./deps/deno.land/x/tgcrypto@0.1.3/mod.js";
3
3
  export { gunzip, gzip } from "./deps/raw.githubusercontent.com/MTKruto/compress/master/gzip/gzip.js";
4
4
  export { Mutex, type MutexInterface } from "async-mutex";
5
5
  export { Parser } from "./deps/deno.land/x/html_parser@v0.1.3/src/mod.js";
6
6
  import { debug as debug_ } from "./deps/raw.githubusercontent.com/MTKruto/debug/master/mod.js";
7
7
  export declare const debug: typeof debug_;
8
- export { decode as base64Decode, encode as base64Encode } from "./deps/deno.land/std@0.190.0/encoding/base64.js";
8
+ export { decode as base64Decode, encode as base64Encode } from "./deps/deno.land/std@0.196.0/encoding/base64.js";
package/script/deps.js CHANGED
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.base64Encode = exports.base64Decode = exports.debug = exports.Parser = exports.Mutex = exports.gzip = exports.gunzip = exports.initTgCrypto = exports.ige256Encrypt = exports.ige256Decrypt = exports.factorize = exports.ctr256Encrypt = exports.ctr256Decrypt = void 0;
18
- __exportStar(require("./deps/deno.land/std@0.190.0/testing/asserts.js"), exports);
18
+ __exportStar(require("./deps/deno.land/std@0.196.0/testing/asserts.js"), exports);
19
19
  var mod_js_1 = require("./deps/deno.land/x/tgcrypto@0.1.3/mod.js");
20
20
  Object.defineProperty(exports, "ctr256Decrypt", { enumerable: true, get: function () { return mod_js_1.ctr256Decrypt; } });
21
21
  Object.defineProperty(exports, "ctr256Encrypt", { enumerable: true, get: function () { return mod_js_1.ctr256Encrypt; } });
@@ -33,6 +33,6 @@ Object.defineProperty(exports, "Parser", { enumerable: true, get: function () {
33
33
  const mod_js_3 = require("./deps/raw.githubusercontent.com/MTKruto/debug/master/mod.js");
34
34
  const debug = (v) => (0, mod_js_3.debug)(`mtkruto/${v}`);
35
35
  exports.debug = debug;
36
- var base64_js_1 = require("./deps/deno.land/std@0.190.0/encoding/base64.js");
36
+ var base64_js_1 = require("./deps/deno.land/std@0.196.0/encoding/base64.js");
37
37
  Object.defineProperty(exports, "base64Decode", { enumerable: true, get: function () { return base64_js_1.decode; } });
38
38
  Object.defineProperty(exports, "base64Encode", { enumerable: true, get: function () { return base64_js_1.encode; } });
@@ -123,7 +123,7 @@ class TLObject {
123
123
  if (isOptionalParam(ntype) && value == null) {
124
124
  continue;
125
125
  }
126
- const debugInfo = `[${i}]`;
126
+ const debugInfo = `[${this[exports.id].toString(16).toUpperCase()} ${i}]`;
127
127
  if (type == exports.flags) {
128
128
  let flags = 0;
129
129
  const flagField_ = value;