@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,101 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of Reflect built-in methods.
5
+ *
6
+ * These references are captured at module initialization time to protect against
7
+ * prototype pollution attacks. Import only what you need for tree-shaking.
8
+ *
9
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/reflect
10
+ */
11
+ // Capture references at module initialization time
12
+ const _Reflect = globalThis.Reflect;
13
+ const _freeze = globalThis.Object.freeze;
14
+ /**
15
+ * (Safe copy) Calls the function with the specified object as the this value
16
+ * and the elements of specified array as the arguments.
17
+ */
18
+ const apply = _Reflect.apply;
19
+ /**
20
+ * (Safe copy) Constructs the target with the elements of specified array as the arguments.
21
+ */
22
+ const construct = _Reflect.construct;
23
+ /**
24
+ * (Safe copy) Gets the property of target, equivalent to target[propertyKey].
25
+ */
26
+ const get = _Reflect.get;
27
+ /**
28
+ * (Safe copy) Sets the property of target, equivalent to target[propertyKey] = value.
29
+ */
30
+ const set = _Reflect.set;
31
+ /**
32
+ * (Safe copy) Determines whether an object has a property with the specified name.
33
+ */
34
+ const has = _Reflect.has;
35
+ /**
36
+ * (Safe copy) Returns an array of the target object's own property keys.
37
+ */
38
+ const ownKeys = _Reflect.ownKeys;
39
+ /**
40
+ * (Safe copy) Adds or modifies a property on an object.
41
+ */
42
+ const defineProperty = _Reflect.defineProperty;
43
+ /**
44
+ * (Safe copy) Deletes a property from an object.
45
+ */
46
+ const deleteProperty = _Reflect.deleteProperty;
47
+ /**
48
+ * (Safe copy) Gets the property descriptor of the specified property.
49
+ */
50
+ const getOwnPropertyDescriptor = _Reflect.getOwnPropertyDescriptor;
51
+ /**
52
+ * (Safe copy) Returns the prototype of the specified object.
53
+ */
54
+ const getPrototypeOf = _Reflect.getPrototypeOf;
55
+ /**
56
+ * (Safe copy) Sets the prototype of the specified object.
57
+ */
58
+ const setPrototypeOf = _Reflect.setPrototypeOf;
59
+ /**
60
+ * (Safe copy) Returns a boolean indicating whether the object is extensible.
61
+ */
62
+ const isExtensible = _Reflect.isExtensible;
63
+ /**
64
+ * (Safe copy) Prevents new properties from being added to the object.
65
+ */
66
+ const preventExtensions = _Reflect.preventExtensions;
67
+ /**
68
+ * (Safe copy) Namespace object containing all Reflect methods.
69
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
70
+ */
71
+ const Reflect = _freeze({
72
+ apply,
73
+ construct,
74
+ get,
75
+ set,
76
+ has,
77
+ ownKeys,
78
+ defineProperty,
79
+ deleteProperty,
80
+ getOwnPropertyDescriptor,
81
+ getPrototypeOf,
82
+ setPrototypeOf,
83
+ isExtensible,
84
+ preventExtensions,
85
+ });
86
+
87
+ exports.Reflect = Reflect;
88
+ exports.apply = apply;
89
+ exports.construct = construct;
90
+ exports.defineProperty = defineProperty;
91
+ exports.deleteProperty = deleteProperty;
92
+ exports.get = get;
93
+ exports.getOwnPropertyDescriptor = getOwnPropertyDescriptor;
94
+ exports.getPrototypeOf = getPrototypeOf;
95
+ exports.has = has;
96
+ exports.isExtensible = isExtensible;
97
+ exports.ownKeys = ownKeys;
98
+ exports.preventExtensions = preventExtensions;
99
+ exports.set = set;
100
+ exports.setPrototypeOf = setPrototypeOf;
101
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/reflect/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;AAGG;AACI,MAAM,KAAK,GAAG,QAAQ,CAAC;AAE9B;;AAEG;AACI,MAAM,SAAS,GAAG,QAAQ,CAAC;AAElC;;AAEG;AACI,MAAM,GAAG,GAAG,QAAQ,CAAC;AAE5B;;AAEG;AACI,MAAM,GAAG,GAAG,QAAQ,CAAC;AAE5B;;AAEG;AACI,MAAM,GAAG,GAAG,QAAQ,CAAC;AAE5B;;AAEG;AACI,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AAEjD;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,YAAY,GAAG,QAAQ,CAAC;AAErC;;AAEG;AACI,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAE1C;;;AAGG;AACI,MAAM,OAAO,GAAG,OAAO,CAAQ;IACpC,KAAK;IACL,SAAS;IACT,GAAG;IACH,GAAG;IACH,GAAG;IACH,OAAO;IACP,cAAc;IACd,cAAc;IACd,wBAAwB;IACxB,cAAc;IACd,cAAc;IACd,YAAY;IACZ,iBAAiB;AAClB,CAAA;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Safe copies of Reflect built-in methods.
3
+ *
4
+ * These references are captured at module initialization time to protect against
5
+ * prototype pollution attacks. Import only what you need for tree-shaking.
6
+ *
7
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/reflect
8
+ */
9
+ /**
10
+ * (Safe copy) Calls the function with the specified object as the this value
11
+ * and the elements of specified array as the arguments.
12
+ */
13
+ export declare const apply: typeof globalThis.Reflect.apply;
14
+ /**
15
+ * (Safe copy) Constructs the target with the elements of specified array as the arguments.
16
+ */
17
+ export declare const construct: typeof globalThis.Reflect.construct;
18
+ /**
19
+ * (Safe copy) Gets the property of target, equivalent to target[propertyKey].
20
+ */
21
+ export declare const get: typeof globalThis.Reflect.get;
22
+ /**
23
+ * (Safe copy) Sets the property of target, equivalent to target[propertyKey] = value.
24
+ */
25
+ export declare const set: typeof globalThis.Reflect.set;
26
+ /**
27
+ * (Safe copy) Determines whether an object has a property with the specified name.
28
+ */
29
+ export declare const has: typeof globalThis.Reflect.has;
30
+ /**
31
+ * (Safe copy) Returns an array of the target object's own property keys.
32
+ */
33
+ export declare const ownKeys: typeof globalThis.Reflect.ownKeys;
34
+ /**
35
+ * (Safe copy) Adds or modifies a property on an object.
36
+ */
37
+ export declare const defineProperty: typeof globalThis.Reflect.defineProperty;
38
+ /**
39
+ * (Safe copy) Deletes a property from an object.
40
+ */
41
+ export declare const deleteProperty: typeof globalThis.Reflect.deleteProperty;
42
+ /**
43
+ * (Safe copy) Gets the property descriptor of the specified property.
44
+ */
45
+ export declare const getOwnPropertyDescriptor: typeof globalThis.Reflect.getOwnPropertyDescriptor;
46
+ /**
47
+ * (Safe copy) Returns the prototype of the specified object.
48
+ */
49
+ export declare const getPrototypeOf: typeof globalThis.Reflect.getPrototypeOf;
50
+ /**
51
+ * (Safe copy) Sets the prototype of the specified object.
52
+ */
53
+ export declare const setPrototypeOf: typeof globalThis.Reflect.setPrototypeOf;
54
+ /**
55
+ * (Safe copy) Returns a boolean indicating whether the object is extensible.
56
+ */
57
+ export declare const isExtensible: typeof globalThis.Reflect.isExtensible;
58
+ /**
59
+ * (Safe copy) Prevents new properties from being added to the object.
60
+ */
61
+ export declare const preventExtensions: typeof globalThis.Reflect.preventExtensions;
62
+ /**
63
+ * (Safe copy) Namespace object containing all Reflect methods.
64
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
65
+ */
66
+ export declare const Reflect: Readonly<{
67
+ readonly apply: typeof globalThis.Reflect.apply;
68
+ readonly construct: typeof globalThis.Reflect.construct;
69
+ readonly get: typeof globalThis.Reflect.get;
70
+ readonly set: typeof globalThis.Reflect.set;
71
+ readonly has: typeof globalThis.Reflect.has;
72
+ readonly ownKeys: typeof globalThis.Reflect.ownKeys;
73
+ readonly defineProperty: typeof globalThis.Reflect.defineProperty;
74
+ readonly deleteProperty: typeof globalThis.Reflect.deleteProperty;
75
+ readonly getOwnPropertyDescriptor: typeof globalThis.Reflect.getOwnPropertyDescriptor;
76
+ readonly getPrototypeOf: typeof globalThis.Reflect.getPrototypeOf;
77
+ readonly setPrototypeOf: typeof globalThis.Reflect.setPrototypeOf;
78
+ readonly isExtensible: typeof globalThis.Reflect.isExtensible;
79
+ readonly preventExtensions: typeof globalThis.Reflect.preventExtensions;
80
+ }>;
81
+ //# 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/reflect/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH;;;GAGG;AACH,eAAO,MAAM,KAAK,iCAAiB,CAAA;AAEnC;;GAEG;AACH,eAAO,MAAM,SAAS,qCAAqB,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,GAAG,+BAAe,CAAA;AAE/B;;GAEG;AACH,eAAO,MAAM,GAAG,+BAAe,CAAA;AAE/B;;GAEG;AACH,eAAO,MAAM,GAAG,+BAAe,CAAA;AAE/B;;GAEG;AACH,eAAO,MAAM,OAAO,mCAAmB,CAAA;AAEvC;;GAEG;AACH,eAAO,MAAM,cAAc,0CAA0B,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc,0CAA0B,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,wBAAwB,oDAAoC,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,cAAc,0CAA0B,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc,0CAA0B,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,YAAY,wCAAwB,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,iBAAiB,6CAA6B,CAAA;AAE3D;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;EAclB,CAAA"}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Safe copies of Reflect built-in methods.
3
+ *
4
+ * These references are captured at module initialization time to protect against
5
+ * prototype pollution attacks. Import only what you need for tree-shaking.
6
+ *
7
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/reflect
8
+ */
9
+ // Capture references at module initialization time
10
+ const _Reflect = globalThis.Reflect;
11
+ const _freeze = globalThis.Object.freeze;
12
+ /**
13
+ * (Safe copy) Calls the function with the specified object as the this value
14
+ * and the elements of specified array as the arguments.
15
+ */
16
+ const apply = _Reflect.apply;
17
+ /**
18
+ * (Safe copy) Constructs the target with the elements of specified array as the arguments.
19
+ */
20
+ const construct = _Reflect.construct;
21
+ /**
22
+ * (Safe copy) Gets the property of target, equivalent to target[propertyKey].
23
+ */
24
+ const get = _Reflect.get;
25
+ /**
26
+ * (Safe copy) Sets the property of target, equivalent to target[propertyKey] = value.
27
+ */
28
+ const set = _Reflect.set;
29
+ /**
30
+ * (Safe copy) Determines whether an object has a property with the specified name.
31
+ */
32
+ const has = _Reflect.has;
33
+ /**
34
+ * (Safe copy) Returns an array of the target object's own property keys.
35
+ */
36
+ const ownKeys = _Reflect.ownKeys;
37
+ /**
38
+ * (Safe copy) Adds or modifies a property on an object.
39
+ */
40
+ const defineProperty = _Reflect.defineProperty;
41
+ /**
42
+ * (Safe copy) Deletes a property from an object.
43
+ */
44
+ const deleteProperty = _Reflect.deleteProperty;
45
+ /**
46
+ * (Safe copy) Gets the property descriptor of the specified property.
47
+ */
48
+ const getOwnPropertyDescriptor = _Reflect.getOwnPropertyDescriptor;
49
+ /**
50
+ * (Safe copy) Returns the prototype of the specified object.
51
+ */
52
+ const getPrototypeOf = _Reflect.getPrototypeOf;
53
+ /**
54
+ * (Safe copy) Sets the prototype of the specified object.
55
+ */
56
+ const setPrototypeOf = _Reflect.setPrototypeOf;
57
+ /**
58
+ * (Safe copy) Returns a boolean indicating whether the object is extensible.
59
+ */
60
+ const isExtensible = _Reflect.isExtensible;
61
+ /**
62
+ * (Safe copy) Prevents new properties from being added to the object.
63
+ */
64
+ const preventExtensions = _Reflect.preventExtensions;
65
+ /**
66
+ * (Safe copy) Namespace object containing all Reflect methods.
67
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
68
+ */
69
+ const Reflect = _freeze({
70
+ apply,
71
+ construct,
72
+ get,
73
+ set,
74
+ has,
75
+ ownKeys,
76
+ defineProperty,
77
+ deleteProperty,
78
+ getOwnPropertyDescriptor,
79
+ getPrototypeOf,
80
+ setPrototypeOf,
81
+ isExtensible,
82
+ preventExtensions,
83
+ });
84
+
85
+ export { Reflect, apply, construct, defineProperty, deleteProperty, get, getOwnPropertyDescriptor, getPrototypeOf, has, isExtensible, ownKeys, preventExtensions, set, setPrototypeOf };
86
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/reflect/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;AAGG;AACI,MAAM,KAAK,GAAG,QAAQ,CAAC;AAE9B;;AAEG;AACI,MAAM,SAAS,GAAG,QAAQ,CAAC;AAElC;;AAEG;AACI,MAAM,GAAG,GAAG,QAAQ,CAAC;AAE5B;;AAEG;AACI,MAAM,GAAG,GAAG,QAAQ,CAAC;AAE5B;;AAEG;AACI,MAAM,GAAG,GAAG,QAAQ,CAAC;AAE5B;;AAEG;AACI,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,wBAAwB,GAAG,QAAQ,CAAC;AAEjD;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC;;AAEG;AACI,MAAM,YAAY,GAAG,QAAQ,CAAC;AAErC;;AAEG;AACI,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAE1C;;;AAGG;AACI,MAAM,OAAO,GAAG,OAAO,CAAQ;IACpC,KAAK;IACL,SAAS;IACT,GAAG;IACH,GAAG;IACH,GAAG;IACH,OAAO;IACP,cAAc;IACd,cAAc;IACd,wBAAwB;IACxB,cAAc;IACd,cAAc;IACd,YAAY;IACZ,iBAAiB;AAClB,CAAA;;;;"}
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of RegExp built-in via factory function.
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/regexp
13
+ */
14
+ // Capture references at module initialization time
15
+ const _RegExp = globalThis.RegExp;
16
+ const _Reflect = globalThis.Reflect;
17
+ const _freeze = globalThis.Object.freeze;
18
+ /**
19
+ * (Safe copy) Creates a new RegExp using the captured RegExp constructor.
20
+ * Use this instead of `new RegExp()`.
21
+ *
22
+ * @param pattern - The pattern string or RegExp to copy.
23
+ * @param flags - Optional flags string.
24
+ * @returns A new RegExp instance.
25
+ */
26
+ const createRegExp = (pattern, flags) => _Reflect.construct(_RegExp, [pattern, flags]);
27
+ /**
28
+ * (Safe copy) Namespace object containing RegExp factory.
29
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
30
+ */
31
+ const RegExp = _freeze({
32
+ create: createRegExp,
33
+ });
34
+
35
+ exports.RegExp = RegExp;
36
+ exports.createRegExp = createRegExp;
37
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/regexp/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM;AACjC,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;;;AAOG;MACU,YAAY,GAAG,CAAC,OAAwB,EAAE,KAAc,KAAqB,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;AAEtI;;;AAGG;AACI,MAAM,MAAM,GAAG,OAAO,CAAQ;AACnC,IAAA,MAAM,EAAE,YAAY;AACrB,CAAA;;;;;"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Safe copies of RegExp built-in via factory function.
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/regexp
11
+ */
12
+ /**
13
+ * (Safe copy) Creates a new RegExp using the captured RegExp constructor.
14
+ * Use this instead of `new RegExp()`.
15
+ *
16
+ * @param pattern - The pattern string or RegExp to copy.
17
+ * @param flags - Optional flags string.
18
+ * @returns A new RegExp instance.
19
+ */
20
+ export declare const createRegExp: (pattern: string | RegExp, flags?: string) => RegExp;
21
+ /**
22
+ * (Safe copy) Namespace object containing RegExp factory.
23
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
24
+ */
25
+ export declare const RegExp: Readonly<{
26
+ readonly create: (pattern: string | RegExp, flags?: string) => RegExp;
27
+ }>;
28
+ //# 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/regexp/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,MAAM,GAAG,MAAM,EAAE,QAAQ,MAAM,KAAG,MAA+D,CAAA;AAEvI;;;GAGG;AACH,eAAO,MAAM,MAAM;+BANmB,MAAM,GAAG,MAAM,UAAU,MAAM,KAAG,MAAM;EAQ5E,CAAA"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Safe copies of RegExp built-in via factory function.
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/regexp
11
+ */
12
+ // Capture references at module initialization time
13
+ const _RegExp = globalThis.RegExp;
14
+ const _Reflect = globalThis.Reflect;
15
+ const _freeze = globalThis.Object.freeze;
16
+ /**
17
+ * (Safe copy) Creates a new RegExp using the captured RegExp constructor.
18
+ * Use this instead of `new RegExp()`.
19
+ *
20
+ * @param pattern - The pattern string or RegExp to copy.
21
+ * @param flags - Optional flags string.
22
+ * @returns A new RegExp instance.
23
+ */
24
+ const createRegExp = (pattern, flags) => _Reflect.construct(_RegExp, [pattern, flags]);
25
+ /**
26
+ * (Safe copy) Namespace object containing RegExp factory.
27
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
28
+ */
29
+ const RegExp = _freeze({
30
+ create: createRegExp,
31
+ });
32
+
33
+ export { RegExp, createRegExp };
34
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/regexp/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM;AACjC,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;;;AAOG;MACU,YAAY,GAAG,CAAC,OAAwB,EAAE,KAAc,KAAqB,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;AAEtI;;;AAGG;AACI,MAAM,MAAM,GAAG,OAAO,CAAQ;AACnC,IAAA,MAAM,EAAE,YAAY;AACrB,CAAA;;;;"}
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of Set built-in via factory function.
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/set
13
+ */
14
+ // Capture references at module initialization time
15
+ const _Set = globalThis.Set;
16
+ const _Reflect = globalThis.Reflect;
17
+ const _freeze = globalThis.Object.freeze;
18
+ /**
19
+ * (Safe copy) Creates a new Set using the captured Set constructor.
20
+ * Use this instead of `new Set()`.
21
+ *
22
+ * @param iterable - Optional iterable of values.
23
+ * @returns A new Set instance.
24
+ */
25
+ const createSet = (iterable) => _Reflect.construct(_Set, iterable ? [iterable] : []);
26
+ /**
27
+ * (Safe copy) Namespace object containing Set factory.
28
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
29
+ */
30
+ const Set = _freeze({
31
+ create: createSet,
32
+ });
33
+
34
+ exports.Set = Set;
35
+ exports.createSet = createSet;
36
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/set/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG;AAC3B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;;AAMG;AACI,MAAM,SAAS,GAAG,CAAI,QAA6B,KAAqB,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE;AAElI;;;AAGG;AACI,MAAM,GAAG,GAAG,OAAO,CAAQ;AAChC,IAAA,MAAM,EAAE,SAAS;AAClB,CAAA;;;;;"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Safe copies of Set built-in via factory function.
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/set
11
+ */
12
+ /**
13
+ * (Safe copy) Creates a new Set using the captured Set constructor.
14
+ * Use this instead of `new Set()`.
15
+ *
16
+ * @param iterable - Optional iterable of values.
17
+ * @returns A new Set instance.
18
+ */
19
+ export declare const createSet: <T>(iterable?: Iterable<T> | null) => Set<T>;
20
+ /**
21
+ * (Safe copy) Namespace object containing Set factory.
22
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
23
+ */
24
+ export declare const Set: Readonly<{
25
+ readonly create: <T>(iterable?: Iterable<T> | null) => Set<T>;
26
+ }>;
27
+ //# 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/set/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,WAAW,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,KAAG,GAAG,CAAC,CAAC,CAAiE,CAAA;AAEnI;;;GAGG;AACH,eAAO,MAAM,GAAG;sBANU,CAAC,aAAa,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,KAAG,GAAG,CAAC,CAAC,CAAC;EAQjE,CAAA"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Safe copies of Set built-in via factory function.
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/set
11
+ */
12
+ // Capture references at module initialization time
13
+ const _Set = globalThis.Set;
14
+ const _Reflect = globalThis.Reflect;
15
+ const _freeze = globalThis.Object.freeze;
16
+ /**
17
+ * (Safe copy) Creates a new Set using the captured Set constructor.
18
+ * Use this instead of `new Set()`.
19
+ *
20
+ * @param iterable - Optional iterable of values.
21
+ * @returns A new Set instance.
22
+ */
23
+ const createSet = (iterable) => _Reflect.construct(_Set, iterable ? [iterable] : []);
24
+ /**
25
+ * (Safe copy) Namespace object containing Set factory.
26
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
27
+ */
28
+ const Set = _freeze({
29
+ create: createSet,
30
+ });
31
+
32
+ export { Set, createSet };
33
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/set/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,IAAI,GAAG,UAAU,CAAC,GAAG;AAC3B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;;AAMG;AACI,MAAM,SAAS,GAAG,CAAI,QAA6B,KAAqB,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE;AAElI;;;AAGG;AACI,MAAM,GAAG,GAAG,OAAO,CAAQ;AAChC,IAAA,MAAM,EAAE,SAAS;AAClB,CAAA;;;;"}
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of String built-in static methods.
5
+ *
6
+ * These references are captured at module initialization time to protect against
7
+ * prototype pollution attacks. Import only what you need for tree-shaking.
8
+ *
9
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/string
10
+ */
11
+ // Capture references at module initialization time
12
+ const _String = globalThis.String;
13
+ const _freeze = globalThis.Object.freeze;
14
+ // ============================================================================
15
+ // Static Methods
16
+ // ============================================================================
17
+ /**
18
+ * (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
19
+ */
20
+ const fromCharCode = _String.fromCharCode;
21
+ /**
22
+ * (Safe copy) Returns a string created from the specified sequence of Unicode code points.
23
+ */
24
+ const fromCodePoint = _String.fromCodePoint;
25
+ /**
26
+ * (Safe copy) Returns a string created from a raw template string.
27
+ */
28
+ const raw = _String.raw;
29
+ // ============================================================================
30
+ // Namespace Export
31
+ // ============================================================================
32
+ /**
33
+ * (Safe copy) Namespace object containing all String static methods.
34
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
35
+ */
36
+ const String = _freeze({
37
+ fromCharCode,
38
+ fromCodePoint,
39
+ raw,
40
+ });
41
+
42
+ exports.String = String;
43
+ exports.fromCharCode = fromCharCode;
44
+ exports.fromCodePoint = fromCodePoint;
45
+ exports.raw = raw;
46
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM;AACjC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;AACA;AACA;AAEA;;AAEG;AACI,MAAM,YAAY,GAAG,OAAO,CAAC;AAEpC;;AAEG;AACI,MAAM,aAAa,GAAG,OAAO,CAAC;AAErC;;AAEG;AACI,MAAM,GAAG,GAAG,OAAO,CAAC;AAE3B;AACA;AACA;AAEA;;;AAGG;AACI,MAAM,MAAM,GAAG,OAAO,CAAQ;IACnC,YAAY;IACZ,aAAa;IACb,GAAG;AACJ,CAAA;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Safe copies of String built-in static methods.
3
+ *
4
+ * These references are captured at module initialization time to protect against
5
+ * prototype pollution attacks. Import only what you need for tree-shaking.
6
+ *
7
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/string
8
+ */
9
+ /**
10
+ * (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
11
+ */
12
+ export declare const fromCharCode: (...codes: number[]) => string;
13
+ /**
14
+ * (Safe copy) Returns a string created from the specified sequence of Unicode code points.
15
+ */
16
+ export declare const fromCodePoint: (...codePoints: number[]) => string;
17
+ /**
18
+ * (Safe copy) Returns a string created from a raw template string.
19
+ */
20
+ export declare const raw: (template: {
21
+ raw: readonly string[] | ArrayLike<string>;
22
+ }, ...substitutions: any[]) => string;
23
+ /**
24
+ * (Safe copy) Namespace object containing all String static methods.
25
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
26
+ */
27
+ export declare const String: Readonly<{
28
+ readonly fromCharCode: (...codes: number[]) => string;
29
+ readonly fromCodePoint: (...codePoints: number[]) => string;
30
+ readonly raw: (template: {
31
+ raw: readonly string[] | ArrayLike<string>;
32
+ }, ...substitutions: any[]) => string;
33
+ }>;
34
+ //# 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/string/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH;;GAEG;AACH,eAAO,MAAM,YAAY,gCAAuB,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,aAAa,qCAAwB,CAAA;AAElD;;GAEG;AACH,eAAO,MAAM,GAAG;;qCAAc,CAAA;AAM9B;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;EAIjB,CAAA"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Safe copies of String built-in static methods.
3
+ *
4
+ * These references are captured at module initialization time to protect against
5
+ * prototype pollution attacks. Import only what you need for tree-shaking.
6
+ *
7
+ * @module @hyperfrontend/immutable-api-utils/built-in-copy/string
8
+ */
9
+ // Capture references at module initialization time
10
+ const _String = globalThis.String;
11
+ const _freeze = globalThis.Object.freeze;
12
+ // ============================================================================
13
+ // Static Methods
14
+ // ============================================================================
15
+ /**
16
+ * (Safe copy) Returns a string created from the specified sequence of UTF-16 code units.
17
+ */
18
+ const fromCharCode = _String.fromCharCode;
19
+ /**
20
+ * (Safe copy) Returns a string created from the specified sequence of Unicode code points.
21
+ */
22
+ const fromCodePoint = _String.fromCodePoint;
23
+ /**
24
+ * (Safe copy) Returns a string created from a raw template string.
25
+ */
26
+ const raw = _String.raw;
27
+ // ============================================================================
28
+ // Namespace Export
29
+ // ============================================================================
30
+ /**
31
+ * (Safe copy) Namespace object containing all String static methods.
32
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
33
+ */
34
+ const String = _freeze({
35
+ fromCharCode,
36
+ fromCodePoint,
37
+ raw,
38
+ });
39
+
40
+ export { String, fromCharCode, fromCodePoint, raw };
41
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/string/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM;AACjC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;AACA;AACA;AAEA;;AAEG;AACI,MAAM,YAAY,GAAG,OAAO,CAAC;AAEpC;;AAEG;AACI,MAAM,aAAa,GAAG,OAAO,CAAC;AAErC;;AAEG;AACI,MAAM,GAAG,GAAG,OAAO,CAAC;AAE3B;AACA;AACA;AAEA;;;AAGG;AACI,MAAM,MAAM,GAAG,OAAO,CAAQ;IACnC,YAAY;IACZ,aAAa;IACb,GAAG;AACJ,CAAA;;;;"}