@oazmi/superbuild 0.1.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.
Files changed (118) hide show
  1. package/esm/_dnt.shims.d.ts +2 -0
  2. package/esm/_dnt.shims.d.ts.map +1 -0
  3. package/esm/_dnt.shims.js +57 -0
  4. package/esm/deps/jsr.io/@oazmi/esbuild-types/0.28.0/src/mod.d.ts +598 -0
  5. package/esm/deps/jsr.io/@oazmi/esbuild-types/0.28.0/src/mod.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@oazmi/esbuild-types/0.28.0/src/mod.js +1 -0
  7. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/alias.d.ts +617 -0
  8. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/alias.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/alias.js +671 -0
  10. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/array1d.d.ts +487 -0
  11. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/array1d.d.ts.map +1 -0
  12. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/array1d.js +536 -0
  13. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/array2d.d.ts +266 -0
  14. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/array2d.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/array2d.js +318 -0
  16. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/binder.d.ts +368 -0
  17. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/binder.d.ts.map +1 -0
  18. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/binder.js +380 -0
  19. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/crossenv.d.ts +711 -0
  20. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/crossenv.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/crossenv.js +1173 -0
  22. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/cryptoman.d.ts +171 -0
  23. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/cryptoman.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/cryptoman.js +308 -0
  25. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/deps.d.ts +10 -0
  26. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/deps.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/deps.js +10 -0
  28. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/eightpack.d.ts +168 -0
  29. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/eightpack.d.ts.map +1 -0
  30. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/eightpack.js +236 -0
  31. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/eightpack_varint.d.ts +90 -0
  32. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/eightpack_varint.d.ts.map +1 -0
  33. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/eightpack_varint.js +237 -0
  34. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/numericarray.d.ts +213 -0
  35. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/numericarray.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/numericarray.js +363 -0
  37. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/numericmethods.d.ts +233 -0
  38. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/numericmethods.d.ts.map +1 -0
  39. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/numericmethods.js +256 -0
  40. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/pathman.d.ts +1436 -0
  41. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/pathman.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/pathman.js +1730 -0
  43. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/promiseman.d.ts +647 -0
  44. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/promiseman.d.ts.map +1 -0
  45. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/promiseman.js +762 -0
  46. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/stringman.d.ts +538 -0
  47. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/stringman.d.ts.map +1 -0
  48. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/stringman.js +626 -0
  49. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/struct.d.ts +734 -0
  50. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/struct.d.ts.map +1 -0
  51. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/struct.js +764 -0
  52. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/typedbuffer.d.ts +137 -0
  53. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/typedbuffer.d.ts.map +1 -0
  54. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/typedbuffer.js +234 -0
  55. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/typedefs.d.ts +391 -0
  56. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/typedefs.d.ts.map +1 -0
  57. package/esm/deps/jsr.io/@oazmi/kitchensink/0.10.0/src/typedefs.js +8 -0
  58. package/esm/deps.d.ts +56 -0
  59. package/esm/deps.d.ts.map +1 -0
  60. package/esm/deps.js +37 -0
  61. package/esm/esbuild/metafile.d.ts +90 -0
  62. package/esm/esbuild/metafile.d.ts.map +1 -0
  63. package/esm/esbuild/metafile.js +275 -0
  64. package/esm/esbuild/native.d.ts +95 -0
  65. package/esm/esbuild/native.d.ts.map +1 -0
  66. package/esm/esbuild/native.js +127 -0
  67. package/esm/esbuild/outputfile.d.ts +86 -0
  68. package/esm/esbuild/outputfile.d.ts.map +1 -0
  69. package/esm/esbuild/outputfile.js +221 -0
  70. package/esm/esbuild/strongtypes.d.ts +90 -0
  71. package/esm/esbuild/strongtypes.d.ts.map +1 -0
  72. package/esm/esbuild/strongtypes.js +8 -0
  73. package/esm/esbuild/typedefs.d.ts +121 -0
  74. package/esm/esbuild/typedefs.d.ts.map +1 -0
  75. package/esm/esbuild/typedefs.js +55 -0
  76. package/esm/esbuild/weaktypes.d.ts +46 -0
  77. package/esm/esbuild/weaktypes.d.ts.map +1 -0
  78. package/esm/esbuild/weaktypes.js +8 -0
  79. package/esm/funcdefs.d.ts +89 -0
  80. package/esm/funcdefs.d.ts.map +1 -0
  81. package/esm/funcdefs.js +145 -0
  82. package/esm/mod.d.ts +4 -0
  83. package/esm/mod.d.ts.map +1 -0
  84. package/esm/mod.js +2 -0
  85. package/esm/package.json +3 -0
  86. package/esm/plugins/emissions_driver.d.ts +33 -0
  87. package/esm/plugins/emissions_driver.d.ts.map +1 -0
  88. package/esm/plugins/emissions_driver.js +260 -0
  89. package/esm/plugins/long_build.d.ts +138 -0
  90. package/esm/plugins/long_build.d.ts.map +1 -0
  91. package/esm/plugins/long_build.js +288 -0
  92. package/esm/plugins/native_replica.d.ts +48 -0
  93. package/esm/plugins/native_replica.d.ts.map +1 -0
  94. package/esm/plugins/native_replica.js +122 -0
  95. package/esm/super/build.d.ts +53 -0
  96. package/esm/super/build.d.ts.map +1 -0
  97. package/esm/super/build.js +39 -0
  98. package/esm/super/build_context.d.ts +83 -0
  99. package/esm/super/build_context.d.ts.map +1 -0
  100. package/esm/super/build_context.js +124 -0
  101. package/esm/super/mod.d.ts +12 -0
  102. package/esm/super/mod.d.ts.map +1 -0
  103. package/esm/super/mod.js +9 -0
  104. package/esm/super/plugin.d.ts +23 -0
  105. package/esm/super/plugin.d.ts.map +1 -0
  106. package/esm/super/plugin.js +31 -0
  107. package/esm/super/plugin_build.d.ts +38 -0
  108. package/esm/super/plugin_build.d.ts.map +1 -0
  109. package/esm/super/plugin_build.js +198 -0
  110. package/esm/super/typedefs.d.ts +323 -0
  111. package/esm/super/typedefs.d.ts.map +1 -0
  112. package/esm/super/typedefs.js +10 -0
  113. package/esm/typedefs.d.ts +21 -0
  114. package/esm/typedefs.d.ts.map +1 -0
  115. package/esm/typedefs.js +5 -0
  116. package/license.md +37 -0
  117. package/package.json +88 -0
  118. package/readme.md +181 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@oazmi/esbuild-types/0.28.0/src/mod.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAC5C,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;AACnK,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACrF,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC;AAC1C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;AAEnD,UAAU,aAAa;IACtB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,GAAG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CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAE5J;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,QAAQ,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,EAAE,CAAC;AAEjH;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,MAAM,CAAC;AAEnH;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE9E,MAAM,WAAW,iBAAiB;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAEvB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC;IAEhC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,IAAI,OAAO,EAAE,MAAM,CAAC;AAkB3B,MAAM,CAAC,OAAO,UAAU,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export let version;
