@hyperfrontend/immutable-api-utils 0.0.2 → 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 (188) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +65 -4
  3. package/built-in-copy/array/index.cjs.js +40 -0
  4. package/built-in-copy/array/index.cjs.js.map +1 -0
  5. package/built-in-copy/array/index.d.ts +40 -0
  6. package/built-in-copy/array/index.d.ts.map +1 -0
  7. package/built-in-copy/array/index.esm.js +35 -0
  8. package/built-in-copy/array/index.esm.js.map +1 -0
  9. package/built-in-copy/console/index.cjs.js +130 -0
  10. package/built-in-copy/console/index.cjs.js.map +1 -0
  11. package/built-in-copy/console/index.d.ts +105 -0
  12. package/built-in-copy/console/index.d.ts.map +1 -0
  13. package/built-in-copy/console/index.esm.js +110 -0
  14. package/built-in-copy/console/index.esm.js.map +1 -0
  15. package/built-in-copy/date/index.cjs.js +49 -0
  16. package/built-in-copy/date/index.cjs.js.map +1 -0
  17. package/built-in-copy/date/index.d.ts +49 -0
  18. package/built-in-copy/date/index.d.ts.map +1 -0
  19. package/built-in-copy/date/index.esm.js +43 -0
  20. package/built-in-copy/date/index.esm.js.map +1 -0
  21. package/built-in-copy/encoding/index.cjs.js +67 -0
  22. package/built-in-copy/encoding/index.cjs.js.map +1 -0
  23. package/built-in-copy/encoding/index.d.ts +52 -0
  24. package/built-in-copy/encoding/index.d.ts.map +1 -0
  25. package/built-in-copy/encoding/index.esm.js +61 -0
  26. package/built-in-copy/encoding/index.esm.js.map +1 -0
  27. package/built-in-copy/error/index.cjs.js +122 -0
  28. package/built-in-copy/error/index.cjs.js.map +1 -0
  29. package/built-in-copy/error/index.d.ts +99 -0
  30. package/built-in-copy/error/index.d.ts.map +1 -0
  31. package/built-in-copy/error/index.esm.js +112 -0
  32. package/built-in-copy/error/index.esm.js.map +1 -0
  33. package/built-in-copy/function/index.cjs.js +61 -0
  34. package/built-in-copy/function/index.cjs.js.map +1 -0
  35. package/built-in-copy/function/index.d.ts +47 -0
  36. package/built-in-copy/function/index.d.ts.map +1 -0
  37. package/built-in-copy/function/index.esm.js +54 -0
  38. package/built-in-copy/function/index.esm.js.map +1 -0
  39. package/built-in-copy/json/index.cjs.js +34 -0
  40. package/built-in-copy/json/index.cjs.js.map +1 -0
  41. package/built-in-copy/json/index.d.ts +31 -0
  42. package/built-in-copy/json/index.d.ts.map +1 -0
  43. package/built-in-copy/json/index.esm.js +30 -0
  44. package/built-in-copy/json/index.esm.js.map +1 -0
  45. package/built-in-copy/map/index.cjs.js +44 -0
  46. package/built-in-copy/map/index.cjs.js.map +1 -0
  47. package/built-in-copy/map/index.d.ts +33 -0
  48. package/built-in-copy/map/index.d.ts.map +1 -0
  49. package/built-in-copy/map/index.esm.js +40 -0
  50. package/built-in-copy/map/index.esm.js.map +1 -0
  51. package/built-in-copy/math/index.cjs.js +317 -0
  52. package/built-in-copy/math/index.cjs.js.map +1 -0
  53. package/built-in-copy/math/index.d.ts +232 -0
  54. package/built-in-copy/math/index.d.ts.map +1 -0
  55. package/built-in-copy/math/index.esm.js +272 -0
  56. package/built-in-copy/math/index.esm.js.map +1 -0
  57. package/built-in-copy/messaging/index.cjs.js +123 -0
  58. package/built-in-copy/messaging/index.cjs.js.map +1 -0
  59. package/built-in-copy/messaging/index.d.ts +95 -0
  60. package/built-in-copy/messaging/index.d.ts.map +1 -0
  61. package/built-in-copy/messaging/index.esm.js +114 -0
  62. package/built-in-copy/messaging/index.esm.js.map +1 -0
  63. package/built-in-copy/number/index.cjs.js +141 -0
  64. package/built-in-copy/number/index.cjs.js.map +1 -0
  65. package/built-in-copy/number/index.d.ts +95 -0
  66. package/built-in-copy/number/index.d.ts.map +1 -0
  67. package/built-in-copy/number/index.esm.js +123 -0
  68. package/built-in-copy/number/index.esm.js.map +1 -0
  69. package/built-in-copy/object/index.cjs.js +174 -0
  70. package/built-in-copy/object/index.cjs.js.map +1 -0
  71. package/built-in-copy/object/index.d.ts +209 -0
  72. package/built-in-copy/object/index.d.ts.map +1 -0
  73. package/built-in-copy/object/index.esm.js +149 -0
  74. package/built-in-copy/object/index.esm.js.map +1 -0
  75. package/built-in-copy/promise/index.cjs.js +80 -0
  76. package/built-in-copy/promise/index.cjs.js.map +1 -0
  77. package/built-in-copy/promise/index.d.ts +63 -0
  78. package/built-in-copy/promise/index.d.ts.map +1 -0
  79. package/built-in-copy/promise/index.esm.js +70 -0
  80. package/built-in-copy/promise/index.esm.js.map +1 -0
  81. package/built-in-copy/reflect/index.cjs.js +101 -0
  82. package/built-in-copy/reflect/index.cjs.js.map +1 -0
  83. package/built-in-copy/reflect/index.d.ts +81 -0
  84. package/built-in-copy/reflect/index.d.ts.map +1 -0
  85. package/built-in-copy/reflect/index.esm.js +86 -0
  86. package/built-in-copy/reflect/index.esm.js.map +1 -0
  87. package/built-in-copy/regexp/index.cjs.js +37 -0
  88. package/built-in-copy/regexp/index.cjs.js.map +1 -0
  89. package/built-in-copy/regexp/index.d.ts +28 -0
  90. package/built-in-copy/regexp/index.d.ts.map +1 -0
  91. package/built-in-copy/regexp/index.esm.js +34 -0
  92. package/built-in-copy/regexp/index.esm.js.map +1 -0
  93. package/built-in-copy/set/index.cjs.js +36 -0
  94. package/built-in-copy/set/index.cjs.js.map +1 -0
  95. package/built-in-copy/set/index.d.ts +27 -0
  96. package/built-in-copy/set/index.d.ts.map +1 -0
  97. package/built-in-copy/set/index.esm.js +33 -0
  98. package/built-in-copy/set/index.esm.js.map +1 -0
  99. package/built-in-copy/string/index.cjs.js +46 -0
  100. package/built-in-copy/string/index.cjs.js.map +1 -0
  101. package/built-in-copy/string/index.d.ts +34 -0
  102. package/built-in-copy/string/index.d.ts.map +1 -0
  103. package/built-in-copy/string/index.esm.js +41 -0
  104. package/built-in-copy/string/index.esm.js.map +1 -0
  105. package/built-in-copy/symbol/index.cjs.js +123 -0
  106. package/built-in-copy/symbol/index.cjs.js.map +1 -0
  107. package/built-in-copy/symbol/index.d.ts +99 -0
  108. package/built-in-copy/symbol/index.d.ts.map +1 -0
  109. package/built-in-copy/symbol/index.esm.js +105 -0
  110. package/built-in-copy/symbol/index.esm.js.map +1 -0
  111. package/built-in-copy/timers/index.cjs.js +105 -0
  112. package/built-in-copy/timers/index.cjs.js.map +1 -0
  113. package/built-in-copy/timers/index.d.ts +73 -0
  114. package/built-in-copy/timers/index.d.ts.map +1 -0
  115. package/built-in-copy/timers/index.esm.js +96 -0
  116. package/built-in-copy/timers/index.esm.js.map +1 -0
  117. package/built-in-copy/typed-arrays/index.cjs.js +360 -0
  118. package/built-in-copy/typed-arrays/index.cjs.js.map +1 -0
  119. package/built-in-copy/typed-arrays/index.d.ts +321 -0
  120. package/built-in-copy/typed-arrays/index.d.ts.map +1 -0
  121. package/built-in-copy/typed-arrays/index.esm.js +321 -0
  122. package/built-in-copy/typed-arrays/index.esm.js.map +1 -0
  123. package/built-in-copy/url/index.cjs.js +103 -0
  124. package/built-in-copy/url/index.cjs.js.map +1 -0
  125. package/built-in-copy/url/index.d.ts +71 -0
  126. package/built-in-copy/url/index.d.ts.map +1 -0
  127. package/built-in-copy/url/index.esm.js +95 -0
  128. package/built-in-copy/url/index.esm.js.map +1 -0
  129. package/built-in-copy/weak-map/index.cjs.js +36 -0
  130. package/built-in-copy/weak-map/index.cjs.js.map +1 -0
  131. package/built-in-copy/weak-map/index.d.ts +27 -0
  132. package/built-in-copy/weak-map/index.d.ts.map +1 -0
  133. package/built-in-copy/weak-map/index.esm.js +33 -0
  134. package/built-in-copy/weak-map/index.esm.js.map +1 -0
  135. package/built-in-copy/weak-set/index.cjs.js +36 -0
  136. package/built-in-copy/weak-set/index.cjs.js.map +1 -0
  137. package/built-in-copy/weak-set/index.d.ts +27 -0
  138. package/built-in-copy/weak-set/index.d.ts.map +1 -0
  139. package/built-in-copy/weak-set/index.esm.js +33 -0
  140. package/built-in-copy/weak-set/index.esm.js.map +1 -0
  141. package/built-in-copy/websocket/index.cjs.js +50 -0
  142. package/built-in-copy/websocket/index.cjs.js.map +1 -0
  143. package/built-in-copy/websocket/index.d.ts +37 -0
  144. package/built-in-copy/websocket/index.d.ts.map +1 -0
  145. package/built-in-copy/websocket/index.esm.js +43 -0
  146. package/built-in-copy/websocket/index.esm.js.map +1 -0
  147. package/bundle/index.iife.js +1167 -5
  148. package/bundle/index.iife.js.map +1 -1
  149. package/bundle/index.iife.min.js +1 -1
  150. package/bundle/index.iife.min.js.map +1 -1
  151. package/bundle/index.umd.js +1167 -5
  152. package/bundle/index.umd.js.map +1 -1
  153. package/bundle/index.umd.min.js +1 -1
  154. package/bundle/index.umd.min.js.map +1 -1
  155. package/index.cjs.js +1167 -5
  156. package/index.cjs.js.map +1 -1
  157. package/index.d.ts +32 -3
  158. package/index.d.ts.map +1 -1
  159. package/index.esm.js +1151 -6
  160. package/index.esm.js.map +1 -1
  161. package/lib/locked-prop-descriptors.d.ts.map +1 -0
  162. package/lib/locked-props.d.ts.map +1 -0
  163. package/{locked.d.ts → lib/locked.d.ts} +12 -1
  164. package/lib/locked.d.ts.map +1 -0
  165. package/locked/index.cjs.js +107 -0
  166. package/locked/index.cjs.js.map +1 -0
  167. package/locked/index.d.ts +2 -0
  168. package/locked/index.d.ts.map +1 -0
  169. package/locked/index.esm.js +105 -0
  170. package/locked/index.esm.js.map +1 -0
  171. package/locked-prop-descriptors/index.cjs.js +11 -0
  172. package/locked-prop-descriptors/index.cjs.js.map +1 -0
  173. package/locked-prop-descriptors/index.d.ts +2 -0
  174. package/locked-prop-descriptors/index.d.ts.map +1 -0
  175. package/locked-prop-descriptors/index.esm.js +9 -0
  176. package/locked-prop-descriptors/index.esm.js.map +1 -0
  177. package/locked-props/index.cjs.js +32 -0
  178. package/locked-props/index.cjs.js.map +1 -0
  179. package/locked-props/index.d.ts +2 -0
  180. package/locked-props/index.d.ts.map +1 -0
  181. package/locked-props/index.esm.js +30 -0
  182. package/locked-props/index.esm.js.map +1 -0
  183. package/package.json +149 -14
  184. package/locked-prop-descriptors.d.ts.map +0 -1
  185. package/locked-props.d.ts.map +0 -1
  186. package/locked.d.ts.map +0 -1
  187. /package/{locked-prop-descriptors.d.ts → lib/locked-prop-descriptors.d.ts} +0 -0
  188. /package/{locked-props.d.ts → lib/locked-props.d.ts} +0 -0
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of Date built-in via factory function and static methods.
5
+ *
6
+ * Since constructors cannot be safely captured via Object.assign, this module
7
+ * provides a factory function that uses Reflect.construct internally.
8
+ *
9
+ * These references are captured at module initialization time to protect against
10
+ * prototype pollution attacks. Import only what you need for tree-shaking.
11
+ *
12
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/date
13
+ */
14
+ // Capture references at module initialization time
15
+ const _Date = globalThis.Date;
16
+ const _Reflect = globalThis.Reflect;
17
+ const _freeze = globalThis.Object.freeze;
18
+ function createDate(...args) {
19
+ return _Reflect.construct(_Date, args);
20
+ }
21
+ /**
22
+ * (Safe copy) Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
23
+ */
24
+ const dateNow = _Date.now;
25
+ /**
26
+ * (Safe copy) Parses a string representation of a date.
27
+ */
28
+ const dateParse = _Date.parse;
29
+ /**
30
+ * (Safe copy) Returns the number of milliseconds in a Date object since January 1, 1970 UTC.
31
+ */
32
+ const dateUTC = _Date.UTC;
33
+ /**
34
+ * (Safe copy) Namespace object containing Date factory and static methods.
35
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
36
+ */
37
+ const Date = _freeze({
38
+ create: createDate,
39
+ now: dateNow,
40
+ parse: dateParse,
41
+ UTC: dateUTC,
42
+ });
43
+
44
+ exports.Date = Date;
45
+ exports.createDate = createDate;
46
+ exports.dateNow = dateNow;
47
+ exports.dateParse = dateParse;
48
+ exports.dateUTC = dateUTC;
49
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/date/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAmBlC,SAAU,UAAU,CAAC,GAAG,IAAe,EAAA;IAC3C,OAAa,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC;AAC9C;AAEA;;AAEG;AACI,MAAM,OAAO,GAAG,KAAK,CAAC;AAE7B;;AAEG;AACI,MAAM,SAAS,GAAG,KAAK,CAAC;AAE/B;;AAEG;AACI,MAAM,OAAO,GAAG,KAAK,CAAC;AAE7B;;;AAGG;AACI,MAAM,IAAI,GAAG,OAAO,CAAQ;AACjC,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,GAAG,EAAE,OAAO;AACZ,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,GAAG,EAAE,OAAO;AACb,CAAA;;;;;;;;"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Safe copies of Date built-in via factory function and static methods.
3
+ *
4
+ * Since constructors cannot be safely captured via Object.assign, this module
5
+ * provides a factory function that uses Reflect.construct internally.
6
+ *
7
+ * These references are captured at module initialization time to protect against
8
+ * prototype pollution attacks. Import only what you need for tree-shaking.
9
+ *
10
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/date
11
+ */
12
+ /**
13
+ * (Safe copy) Creates a new Date using the captured Date constructor.
14
+ * Use this instead of `new Date()`. Accepts all standard Date constructor signatures.
15
+ *
16
+ * @returns A new Date instance.
17
+ */
18
+ export declare function createDate(): Date;
19
+ export declare function createDate(value: number | string | Date): Date;
20
+ export declare function createDate(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
21
+ /**
22
+ * (Safe copy) Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
23
+ */
24
+ export declare const dateNow: () => number;
25
+ /**
26
+ * (Safe copy) Parses a string representation of a date.
27
+ */
28
+ export declare const dateParse: (s: string) => number;
29
+ /**
30
+ * (Safe copy) Returns the number of milliseconds in a Date object since January 1, 1970 UTC.
31
+ */
32
+ export declare const dateUTC: {
33
+ (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
34
+ (year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
35
+ };
36
+ /**
37
+ * (Safe copy) Namespace object containing Date factory and static methods.
38
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
39
+ */
40
+ export declare const Date: Readonly<{
41
+ readonly create: typeof createDate;
42
+ readonly now: () => number;
43
+ readonly parse: (s: string) => number;
44
+ readonly UTC: {
45
+ (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
46
+ (year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
47
+ };
48
+ }>;
49
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/date/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;;;;GAKG;AACH,wBAAgB,UAAU,IAAI,IAAI,CAAA;AAClC,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;AAC/D,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,EAChB,EAAE,CAAC,EAAE,MAAM,GACV,IAAI,CAAA;AAKP;;GAEG;AACH,eAAO,MAAM,OAAO,cAAY,CAAA;AAEhC;;GAEG;AACH,eAAO,MAAM,SAAS,uBAAc,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,OAAO;;;CAAY,CAAA;AAEhC;;;GAGG;AACH,eAAO,MAAM,IAAI;;;;;;;;EAKf,CAAA"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Safe copies of Date built-in via factory function and static methods.
3
+ *
4
+ * Since constructors cannot be safely captured via Object.assign, this module
5
+ * provides a factory function that uses Reflect.construct internally.
6
+ *
7
+ * These references are captured at module initialization time to protect against
8
+ * prototype pollution attacks. Import only what you need for tree-shaking.
9
+ *
10
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/date
11
+ */
12
+ // Capture references at module initialization time
13
+ const _Date = globalThis.Date;
14
+ const _Reflect = globalThis.Reflect;
15
+ const _freeze = globalThis.Object.freeze;
16
+ function createDate(...args) {
17
+ return _Reflect.construct(_Date, args);
18
+ }
19
+ /**
20
+ * (Safe copy) Returns the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.
21
+ */
22
+ const dateNow = _Date.now;
23
+ /**
24
+ * (Safe copy) Parses a string representation of a date.
25
+ */
26
+ const dateParse = _Date.parse;
27
+ /**
28
+ * (Safe copy) Returns the number of milliseconds in a Date object since January 1, 1970 UTC.
29
+ */
30
+ const dateUTC = _Date.UTC;
31
+ /**
32
+ * (Safe copy) Namespace object containing Date factory and static methods.
33
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
34
+ */
35
+ const Date = _freeze({
36
+ create: createDate,
37
+ now: dateNow,
38
+ parse: dateParse,
39
+ UTC: dateUTC,
40
+ });
41
+
42
+ export { Date, createDate, dateNow, dateParse, dateUTC };
43
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/date/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAmBlC,SAAU,UAAU,CAAC,GAAG,IAAe,EAAA;IAC3C,OAAa,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC;AAC9C;AAEA;;AAEG;AACI,MAAM,OAAO,GAAG,KAAK,CAAC;AAE7B;;AAEG;AACI,MAAM,SAAS,GAAG,KAAK,CAAC;AAE/B;;AAEG;AACI,MAAM,OAAO,GAAG,KAAK,CAAC;AAE7B;;;AAGG;AACI,MAAM,IAAI,GAAG,OAAO,CAAQ;AACjC,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,GAAG,EAAE,OAAO;AACZ,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,GAAG,EAAE,OAAO;AACb,CAAA;;;;"}
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of encoding built-ins via factory functions.
5
+ *
6
+ * Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
7
+ * These references are captured at module initialization time to protect against
8
+ * prototype pollution attacks. Import only what you need for tree-shaking.
9
+ *
10
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
11
+ */
12
+ // Capture references at module initialization time
13
+ const _TextEncoder = globalThis.TextEncoder;
14
+ const _TextDecoder = globalThis.TextDecoder;
15
+ const _atob = globalThis.atob;
16
+ const _btoa = globalThis.btoa;
17
+ const _Reflect = globalThis.Reflect;
18
+ const _freeze = globalThis.Object.freeze;
19
+ /**
20
+ * (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
21
+ * Use this instead of `new TextEncoder()`.
22
+ *
23
+ * @returns A new TextEncoder instance.
24
+ */
25
+ const createTextEncoder = () => _Reflect.construct(_TextEncoder, []);
26
+ /**
27
+ * (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
28
+ * Use this instead of `new TextDecoder()`.
29
+ *
30
+ * @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
31
+ * @param options - Optional TextDecoderOptions.
32
+ * @returns A new TextDecoder instance.
33
+ */
34
+ const createTextDecoder = (label, options) => _Reflect.construct(_TextDecoder, [label, options]);
35
+ /**
36
+ * (Safe copy) Decodes a base64-encoded string.
37
+ * Use this instead of `atob()`.
38
+ *
39
+ * @param data - The base64-encoded string to decode.
40
+ * @returns The decoded string.
41
+ */
42
+ const atob = (data) => _atob(data);
43
+ /**
44
+ * (Safe copy) Encodes a string to base64.
45
+ * Use this instead of `btoa()`.
46
+ *
47
+ * @param data - The string to encode.
48
+ * @returns The base64-encoded string.
49
+ */
50
+ const btoa = (data) => _btoa(data);
51
+ /**
52
+ * (Safe copy) Namespace object containing all encoding utilities.
53
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
54
+ */
55
+ const Encoding = _freeze({
56
+ createTextEncoder,
57
+ createTextDecoder,
58
+ atob,
59
+ btoa,
60
+ });
61
+
62
+ exports.Encoding = Encoding;
63
+ exports.atob = atob;
64
+ exports.btoa = btoa;
65
+ exports.createTextDecoder = createTextDecoder;
66
+ exports.createTextEncoder = createTextEncoder;
67
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;AAQG;AAEH;AACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,MAAgC,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE;AAEpG;;;;;;;AAOG;MACU,iBAAiB,GAAG,CAAC,KAAc,EAAE,OAA4B,KAC/D,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;AAEhE;;;;;;AAMG;AACI,MAAM,IAAI,GAAG,CAAC,IAAY,KAAa,KAAK,CAAC,IAAI;AAExD;;;;;;AAMG;AACI,MAAM,IAAI,GAAG,CAAC,IAAY,KAAa,KAAK,CAAC,IAAI;AAExD;;;AAGG;AACI,MAAM,QAAQ,GAAG,OAAO,CAAQ;IACrC,iBAAiB;IACjB,iBAAiB;IACjB,IAAI;IACJ,IAAI;AACL,CAAA;;;;;;;;"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Safe copies of encoding built-ins via factory functions.
3
+ *
4
+ * Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
5
+ * These references are captured at module initialization time to protect against
6
+ * prototype pollution attacks. Import only what you need for tree-shaking.
7
+ *
8
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
9
+ */
10
+ /**
11
+ * (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
12
+ * Use this instead of `new TextEncoder()`.
13
+ *
14
+ * @returns A new TextEncoder instance.
15
+ */
16
+ export declare const createTextEncoder: () => TextEncoder;
17
+ /**
18
+ * (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
19
+ * Use this instead of `new TextDecoder()`.
20
+ *
21
+ * @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
22
+ * @param options - Optional TextDecoderOptions.
23
+ * @returns A new TextDecoder instance.
24
+ */
25
+ export declare const createTextDecoder: (label?: string, options?: TextDecoderOptions) => TextDecoder;
26
+ /**
27
+ * (Safe copy) Decodes a base64-encoded string.
28
+ * Use this instead of `atob()`.
29
+ *
30
+ * @param data - The base64-encoded string to decode.
31
+ * @returns The decoded string.
32
+ */
33
+ export declare const atob: (data: string) => string;
34
+ /**
35
+ * (Safe copy) Encodes a string to base64.
36
+ * Use this instead of `btoa()`.
37
+ *
38
+ * @param data - The string to encode.
39
+ * @returns The base64-encoded string.
40
+ */
41
+ export declare const btoa: (data: string) => string;
42
+ /**
43
+ * (Safe copy) Namespace object containing all encoding utilities.
44
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
45
+ */
46
+ export declare const Encoding: Readonly<{
47
+ readonly createTextEncoder: () => TextEncoder;
48
+ readonly createTextDecoder: (label?: string, options?: TextDecoderOptions) => TextDecoder;
49
+ readonly atob: (data: string) => string;
50
+ readonly btoa: (data: string) => string;
51
+ }>;
52
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAUH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,QAAO,WAAgE,CAAA;AAErG;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,EAAE,UAAU,kBAAkB,KAAG,WAChB,CAAA;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,KAAG,MAAqB,CAAA;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,KAAG,MAAqB,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,QAAQ;sCAnCgB,WAAW;yCAUN,MAAM,YAAY,kBAAkB,KAAG,WAAW;0BAUjE,MAAM,KAAG,MAAM;0BASf,MAAM,KAAG,MAAM;EAWxC,CAAA"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Safe copies of encoding built-ins via factory functions.
3
+ *
4
+ * Provides safe references to TextEncoder, TextDecoder, atob, and btoa.
5
+ * These references are captured at module initialization time to protect against
6
+ * prototype pollution attacks. Import only what you need for tree-shaking.
7
+ *
8
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/encoding
9
+ */
10
+ // Capture references at module initialization time
11
+ const _TextEncoder = globalThis.TextEncoder;
12
+ const _TextDecoder = globalThis.TextDecoder;
13
+ const _atob = globalThis.atob;
14
+ const _btoa = globalThis.btoa;
15
+ const _Reflect = globalThis.Reflect;
16
+ const _freeze = globalThis.Object.freeze;
17
+ /**
18
+ * (Safe copy) Creates a new TextEncoder using the captured TextEncoder constructor.
19
+ * Use this instead of `new TextEncoder()`.
20
+ *
21
+ * @returns A new TextEncoder instance.
22
+ */
23
+ const createTextEncoder = () => _Reflect.construct(_TextEncoder, []);
24
+ /**
25
+ * (Safe copy) Creates a new TextDecoder using the captured TextDecoder constructor.
26
+ * Use this instead of `new TextDecoder()`.
27
+ *
28
+ * @param label - The encoding label (e.g., 'utf-8', 'utf-16'). Defaults to 'utf-8'.
29
+ * @param options - Optional TextDecoderOptions.
30
+ * @returns A new TextDecoder instance.
31
+ */
32
+ const createTextDecoder = (label, options) => _Reflect.construct(_TextDecoder, [label, options]);
33
+ /**
34
+ * (Safe copy) Decodes a base64-encoded string.
35
+ * Use this instead of `atob()`.
36
+ *
37
+ * @param data - The base64-encoded string to decode.
38
+ * @returns The decoded string.
39
+ */
40
+ const atob = (data) => _atob(data);
41
+ /**
42
+ * (Safe copy) Encodes a string to base64.
43
+ * Use this instead of `btoa()`.
44
+ *
45
+ * @param data - The string to encode.
46
+ * @returns The base64-encoded string.
47
+ */
48
+ const btoa = (data) => _btoa(data);
49
+ /**
50
+ * (Safe copy) Namespace object containing all encoding utilities.
51
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
52
+ */
53
+ const Encoding = _freeze({
54
+ createTextEncoder,
55
+ createTextDecoder,
56
+ atob,
57
+ btoa,
58
+ });
59
+
60
+ export { Encoding, atob, btoa, createTextDecoder, createTextEncoder };
61
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/encoding/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;AAQG;AAEH;AACA,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI;AAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,MAAgC,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE;AAEpG;;;;;;;AAOG;MACU,iBAAiB,GAAG,CAAC,KAAc,EAAE,OAA4B,KAC/D,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC;AAEhE;;;;;;AAMG;AACI,MAAM,IAAI,GAAG,CAAC,IAAY,KAAa,KAAK,CAAC,IAAI;AAExD;;;;;;AAMG;AACI,MAAM,IAAI,GAAG,CAAC,IAAY,KAAa,KAAK,CAAC,IAAI;AAExD;;;AAGG;AACI,MAAM,QAAQ,GAAG,OAAO,CAAQ;IACrC,iBAAiB;IACjB,iBAAiB;IACjB,IAAI;IACJ,IAAI;AACL,CAAA;;;;"}
@@ -0,0 +1,122 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of Error built-ins via factory functions.
5
+ *
6
+ * Since constructors cannot be safely captured via Object.assign, this module
7
+ * provides factory functions that use Reflect.construct internally.
8
+ *
9
+ * These references are captured at module initialization time to protect against
10
+ * prototype pollution attacks. Import only what you need for tree-shaking.
11
+ *
12
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/error
13
+ */
14
+ // Capture references at module initialization time
15
+ const _Error = globalThis.Error;
16
+ const _TypeError = globalThis.TypeError;
17
+ const _RangeError = globalThis.RangeError;
18
+ const _ReferenceError = globalThis.ReferenceError;
19
+ const _SyntaxError = globalThis.SyntaxError;
20
+ const _URIError = globalThis.URIError;
21
+ const _EvalError = globalThis.EvalError;
22
+ const _AggregateError = globalThis.AggregateError;
23
+ const _Reflect = globalThis.Reflect;
24
+ const _freeze = globalThis.Object.freeze;
25
+ /**
26
+ * (Safe copy) Creates a new Error using the captured Error constructor.
27
+ * Use this instead of `new Error()`.
28
+ *
29
+ * @param message - Optional error message.
30
+ * @param options - Optional error options.
31
+ * @returns A new Error instance.
32
+ */
33
+ const createError = (message, options) => _Reflect.construct(_Error, [message, options]);
34
+ /**
35
+ * (Safe copy) Creates a new TypeError using the captured TypeError constructor.
36
+ * Use this instead of `new TypeError()`.
37
+ *
38
+ * @param message - Optional error message.
39
+ * @param options - Optional error options.
40
+ * @returns A new TypeError instance.
41
+ */
42
+ const createTypeError = (message, options) => _Reflect.construct(_TypeError, [message, options]);
43
+ /**
44
+ * (Safe copy) Creates a new RangeError using the captured RangeError constructor.
45
+ * Use this instead of `new RangeError()`.
46
+ *
47
+ * @param message - Optional error message.
48
+ * @param options - Optional error options.
49
+ * @returns A new RangeError instance.
50
+ */
51
+ const createRangeError = (message, options) => _Reflect.construct(_RangeError, [message, options]);
52
+ /**
53
+ * (Safe copy) Creates a new ReferenceError using the captured ReferenceError constructor.
54
+ * Use this instead of `new ReferenceError()`.
55
+ *
56
+ * @param message - Optional error message.
57
+ * @param options - Optional error options.
58
+ * @returns A new ReferenceError instance.
59
+ */
60
+ const createReferenceError = (message, options) => _Reflect.construct(_ReferenceError, [message, options]);
61
+ /**
62
+ * (Safe copy) Creates a new SyntaxError using the captured SyntaxError constructor.
63
+ * Use this instead of `new SyntaxError()`.
64
+ *
65
+ * @param message - Optional error message.
66
+ * @param options - Optional error options.
67
+ * @returns A new SyntaxError instance.
68
+ */
69
+ const createSyntaxError = (message, options) => _Reflect.construct(_SyntaxError, [message, options]);
70
+ /**
71
+ * (Safe copy) Creates a new URIError using the captured URIError constructor.
72
+ * Use this instead of `new URIError()`.
73
+ *
74
+ * @param message - Optional error message.
75
+ * @param options - Optional error options.
76
+ * @returns A new URIError instance.
77
+ */
78
+ const createURIError = (message, options) => _Reflect.construct(_URIError, [message, options]);
79
+ /**
80
+ * (Safe copy) Creates a new EvalError using the captured EvalError constructor.
81
+ * Use this instead of `new EvalError()`.
82
+ *
83
+ * @param message - Optional error message.
84
+ * @param options - Optional error options.
85
+ * @returns A new EvalError instance.
86
+ */
87
+ const createEvalError = (message, options) => _Reflect.construct(_EvalError, [message, options]);
88
+ /**
89
+ * (Safe copy) Creates a new AggregateError using the captured AggregateError constructor.
90
+ * Use this instead of `new AggregateError()`.
91
+ *
92
+ * @param errors - An iterable of errors to aggregate.
93
+ * @param message - Optional error message.
94
+ * @param options - Optional error options.
95
+ * @returns A new AggregateError instance.
96
+ */
97
+ const createAggregateError = (errors, message, options) => _Reflect.construct(_AggregateError, [errors, message, options]);
98
+ /**
99
+ * (Safe copy) Namespace object containing Error factory functions.
100
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
101
+ */
102
+ const Error = _freeze({
103
+ create: createError,
104
+ TypeError: createTypeError,
105
+ RangeError: createRangeError,
106
+ ReferenceError: createReferenceError,
107
+ SyntaxError: createSyntaxError,
108
+ URIError: createURIError,
109
+ EvalError: createEvalError,
110
+ AggregateError: createAggregateError,
111
+ });
112
+
113
+ exports.Error = Error;
114
+ exports.createAggregateError = createAggregateError;
115
+ exports.createError = createError;
116
+ exports.createEvalError = createEvalError;
117
+ exports.createRangeError = createRangeError;
118
+ exports.createReferenceError = createReferenceError;
119
+ exports.createSyntaxError = createSyntaxError;
120
+ exports.createTypeError = createTypeError;
121
+ exports.createURIError = createURIError;
122
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK;AAC/B,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS;AACvC,MAAM,WAAW,GAAG,UAAU,CAAC,UAAU;AACzC,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc;AACjD,MAAM,YAAY,GAAG,UAAU,CAAC,WAAW;AAC3C,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ;AACrC,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS;AACvC,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc;AACjD,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;;;AAOG;MACU,WAAW,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAAmB,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAEpI;;;;;;;AAOG;MACU,eAAe,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAC3D,QAAQ,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAE9D;;;;;;;AAOG;MACU,gBAAgB,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAC3D,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAEhE;;;;;;;AAOG;MACU,oBAAoB,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAC3D,QAAQ,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAExE;;;;;;;AAOG;MACU,iBAAiB,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAC3D,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAElE;;;;;;;AAOG;MACU,cAAc,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAC3D,QAAQ,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAE5D;;;;;;;AAOG;MACU,eAAe,GAAG,CAAC,OAAgB,EAAE,OAAsB,KAC3D,QAAQ,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAE9D;;;;;;;;AAQG;AACI,MAAM,oBAAoB,GAAG,CAAC,MAAyB,EAAE,OAAgB,EAAE,OAAsB,KACtF,QAAQ,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AAEhF;;;AAGG;AACI,MAAM,KAAK,GAAG,OAAO,CAAQ;AAClC,IAAA,MAAM,EAAE,WAAW;AACnB,IAAA,SAAS,EAAE,eAAe;AAC1B,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,cAAc,EAAE,oBAAoB;AACpC,IAAA,WAAW,EAAE,iBAAiB;AAC9B,IAAA,QAAQ,EAAE,cAAc;AACxB,IAAA,SAAS,EAAE,eAAe;AAC1B,IAAA,cAAc,EAAE,oBAAoB;AACrC,CAAA;;;;;;;;;;;;"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Safe copies of Error built-ins via factory functions.
3
+ *
4
+ * Since constructors cannot be safely captured via Object.assign, this module
5
+ * provides factory functions that use Reflect.construct internally.
6
+ *
7
+ * These references are captured at module initialization time to protect against
8
+ * prototype pollution attacks. Import only what you need for tree-shaking.
9
+ *
10
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/error
11
+ */
12
+ /**
13
+ * (Safe copy) Creates a new Error using the captured Error constructor.
14
+ * Use this instead of `new Error()`.
15
+ *
16
+ * @param message - Optional error message.
17
+ * @param options - Optional error options.
18
+ * @returns A new Error instance.
19
+ */
20
+ export declare const createError: (message?: string, options?: ErrorOptions) => Error;
21
+ /**
22
+ * (Safe copy) Creates a new TypeError using the captured TypeError constructor.
23
+ * Use this instead of `new TypeError()`.
24
+ *
25
+ * @param message - Optional error message.
26
+ * @param options - Optional error options.
27
+ * @returns A new TypeError instance.
28
+ */
29
+ export declare const createTypeError: (message?: string, options?: ErrorOptions) => TypeError;
30
+ /**
31
+ * (Safe copy) Creates a new RangeError using the captured RangeError constructor.
32
+ * Use this instead of `new RangeError()`.
33
+ *
34
+ * @param message - Optional error message.
35
+ * @param options - Optional error options.
36
+ * @returns A new RangeError instance.
37
+ */
38
+ export declare const createRangeError: (message?: string, options?: ErrorOptions) => RangeError;
39
+ /**
40
+ * (Safe copy) Creates a new ReferenceError using the captured ReferenceError constructor.
41
+ * Use this instead of `new ReferenceError()`.
42
+ *
43
+ * @param message - Optional error message.
44
+ * @param options - Optional error options.
45
+ * @returns A new ReferenceError instance.
46
+ */
47
+ export declare const createReferenceError: (message?: string, options?: ErrorOptions) => ReferenceError;
48
+ /**
49
+ * (Safe copy) Creates a new SyntaxError using the captured SyntaxError constructor.
50
+ * Use this instead of `new SyntaxError()`.
51
+ *
52
+ * @param message - Optional error message.
53
+ * @param options - Optional error options.
54
+ * @returns A new SyntaxError instance.
55
+ */
56
+ export declare const createSyntaxError: (message?: string, options?: ErrorOptions) => SyntaxError;
57
+ /**
58
+ * (Safe copy) Creates a new URIError using the captured URIError constructor.
59
+ * Use this instead of `new URIError()`.
60
+ *
61
+ * @param message - Optional error message.
62
+ * @param options - Optional error options.
63
+ * @returns A new URIError instance.
64
+ */
65
+ export declare const createURIError: (message?: string, options?: ErrorOptions) => URIError;
66
+ /**
67
+ * (Safe copy) Creates a new EvalError using the captured EvalError constructor.
68
+ * Use this instead of `new EvalError()`.
69
+ *
70
+ * @param message - Optional error message.
71
+ * @param options - Optional error options.
72
+ * @returns A new EvalError instance.
73
+ */
74
+ export declare const createEvalError: (message?: string, options?: ErrorOptions) => EvalError;
75
+ /**
76
+ * (Safe copy) Creates a new AggregateError using the captured AggregateError constructor.
77
+ * Use this instead of `new AggregateError()`.
78
+ *
79
+ * @param errors - An iterable of errors to aggregate.
80
+ * @param message - Optional error message.
81
+ * @param options - Optional error options.
82
+ * @returns A new AggregateError instance.
83
+ */
84
+ export declare const createAggregateError: (errors: Iterable<unknown>, message?: string, options?: ErrorOptions) => AggregateError;
85
+ /**
86
+ * (Safe copy) Namespace object containing Error factory functions.
87
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
88
+ */
89
+ export declare const Error: Readonly<{
90
+ readonly create: (message?: string, options?: ErrorOptions) => Error;
91
+ readonly TypeError: (message?: string, options?: ErrorOptions) => TypeError;
92
+ readonly RangeError: (message?: string, options?: ErrorOptions) => RangeError;
93
+ readonly ReferenceError: (message?: string, options?: ErrorOptions) => ReferenceError;
94
+ readonly SyntaxError: (message?: string, options?: ErrorOptions) => SyntaxError;
95
+ readonly URIError: (message?: string, options?: ErrorOptions) => URIError;
96
+ readonly EvalError: (message?: string, options?: ErrorOptions) => EvalError;
97
+ readonly AggregateError: (errors: Iterable<unknown>, message?: string, options?: ErrorOptions) => AggregateError;
98
+ }>;
99
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/error/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,KAA8D,CAAA;AAErI;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,SACZ,CAAA;AAE/D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,UACX,CAAA;AAEjE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,cACP,CAAA;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,WACV,CAAA;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,QACb,CAAA;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,SACZ,CAAA;AAE/D;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,MAAM,EAAE,UAAU,YAAY,KAAG,cAC1B,CAAA;AAEjF;;;GAGG;AACH,eAAO,MAAM,KAAK;gCApFoB,MAAM,YAAY,YAAY,KAAG,KAAK;mCAUlC,MAAM,YAAY,YAAY,KAAG,SAAS;oCAWzC,MAAM,YAAY,YAAY,KAAG,UAAU;wCAWvC,MAAM,YAAY,YAAY,KAAG,cAAc;qCAWlD,MAAM,YAAY,YAAY,KAAG,WAAW;kCAW/C,MAAM,YAAY,YAAY,KAAG,QAAQ;mCAWxC,MAAM,YAAY,YAAY,KAAG,SAAS;sCAYvC,QAAQ,CAAC,OAAO,CAAC,YAAY,MAAM,YAAY,YAAY,KAAG,cAAc;EAgBvH,CAAA"}