@@ -0,0 +1,617 @@
1
+ /** a huge collection of aliases for built-in javascript objects and functions.
2
+ * using the exports from this submodule will let you greatly minify your code,
3
+ * and also reduce the number of dynamic function dispatches on built-in class's static methods.
4
+ *
5
+ * > [!warning]
6
+ * > micro-optimization is **BAD** - _people of the old_. <br>
7
+ * > micro-optimization might result in poorer JIT performance - _some old timer_. <br>
8
+ * > micro-optimization is what you do as a bad programmer - _linus torvalds (not)_. <br>
9
+ * > micro-optimization costs millions to revert - _linus tech tips (not)_.
10
+ *
11
+ * ## export naming convention
12
+ *
13
+ * the objects/functions exported by this submodule follow the following naming convention:
14
+ * - the name starts with a lowercase version of the built-in class/object.
15
+ * so for instance, `Math` becomes `math`.
16
+ * - followed by an underscore (`"_"`)
17
+ * - followed by the name of the method/property of that object.
18
+ *
19
+ * ### examples
20
+ *
21
+ * - `ThingName.MethodName` -> `thingname_MethodName`
22
+ * - `Math.max` -> `math_max`
23
+ * - `Object.fromEntries` -> `object_fromEntries`
24
+ * - `Array.isArray` -> `array_isArray`
25
+ * - `performance.now` -> `performance_now`
26
+ * - `console.log` -> `console_log`
27
+ *
28
+ * ## minifiablility
29
+ *
30
+ * this submodule needs esbuild's intelligent minifier to shrink it down in it size.
31
+ *
32
+ * each export is declared separately for two reasons:
33
+ * - using destructuring, such as `export const { from, isArray, of } = Array`, is not tree-shakable by esbuild,
34
+ * because destructuring _may_ have property-accessor side effects (even though it isn't the case here).
35
+ * as such, it is impossible to instruct esbuild that a statement is "pure" (i.e. free of side effects).
36
+ * and so, we will be left with a ton of unused exported baggage that will end up in the final bundle.
37
+ * - we cannot add documentation comment to destructured variables, and so, our documentation coverage score will drastically drop.
38
+ *
39
+ * the only way to tell esbuild that an expression is "pure" is when a `"@__PURE__"` multiline comment is added before a
40
+ * _function call_ (yes, it has to be a function call). this way, esbuild will tree shake the assigned variable if it is not used.
41
+ *
42
+ * moreover, esbuild will also evaluate simple iife (immediately invoked function expression), such as the following:
43
+ *
44
+ * ```ts
45
+ * // unminified iife
46
+ * const a = (() => 5 * 2)() // a = 10
47
+ * ```
48
+ *
49
+ * ```ts
50
+ * // minified expression generated by esbuild:
51
+ * const a = 10
52
+ * ```
53
+ *
54
+ * using a combination of the "pure" annotation and the iife evaluatation feature of esbuild, we can create minifiable and tree-shakable aliases:
55
+ *
56
+ * ```ts ignore
57
+ * // unminified iife
58
+ * const math_constructor = Math
59
+ * export const math_max = /* @__PURE__ *\/ (() => math_constructor.max)()
60
+ * export const math_min = /* @__PURE__ *\/ (() => math_constructor.min)()
61
+ * ```
62
+ *
63
+ * ```ts ignore
64
+ * // resulting minified and tree-shakable expression generated by esbuild:
65
+ * const
66
+ * a = Math,
67
+ * b = a.max,
68
+ * c = a.min
69
+ * export { b as math_max, c as math_min }
70
+ * ```
71
+ *
72
+ * ## aliases used by this library (`@oazmi/kitchensink`)
73
+ *
74
+ * the following static method aliases are used internally by this library.
75
+ * so importing any these aliases will likely not add any additional size to your minified scripts.
76
+ *
77
+ * ### `Array`
78
+ * - `from`
79
+ * - `fromAsync`
80
+ * - `isArray`
81
+ * - `of`
82
+ *
83
+ * ### `Date`
84
+ * - `now`
85
+ *
86
+ * ### `Math`
87
+ * - `max`
88
+ * - `min`
89
+ * - `random`
90
+ *
91
+ * ### `Number`
92
+ * - `MAX_VALUE`
93
+ * - `isInteger`
94
+ * - `parseInt`
95
+ *
96
+ * ### `Object`
97
+ * - `assign`
98
+ * - `defineProperty`
99
+ * - `entries`
100
+ * - `getPrototypeOf`
101
+ *
102
+ * ### `Promise`
103
+ * - `resolve`
104
+ *
105
+ * ### `String`
106
+ * - `fromCharCode`
107
+ *
108
+ * ### `Symbol`
109
+ * - `iterator`
110
+ * - `toStringTag`
111
+ *
112
+ * ### `console`
113
+ * - `assert`
114
+ * - `error`
115
+ * - `log`
116
+ * - `table`
117
+ *
118
+ * ### `performance`
119
+ * - `now`
120
+ *
121
+ * ### built-in `window` functions
122
+ * - `clearInterval`
123
+ * - `clearTimeout`
124
+ * - `decodeURI`
125
+ * - `encodeURI`
126
+ * - `setInterval`
127
+ * - `setTimeout`
128
+ *
129
+ * @module
130
+ */
131
+ import type { MaybePromiseLike } from "./typedefs.js";
132
+ /** a no-operation function */
133
+ export declare const noop: () => void;
134
+ /** test if an array is empty */
135
+ export declare const array_isEmpty: (array: ArrayLike<any>) => boolean;
136
+ /** alias for `Array.from`. */
137
+ export declare const array_from: ArrayConstructor["from"];
138
+ /** alias for `Array.fromAsync`. */
139
+ export declare const array_fromAsync: ArrayConstructor["fromAsync"];
140
+ /** alias for `Array.isArray`. but I'd recommend using {@link isArray} instead. */
141
+ export declare const array_isArray: ArrayConstructor["isArray"];
142
+ /** alias for `Array.of`. */
143
+ export declare const array_of: ArrayConstructor["of"];
144
+ /** alias for `BigInt.asIntN`. */
145
+ export declare const bigint_asIntN: BigIntConstructor["asIntN"];
146
+ /** alias for `BigInt.asUintN`. */
147
+ export declare const bigint_asUintN: BigIntConstructor["asUintN"];
148
+ /** alias for `Date.UTC`. */
149
+ export declare const date_UTC: DateConstructor["UTC"];
150
+ /** alias for `Date.now`. */
151
+ export declare const date_now: DateConstructor["now"];
152
+ /** alias for `Date.parse`. */
153
+ export declare const date_parse: DateConstructor["parse"];
154
+ /** alias for `JSON.parse`. */
155
+ export declare const json_parse: JSON["parse"];
156
+ /** alias for `JSON.stringify`. */
157
+ export declare const json_stringify: JSON["stringify"];
158
+ /** alias for `Math.max`. */
159
+ export declare const math_max: Math["max"];
160
+ /** alias for `Math.min`. */
161
+ export declare const math_min: Math["min"];
162
+ /** alias for `Math.sign`. */
163
+ export declare const math_sign: Math["sign"];
164
+ /** alias for `Math.ceil`. */
165
+ export declare const math_ceil: Math["ceil"];
166
+ /** alias for `Math.floor`. */
167
+ export declare const math_floor: Math["floor"];
168
+ /** alias for `Math.fround`. */
169
+ export declare const math_fround: Math["fround"];
170
+ /** alias for `Math.round`. */
171
+ export declare const math_round: Math["round"];
172
+ /** alias for `Math.trunc`. but I'd recommend using `const my_int = my_float | 0` for truncating a float. */
173
+ export declare const math_trunc: Math["trunc"];
174
+ /** alias for `Math.acos`. */
175
+ export declare const math_acos: Math["acos"];
176
+ /** alias for `Math.acosh`. */
177
+ export declare const math_acosh: Math["acosh"];
178
+ /** alias for `Math.asin`. */
179
+ export declare const math_asin: Math["asin"];
180
+ /** alias for `Math.asinh`. */
181
+ export declare const math_asinh: Math["asinh"];
182
+ /** alias for `Math.atan`. */
183
+ export declare const math_atan: Math["atan"];
184
+ /** alias for `Math.atan2`. */
185
+ export declare const math_atan2: Math["atan2"];
186
+ /** alias for `Math.atanh`. */
187
+ export declare const math_atanh: Math["atanh"];
188
+ /** alias for `Math.cos`. */
189
+ export declare const math_cos: Math["cos"];
190
+ /** alias for `Math.cosh`. */
191
+ export declare const math_cosh: Math["cosh"];
192
+ /** alias for `Math.sin`. */
193
+ export declare const math_sin: Math["sin"];
194
+ /** alias for `Math.sinh`. */
195
+ export declare const math_sinh: Math["sinh"];
196
+ /** alias for `Math.tan`. */
197
+ export declare const math_tan: Math["tan"];
198
+ /** alias for `Math.tanh`. */
199
+ export declare const math_tanh: Math["tanh"];
200
+ /** alias for `Math.abs`. */
201
+ export declare const math_abs: Math["abs"];
202
+ /** alias for `Math.cbrt`. */
203
+ export declare const math_cbrt: Math["cbrt"];
204
+ /** alias for `Math.exp`. */
205
+ export declare const math_exp: Math["exp"];
206
+ /** alias for `Math.expm1`. */
207
+ export declare const math_expm1: Math["expm1"];
208
+ /** alias for `Math.log`. */
209
+ export declare const math_log: Math["log"];
210
+ /** alias for `Math.log10`. */
211
+ export declare const math_log10: Math["log10"];
212
+ /** alias for `Math.log1p`. */
213
+ export declare const math_log1p: Math["log1p"];
214
+ /** alias for `Math.log2`. */
215
+ export declare const math_log2: Math["log2"];
216
+ /** alias for `Math.pow`. */
217
+ export declare const math_pow: Math["pow"];
218
+ /** alias for `Math.sqrt`. */
219
+ export declare const math_sqrt: Math["sqrt"];
220
+ /** alias for `Math.clz32`. */
221
+ export declare const math_clz32: Math["clz32"];
222
+ /** alias for `Math.imul`. */
223
+ export declare const math_imul: Math["imul"];
224
+ /** alias for `Math.hypot`. */
225
+ export declare const math_hypot: Math["hypot"];
226
+ /** alias for `Math.random`. */
227
+ export declare const math_random: Math["random"];
228
+ /** alias for `Math.E`. */
229
+ export declare const math_E: Math["E"];
230
+ /** alias for `Math.LN10`. */
231
+ export declare const math_LN10: Math["LN10"];
232
+ /** alias for `Math.LN2`. */
233
+ export declare const math_LN2: Math["LN2"];
234
+ /** alias for `Math.LOG10E`. */
235
+ export declare const math_LOG10E: Math["LOG10E"];
236
+ /** alias for `Math.LOG2E`. */
237
+ export declare const math_LOG2E: Math["LOG2E"];
238
+ /** alias for `Math.PI`. */
239
+ export declare const math_PI: Math["PI"];
240
+ /** alias for `Math.SQRT1_2`. */
241
+ export declare const math_SQRT1_2: Math["SQRT1_2"];
242
+ /** alias for `Math.SQRT2`. */
243
+ export declare const math_SQRT2: Math["SQRT2"];
244
+ /** alias for `Number.EPSILON`. */
245
+ export declare const number_EPSILON: NumberConstructor["EPSILON"];
246
+ /** alias for `Number.MAX_SAFE_INTEGER`. */
247
+ export declare const number_MAX_SAFE_INTEGER: NumberConstructor["MAX_SAFE_INTEGER"];
248
+ /** alias for `Number.MAX_VALUE`. */
249
+ export declare const number_MAX_VALUE: NumberConstructor["MAX_VALUE"];
250
+ /** alias for `Number.MIN_SAFE_INTEGER`. */
251
+ export declare const number_MIN_SAFE_INTEGER: NumberConstructor["MIN_SAFE_INTEGER"];
252
+ /** alias for `Number.MIN_VALUE`. */
253
+ export declare const number_MIN_VALUE: NumberConstructor["MIN_VALUE"];
254
+ /** alias for `Number.NEGATIVE_INFINITY`. */
255
+ export declare const number_NEGATIVE_INFINITY: NumberConstructor["NEGATIVE_INFINITY"];
256
+ /** alias for `Number.NaN`. */
257
+ export declare const number_NaN: NumberConstructor["NaN"];
258
+ /** alias for `Number.POSITIVE_INFINITY`. */
259
+ export declare const number_POSITIVE_INFINITY: NumberConstructor["POSITIVE_INFINITY"];
260
+ /** alias for `Number.isFinite`. */
261
+ export declare const number_isFinite: NumberConstructor["isFinite"];
262
+ /** alias for `Number.isInteger`. */
263
+ export declare const number_isInteger: NumberConstructor["isInteger"];
264
+ /** alias for `Number.isNaN`. */
265
+ export declare const number_isNaN: NumberConstructor["isNaN"];
266
+ /** alias for `Number.isSafeInteger`. */
267
+ export declare const number_isSafeInteger: NumberConstructor["isSafeInteger"];
268
+ /** alias for `Number.parseFloat`. */
269
+ export declare const number_parseFloat: NumberConstructor["parseFloat"];
270
+ /** alias for `Number.parseInt`. */
271
+ export declare const number_parseInt: NumberConstructor["parseInt"];
272
+ /** alias for `Object.assign`. */
273
+ export declare const object_assign: ObjectConstructor["assign"];
274
+ /** alias for `Object.create`. */
275
+ export declare const object_create: ObjectConstructor["create"];
276
+ /** alias for `Object.defineProperties`. */
277
+ export declare const object_defineProperties: ObjectConstructor["defineProperties"];
278
+ /** alias for `Object.defineProperty`. */
279
+ export declare const object_defineProperty: ObjectConstructor["defineProperty"];
280
+ /** alias for `Object.entries`. */
281
+ export declare const object_entries: ObjectConstructor["entries"];
282
+ /** alias for `Object.freeze`. */
283
+ export declare const object_freeze: ObjectConstructor["freeze"];
284
+ /** alias for `Object.fromEntries`. */
285
+ export declare const object_fromEntries: ObjectConstructor["fromEntries"];
286
+ /** alias for `Object.getOwnPropertyDescriptor`. */
287
+ export declare const object_getOwnPropertyDescriptor: ObjectConstructor["getOwnPropertyDescriptor"];
288
+ /** alias for `Object.getOwnPropertyDescriptors`. */
289
+ export declare const object_getOwnPropertyDescriptors: ObjectConstructor["getOwnPropertyDescriptors"];
290
+ /** alias for `Object.getOwnPropertyNames`. */
291
+ export declare const object_getOwnPropertyNames: ObjectConstructor["getOwnPropertyNames"];
292
+ /** alias for `Object.getOwnPropertySymbols`. */
293
+ export declare const object_getOwnPropertySymbols: ObjectConstructor["getOwnPropertySymbols"];
294
+ /** alias for `Object.getPrototypeOf`. */
295
+ export declare const object_getPrototypeOf: ObjectConstructor["getPrototypeOf"];
296
+ /** alias for `Object.groupBy`. */
297
+ export declare const object_groupBy: ObjectConstructor["groupBy"];
298
+ /** alias for `Object.hasOwn`. */
299
+ export declare const object_hasOwn: ObjectConstructor["hasOwn"];
300
+ /** alias for `Object.is`. */
301
+ export declare const object_is: ObjectConstructor["is"];
302
+ /** alias for `Object.isExtensible`. */
303
+ export declare const object_isExtensible: ObjectConstructor["isExtensible"];
304
+ /** alias for `Object.isFrozen`. */
305
+ export declare const object_isFrozen: ObjectConstructor["isFrozen"];
306
+ /** alias for `Object.isSealed`. */
307
+ export declare const object_isSealed: ObjectConstructor["isSealed"];
308
+ /** alias for `Object.keys`. */
309
+ export declare const object_keys: ObjectConstructor["keys"];
310
+ /** alias for `Object.preventExtensions`. */
311
+ export declare const object_preventExtensions: ObjectConstructor["preventExtensions"];
312
+ /** alias for `Object.seal`. */
313
+ export declare const object_seal: ObjectConstructor["seal"];
314
+ /** alias for `Object.setPrototypeOf`. */
315
+ export declare const object_setPrototypeOf: ObjectConstructor["setPrototypeOf"];
316
+ /** alias for `Object.values`. */
317
+ export declare const object_values: ObjectConstructor["values"];
318
+ /** create a promise that never resolves. */
319
+ export declare const promise_forever: <T>() => Promise<T>;
320
+ /** create a promise with external (i.e. outside of scope) resolve and reject controls.
321
+ * this was created before the existence of {@link Promise.withResolvers}.
322
+ * if you'd like to use that instead, see the alias {@link promise_withResolvers}.
323
+ */
324
+ export declare const promise_outside: <T>() => [promise: Promise<T>, resolve: (value: MaybePromiseLike<T>) => void, reject: (reason?: any) => void];
325
+ /** alias for `Promise.all`. */
326
+ export declare const promise_all: {
327
+ <T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
328
+ <T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
329
+ };
330
+ /** alias for `Promise.allSettled`. */
331
+ export declare const promise_allSettled: {
332
+ <T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;
333
+ <T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
334
+ };
335
+ /** alias for `Promise.any`. */
336
+ export declare const promise_any: {
337
+ <T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
338
+ <T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
339
+ };
340
+ /** alias for `Promise.race`. */
341
+ export declare const promise_race: {
342
+ <T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
343
+ <T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
344
+ };
345
+ /** alias for `Promise.reject`. */
346
+ export declare const promise_reject: <T = never>(reason?: any) => Promise<T>;
347
+ /** alias for `Promise.resolve`. */
348
+ export declare const promise_resolve: {
349
+ (): Promise<void>;
350
+ <T>(value: T): Promise<Awaited<T>>;
351
+ <T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
352
+ };
353
+ /** alias for `Promise.withResolvers`.
354
+ * create a promise with external resolver and rejecter functions, provided in an object form.
355
+ *
356
+ * if you'd like a more minifiable version, consider using the array equivalent: {@link promise_outside}.
357
+ *
358
+ * > [!warning]
359
+ * > don't invoke this alias on `node <= 20`, since it isn't available there,
360
+ * > and the deno-to-node transformer does not polyfill this function for some reason.
361
+ * >
362
+ * > TODO: in the future, when this is no longer an issue, get rid of the optional chaining operator ("?").
363
+ */
364
+ export declare const promise_withResolvers: <T>() => PromiseWithResolvers<T>;
365
+ /** alias for `Response.error`. */
366
+ export declare const response_error: (typeof Response)["error"];
367
+ /** alias for `Response.json`. */
368
+ export declare const response_json: (typeof Response)["json"];
369
+ /** alias for `Response.redirect`. */
370
+ export declare const response_redirect: (typeof Response)["redirect"];
371
+ /** turn a string to uppercase */
372
+ export declare const string_toUpperCase: (str: string) => string;
373
+ /** turn a string to lowercase */
374
+ export declare const string_toLowerCase: (str: string) => string;
375
+ /** this function provides a string representation of the given object, similar to how `console.log` would represent it.
376
+ *
377
+ * @example
378
+ * ```ts
379
+ * import { assertEquals } from "jsr:@std/assert"
380
+ *
381
+ * assertEquals(
382
+ * string_repr("a string"),
383
+ * `a string`
384
+ * )
385
+ *
386
+ * assertEquals(
387
+ * string_repr({ an: "object", with: ["an", "array"] }),
388
+ * `{ an: "object", with: [ "an", "array" ] }`
389
+ * )
390
+ *
391
+ * assertEquals(
392
+ * string_repr(new Map<any, any>([["a", 1], ["b", 2], [{ hello: "world" }, 3]])),
393
+ * `Map(3) { "a" => 1, "b" => 2, { hello: "world" } => 3 }`
394
+ * )
395
+ *
396
+ * class Person {
397
+ * name: string
398
+ * age: number
399
+ *
400
+ * constructor(name: string, age: number) {
401
+ * this.name = name
402
+ * this.age = age
403
+ * }
404
+ *
405
+ * greet() { return `Konichiwa! watashi no namae wa ${this.name}` }
406
+ * }
407
+ *
408
+ * assertEquals(
409
+ * string_repr(new Person("sekiro", 2000)),
410
+ * `Person { name: "sekiro", age: 2000 }`
411
+ * )
412
+ *
413
+ * const test_data = {
414
+ * num: 123,
415
+ * str: "text",
416
+ * bool: false,
417
+ * nil: null,
418
+ * undef: undefined,
419
+ * person: new Person("kenshiro", 99),
420
+ * func: function example() {},
421
+ * anon: () => {},
422
+ * arr: [1, "two", { three: 3 }],
423
+ * obj: { a: 1, b: { c: 2 }, self: undefined },
424
+ * sym: Symbol("sym"),
425
+ * bigInt: BigInt(200),
426
+ * set: new Set([1, 2, 3, "kakashi", { itachi: "zabuza" }])
427
+ * }
428
+ * test_data.obj.self = test_data as any
429
+ *
430
+ * assertEquals(string_repr(test_data),
431
+ * `{ ` +
432
+ * `num: 123, ` +
433
+ * `str: "text", ` +
434
+ * `bool: false, ` +
435
+ * `nil: null, ` +
436
+ * `undef: undefined, ` +
437
+ * `person: Person { name: "kenshiro", age: 99 }, ` +
438
+ * `func: [Function: example], ` +
439
+ * `anon: [Function: anon], ` +
440
+ * `arr: [ 1, "two", { three: 3 } ], ` +
441
+ * `obj: { a: 1, b: { c: 2 }, self: [Circular] }, ` +
442
+ * `sym: Symbol(sym), ` +
443
+ * `bigInt: 200n, ` +
444
+ * `set: Set(5) { 1, 2, 3, "kakashi", { itachi: "zabuza" } } ` +
445
+ * `}`
446
+ * )
447
+ * ```
448
+ */
449
+ export declare const string_repr: (value: any, seen_objects?: WeakSet<any>) => string;
450
+ /** this function prepares a string representation of the provided `args`, in a manner similar to how `console.log` would print them out.
451
+ *
452
+ * > [!important]
453
+ * > although the returned string is pretty close to `console.log` in terms or representation, there are still many inconsistencies,
454
+ * > in addition to the fact that no line breaks are added, nor are long enumerations of array items trimmed to fit in the preview.
455
+ * > see the documentation comment of {@link string_repr} to see how individual items would typical transform under this function.
456
+ *
457
+ * why would anyone have a need for such a function?
458
+ * well, for my use case, I need it for printing out prettified `Error` exceptions (via {@link throw_error}),
459
+ * since the `Error` constructor only takes in a single string parameter.
460
+ * and having to do string interpolation for each error, in addition to using a ton of `JSON.stringify`, gets tiresome really quickly.
461
+ */
462
+ export declare const string_log: (...args: any[]) => string;
463
+ /** alias for `String.fromCharCode` */
464
+ export declare const string_fromCharCode: StringConstructor["fromCharCode"];
465
+ /** alias for `String.fromCodePoint` */
466
+ export declare const string_fromCodePoint: StringConstructor["fromCodePoint"];
467
+ /** alias for `String.raw` */
468
+ export declare const string_raw: StringConstructor["raw"];
469
+ /** alias for `Symbol.asyncDispose`. */
470
+ export declare const symbol_asyncDispose: symbol;
471
+ /** alias for `Symbol.asyncIterator`. */
472
+ export declare const symbol_asyncIterator: symbol;
473
+ /** alias for `Symbol.dispose`. */
474
+ export declare const symbol_dispose: symbol;
475
+ /** alias for `Symbol.for`. */
476
+ export declare const symbol_for: SymbolConstructor["for"];
477
+ /** alias for `Symbol.hasInstance`. */
478
+ export declare const symbol_hasInstance: symbol;
479
+ /** alias for `Symbol.isConcatSpreadable`. */
480
+ export declare const symbol_isConcatSpreadable: symbol;
481
+ /** alias for `Symbol.iterator`. */
482
+ export declare const symbol_iterator: symbol;
483
+ /** alias for `Symbol.keyFor`. */
484
+ export declare const symbol_keyFor: SymbolConstructor["keyFor"];
485
+ /** alias for `Symbol.match`. */
486
+ export declare const symbol_match: symbol;
487
+ /** alias for `Symbol.matchAll`. */
488
+ export declare const symbol_matchAll: symbol;
489
+ /** alias for `Symbol.metadata`. */
490
+ export declare const symbol_metadata: symbol;
491
+ /** alias for `Symbol.replace`. */
492
+ export declare const symbol_replace: symbol;
493
+ /** alias for `Symbol.search`. */
494
+ export declare const symbol_search: symbol;
495
+ /** alias for `Symbol.species`. */
496
+ export declare const symbol_species: symbol;
497
+ /** alias for `Symbol.split`. */
498
+ export declare const symbol_split: symbol;
499
+ /** alias for `Symbol.toPrimitive`. */
500
+ export declare const symbol_toPrimitive: symbol;
501
+ /** alias for `Symbol.toStringTag`. */
502
+ export declare const symbol_toStringTag: symbol;
503
+ /** alias for `Symbol.unscopables`. */
504
+ export declare const symbol_unscopables: symbol;
505
+ /** alias for `console.assert`. */
506
+ export declare const console_assert: Console["assert"];
507
+ /** alias for `console.clear`. */
508
+ export declare const console_clear: Console["clear"];
509
+ /** alias for `console.count`. */
510
+ export declare const console_count: Console["count"];
511
+ /** alias for `console.countReset`. */
512
+ export declare const console_countReset: Console["countReset"];
513
+ /** alias for `console.debug`. */
514
+ export declare const console_debug: Console["debug"];
515
+ /** alias for `console.dir`. */
516
+ export declare const console_dir: Console["dir"];
517
+ /** alias for `console.dirxml`. */
518
+ export declare const console_dirxml: Console["dirxml"];
519
+ /** alias for `console.error`. */
520
+ export declare const console_error: Console["error"];
521
+ /** alias for `console.group`. */
522
+ export declare const console_group: Console["group"];
523
+ /** alias for `console.groupCollapsed`. */
524
+ export declare const console_groupCollapsed: Console["groupCollapsed"];
525
+ /** alias for `console.groupEnd`. */
526
+ export declare const console_groupEnd: Console["groupEnd"];
527
+ /** alias for `console.info`. */
528
+ export declare const console_info: Console["info"];
529
+ /** alias for `console.log`. */
530
+ export declare const console_log: Console["log"];
531
+ /** alias for `console.table`. */
532
+ export declare const console_table: Console["table"];
533
+ /** alias for `console.time`. */
534
+ export declare const console_time: Console["time"];
535
+ /** alias for `console.timeEnd`. */
536
+ export declare const console_timeEnd: Console["timeEnd"];
537
+ /** alias for `console.timeLog`. */
538
+ export declare const console_timeLog: Console["timeLog"];
539
+ /** alias for `console.timeStamp`. */
540
+ export declare const console_timeStamp: Console["timeStamp"];
541
+ /** alias for `console.trace`. */
542
+ export declare const console_trace: Console["trace"];
543
+ /** alias for `console.warn`. */
544
+ export declare const console_warn: Console["warn"];
545
+ /** get the current high-precision time in milliseconds. alias for `performance.now`. */
546
+ export declare const performance_now: () => DOMHighResTimeStamp;
547
+ /** alias for the function `window.setTimeout`. */
548
+ export declare const dom_setTimeout: typeof setTimeout;
549
+ /** alias for the function `window.clearTimeout`. */
550
+ export declare const dom_clearTimeout: typeof clearTimeout;
551
+ /** alias for the function `window.setInterval`. */
552
+ export declare const dom_setInterval: typeof setInterval;
553
+ /** alias for the function `window.clearInterval`. */
554
+ export declare const dom_clearInterval: typeof clearInterval;
555
+ /** alias for the function `window.encodeURI`. */
556
+ export declare const dom_encodeURI: typeof encodeURI;
557
+ /** alias for the function `window.encodeURIComponent`. */
558
+ export declare const dom_encodeURIComponent: typeof encodeURIComponent;
559
+ /** alias for the function `window.decodeURI`. */
560
+ export declare const dom_decodeURI: typeof decodeURI;
561
+ /** alias for the function `window.encodeURIComponent`. */
562
+ export declare const dom_decodeURIComponent: typeof decodeURIComponent;
563
+ /** this function throws an error whenever called, and it logs the `messages` that you've provided it,
564
+ * in (almost) the same manner as `console.log` would do.
565
+ *
566
+ * > [!tip]
567
+ * > where is this function useful?
568
+ * >
569
+ * > suppose you want to ensure that the value returned by a function `my_fn: <T>() => (T | undefined)` is non-nullable.
570
+ * > and if it is `undefined`, then the your current function scope to throw an error, so that it exits.
571
+ * >
572
+ * > typically, you would have to do something like:
573
+ * > ```ts ignore
574
+ * > // example 1:
575
+ * > const my_var = my_fn()
576
+ * > if(my_var === undefined || my_var === null) {
577
+ * > throw Error("`my_var` was not supposed to be undefined")
578
+ * > }
579
+ * >
580
+ * > // example 2:
581
+ * > const my_path = normalizePath("path/to/file.ts")
582
+ * > if(!my_path.startsWith("./")) {
583
+ * > throw Error(`expected a relative path, instead found: ${my_path}`)
584
+ * > }
585
+ * > ```
586
+ * >
587
+ * > but with this function, you can write more concise inline statements for invoking errors conditionally:
588
+ * > ```ts ignore
589
+ * > // example 1:
590
+ * > const my_var = (my_fn() ?? throw_error("`my_var` was not supposed to be undefined"))!
591
+ * >
592
+ * > // example 2:
593
+ * > const
594
+ * > temp = normalizePath("path/to/file.ts"),
595
+ * > my_path = (temp.startsWith("./") ? temp : throw_error("expected a relative path, found:", temp))!
596
+ * > ```
597
+ *
598
+ * @example
599
+ * ```ts
600
+ * import { assertThrows } from "jsr:@std/assert"
601
+ *
602
+ * assertThrows(throw_error, "")
603
+ *
604
+ * assertThrows(() => {
605
+ * const my_fn = ((): string | undefined => (undefined))
606
+ * const my_var = (my_fn() ?? throw_error("`my_var` was not supposed to be undefined"))!
607
+ * typeof my_var satisfies string
608
+ * }, "`my_var` was not supposed to be undefined")
609
+ *
610
+ * assertThrows(
611
+ * () => throw_error("liar liar", { pants: new Set(["on", "fire"]) }),
612
+ * `liar liar { pants: Set(2) { "on", "fire" } }`
613
+ * )
614
+ * ```
615
+ */
616
+ export declare const throw_error: (...messages: any[]) => void;
617
+ //# sourceMappingURL=alias.d.ts.map