@hyperfrontend/immutable-api-utils 0.0.1 → 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 +18 -0
  2. package/README.md +68 -8
  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,209 @@
1
+ /**
2
+ * Safe copies of Object 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/object
8
+ */
9
+ /**
10
+ * (Safe copy) Prevents modification of existing property attributes and values,
11
+ * and prevents the addition of new properties.
12
+ */
13
+ export declare const freeze: {
14
+ <T extends Function>(f: T): T;
15
+ <T extends {
16
+ [idx: string]: U | null | undefined | object;
17
+ }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
18
+ <T>(o: T): Readonly<T>;
19
+ };
20
+ /**
21
+ * (Safe copy) Creates an object that has the specified prototype or that has null prototype.
22
+ */
23
+ export declare const create: {
24
+ (o: object | null): any;
25
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
26
+ };
27
+ /**
28
+ * (Safe copy) Returns the names of the enumerable string properties and methods of an object.
29
+ */
30
+ export declare const keys: {
31
+ (o: object): string[];
32
+ (o: {}): string[];
33
+ };
34
+ /**
35
+ * (Safe copy) Returns an array of key/values of the enumerable own properties of an object.
36
+ */
37
+ export declare const entries: {
38
+ <T>(o: {
39
+ [s: string]: T;
40
+ } | ArrayLike<T>): [string, T][];
41
+ (o: {}): [string, any][];
42
+ };
43
+ /**
44
+ * (Safe copy) Returns an array of values of the enumerable own properties of an object.
45
+ */
46
+ export declare const values: {
47
+ <T>(o: {
48
+ [s: string]: T;
49
+ } | ArrayLike<T>): T[];
50
+ (o: {}): any[];
51
+ };
52
+ /**
53
+ * (Safe copy) Returns an object from an iterable of key-value pairs.
54
+ */
55
+ export declare const fromEntries: {
56
+ <T = any>(entries: Iterable<readonly [PropertyKey, T]>): {
57
+ [k: string]: T;
58
+ };
59
+ (entries: Iterable<readonly any[]>): any;
60
+ };
61
+ /**
62
+ * (Safe copy) Copy the values of all enumerable own properties from one or more source objects
63
+ * to a target object. Returns the target object.
64
+ */
65
+ export declare const assign: {
66
+ <T extends {}, U>(target: T, source: U): T & U;
67
+ <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
68
+ <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
69
+ (target: object, ...sources: any[]): any;
70
+ };
71
+ /**
72
+ * (Safe copy) Adds a property to an object, or modifies attributes of an existing property.
73
+ */
74
+ export declare const defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
75
+ /**
76
+ * (Safe copy) Adds one or more properties to an object, and/or modifies attributes of existing properties.
77
+ */
78
+ export declare const defineProperties: <T>(o: T, properties: PropertyDescriptorMap & ThisType<any>) => T;
79
+ /**
80
+ * (Safe copy) Determines whether an object has a property with the specified name.
81
+ */
82
+ export declare const objectHasOwn: (o: object, v: PropertyKey) => boolean;
83
+ /**
84
+ * (Safe copy) Sets the prototype of a specified object o to object proto or null.
85
+ */
86
+ export declare const setPrototypeOf: (o: any, proto: object | null) => any;
87
+ /**
88
+ * (Safe copy) Returns the prototype of an object.
89
+ */
90
+ export declare const getPrototypeOf: (o: any) => any;
91
+ /**
92
+ * (Safe copy) Prevents the addition of new properties to an object.
93
+ */
94
+ export declare const seal: <T>(o: T) => T;
95
+ /**
96
+ * (Safe copy) Returns true if existing property attributes and values cannot be modified
97
+ * in an object, and new properties cannot be added to the object.
98
+ */
99
+ export declare const isFrozen: (o: any) => boolean;
100
+ /**
101
+ * (Safe copy) Returns true if existing property attributes cannot be modified in an object
102
+ * and new properties cannot be added to the object.
103
+ */
104
+ export declare const isSealed: (o: any) => boolean;
105
+ /**
106
+ * (Safe copy) Returns a value that indicates whether new properties can be added to an object.
107
+ */
108
+ export declare const isExtensible: (o: any) => boolean;
109
+ /**
110
+ * (Safe copy) Prevents the addition of new properties to an object.
111
+ */
112
+ export declare const preventExtensions: <T>(o: T) => T;
113
+ /**
114
+ * (Safe copy) Gets the own property descriptor of the specified object.
115
+ */
116
+ export declare const getOwnPropertyDescriptor: (o: any, p: PropertyKey) => PropertyDescriptor | undefined;
117
+ /**
118
+ * (Safe copy) Returns the names of the own properties of an object.
119
+ */
120
+ export declare const getOwnPropertyNames: (o: any) => string[];
121
+ /**
122
+ * (Safe copy) Returns an array of all symbol properties found directly on object o.
123
+ */
124
+ export declare const getOwnPropertySymbols: (o: any) => symbol[];
125
+ /**
126
+ * (Safe copy) Gets the own property descriptors of the specified object.
127
+ */
128
+ export declare const getOwnPropertyDescriptors: <T>(o: T) => { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & {
129
+ [x: string]: PropertyDescriptor;
130
+ };
131
+ /**
132
+ * (Safe copy) Safe wrapper for Object.prototype.hasOwnProperty.call().
133
+ * Checks if an object has a property as its own (not inherited) property.
134
+ *
135
+ * @param obj - The object to check.
136
+ * @param key - The property key to check.
137
+ * @returns True if the object has the property as its own property.
138
+ */
139
+ export declare const hasOwn: (obj: object, key: PropertyKey) => boolean;
140
+ /**
141
+ * (Safe copy) Safe wrapper for Object.prototype.toString.call().
142
+ * Returns the internal [[Class]] property of the object as a string tag.
143
+ *
144
+ * @param value - The value to get the type tag from.
145
+ * @returns The type tag string (e.g., "[object Array]").
146
+ */
147
+ export declare const typeTag: (value: unknown) => string;
148
+ /**
149
+ * (Safe copy) Namespace object containing all Object static methods.
150
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
151
+ */
152
+ export declare const Object: Readonly<{
153
+ readonly freeze: {
154
+ <T extends Function>(f: T): T;
155
+ <T extends {
156
+ [idx: string]: U | null | undefined | object;
157
+ }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
158
+ <T>(o: T): Readonly<T>;
159
+ };
160
+ readonly create: {
161
+ (o: object | null): any;
162
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
163
+ };
164
+ readonly keys: {
165
+ (o: object): string[];
166
+ (o: {}): string[];
167
+ };
168
+ readonly entries: {
169
+ <T>(o: {
170
+ [s: string]: T;
171
+ } | ArrayLike<T>): [string, T][];
172
+ (o: {}): [string, any][];
173
+ };
174
+ readonly values: {
175
+ <T>(o: {
176
+ [s: string]: T;
177
+ } | ArrayLike<T>): T[];
178
+ (o: {}): any[];
179
+ };
180
+ readonly fromEntries: {
181
+ <T = any>(entries: Iterable<readonly [PropertyKey, T]>): {
182
+ [k: string]: T;
183
+ };
184
+ (entries: Iterable<readonly any[]>): any;
185
+ };
186
+ readonly assign: {
187
+ <T extends {}, U>(target: T, source: U): T & U;
188
+ <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
189
+ <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
190
+ (target: object, ...sources: any[]): any;
191
+ };
192
+ readonly defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
193
+ readonly defineProperties: <T>(o: T, properties: PropertyDescriptorMap & ThisType<any>) => T;
194
+ readonly hasOwn: (o: object, v: PropertyKey) => boolean;
195
+ readonly setPrototypeOf: (o: any, proto: object | null) => any;
196
+ readonly getPrototypeOf: (o: any) => any;
197
+ readonly seal: <T>(o: T) => T;
198
+ readonly isFrozen: (o: any) => boolean;
199
+ readonly isSealed: (o: any) => boolean;
200
+ readonly isExtensible: (o: any) => boolean;
201
+ readonly preventExtensions: <T>(o: T) => T;
202
+ readonly getOwnPropertyDescriptor: (o: any, p: PropertyKey) => PropertyDescriptor | undefined;
203
+ readonly getOwnPropertyNames: (o: any) => string[];
204
+ readonly getOwnPropertySymbols: (o: any) => symbol[];
205
+ readonly getOwnPropertyDescriptors: <T>(o: T) => { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & {
206
+ [x: string]: PropertyDescriptor;
207
+ };
208
+ }>;
209
+ //# 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/object/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;CAAiB,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,MAAM;;;CAAiB,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;;;CAAe,CAAA;AAEhC;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;CAAkB,CAAA;AAEtC;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;CAAiB,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;CAAsB,CAAA;AAE9C;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;CAAiB,CAAA;AAEpC;;GAEG;AACH,eAAO,MAAM,cAAc,gFAAyB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,gBAAgB,mEAA2B,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,wCAAiB,CAAA;AAE1C;;GAEG;AACH,eAAO,MAAM,cAAc,uCAAyB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,cAAc,iBAAyB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,IAAI,gBAAe,CAAA;AAEhC;;;GAGG;AACH,eAAO,MAAM,QAAQ,qBAAmB,CAAA;AAExC;;;GAGG;AACH,eAAO,MAAM,QAAQ,qBAAmB,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,YAAY,qBAAuB,CAAA;AAEhD;;GAEG;AACH,eAAO,MAAM,iBAAiB,gBAA4B,CAAA;AAE1D;;GAEG;AACH,eAAO,MAAM,wBAAwB,4DAAmC,CAAA;AAExE;;GAEG;AACH,eAAO,MAAM,mBAAmB,sBAA8B,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,sBAAgC,CAAA;AAElE;;GAEG;AACH,eAAO,MAAM,yBAAyB;;CAAoC,CAAA;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,EAAE,KAAK,WAAW,KAAG,OAA+D,CAAA;AAEtH;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,MAAsD,CAAA;AAE/F;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBjB,CAAA"}
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Safe copies of Object 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/object
8
+ */
9
+ // Capture references at module initialization time
10
+ const _Object = globalThis.Object;
11
+ const _Reflect = globalThis.Reflect;
12
+ const _ObjectPrototype = _Object.prototype;
13
+ const _hasOwnProperty = _ObjectPrototype.hasOwnProperty;
14
+ const _toString = _ObjectPrototype.toString;
15
+ /**
16
+ * (Safe copy) Prevents modification of existing property attributes and values,
17
+ * and prevents the addition of new properties.
18
+ */
19
+ const freeze = _Object.freeze;
20
+ /**
21
+ * (Safe copy) Creates an object that has the specified prototype or that has null prototype.
22
+ */
23
+ const create = _Object.create;
24
+ /**
25
+ * (Safe copy) Returns the names of the enumerable string properties and methods of an object.
26
+ */
27
+ const keys = _Object.keys;
28
+ /**
29
+ * (Safe copy) Returns an array of key/values of the enumerable own properties of an object.
30
+ */
31
+ const entries = _Object.entries;
32
+ /**
33
+ * (Safe copy) Returns an array of values of the enumerable own properties of an object.
34
+ */
35
+ const values = _Object.values;
36
+ /**
37
+ * (Safe copy) Returns an object from an iterable of key-value pairs.
38
+ */
39
+ const fromEntries = _Object.fromEntries;
40
+ /**
41
+ * (Safe copy) Copy the values of all enumerable own properties from one or more source objects
42
+ * to a target object. Returns the target object.
43
+ */
44
+ const assign = _Object.assign;
45
+ /**
46
+ * (Safe copy) Adds a property to an object, or modifies attributes of an existing property.
47
+ */
48
+ const defineProperty = _Object.defineProperty;
49
+ /**
50
+ * (Safe copy) Adds one or more properties to an object, and/or modifies attributes of existing properties.
51
+ */
52
+ const defineProperties = _Object.defineProperties;
53
+ /**
54
+ * (Safe copy) Determines whether an object has a property with the specified name.
55
+ */
56
+ const objectHasOwn = _Object.hasOwn;
57
+ /**
58
+ * (Safe copy) Sets the prototype of a specified object o to object proto or null.
59
+ */
60
+ const setPrototypeOf = _Object.setPrototypeOf;
61
+ /**
62
+ * (Safe copy) Returns the prototype of an object.
63
+ */
64
+ const getPrototypeOf = _Object.getPrototypeOf;
65
+ /**
66
+ * (Safe copy) Prevents the addition of new properties to an object.
67
+ */
68
+ const seal = _Object.seal;
69
+ /**
70
+ * (Safe copy) Returns true if existing property attributes and values cannot be modified
71
+ * in an object, and new properties cannot be added to the object.
72
+ */
73
+ const isFrozen = _Object.isFrozen;
74
+ /**
75
+ * (Safe copy) Returns true if existing property attributes cannot be modified in an object
76
+ * and new properties cannot be added to the object.
77
+ */
78
+ const isSealed = _Object.isSealed;
79
+ /**
80
+ * (Safe copy) Returns a value that indicates whether new properties can be added to an object.
81
+ */
82
+ const isExtensible = _Object.isExtensible;
83
+ /**
84
+ * (Safe copy) Prevents the addition of new properties to an object.
85
+ */
86
+ const preventExtensions = _Object.preventExtensions;
87
+ /**
88
+ * (Safe copy) Gets the own property descriptor of the specified object.
89
+ */
90
+ const getOwnPropertyDescriptor = _Object.getOwnPropertyDescriptor;
91
+ /**
92
+ * (Safe copy) Returns the names of the own properties of an object.
93
+ */
94
+ const getOwnPropertyNames = _Object.getOwnPropertyNames;
95
+ /**
96
+ * (Safe copy) Returns an array of all symbol properties found directly on object o.
97
+ */
98
+ const getOwnPropertySymbols = _Object.getOwnPropertySymbols;
99
+ /**
100
+ * (Safe copy) Gets the own property descriptors of the specified object.
101
+ */
102
+ const getOwnPropertyDescriptors = _Object.getOwnPropertyDescriptors;
103
+ /**
104
+ * (Safe copy) Safe wrapper for Object.prototype.hasOwnProperty.call().
105
+ * Checks if an object has a property as its own (not inherited) property.
106
+ *
107
+ * @param obj - The object to check.
108
+ * @param key - The property key to check.
109
+ * @returns True if the object has the property as its own property.
110
+ */
111
+ const hasOwn = (obj, key) => _Reflect.apply(_hasOwnProperty, obj, [key]);
112
+ /**
113
+ * (Safe copy) Safe wrapper for Object.prototype.toString.call().
114
+ * Returns the internal [[Class]] property of the object as a string tag.
115
+ *
116
+ * @param value - The value to get the type tag from.
117
+ * @returns The type tag string (e.g., "[object Array]").
118
+ */
119
+ const typeTag = (value) => _Reflect.apply(_toString, value, []);
120
+ /**
121
+ * (Safe copy) Namespace object containing all Object static methods.
122
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
123
+ */
124
+ const Object$1 = _Object.freeze({
125
+ freeze,
126
+ create,
127
+ keys,
128
+ entries,
129
+ values,
130
+ fromEntries,
131
+ assign,
132
+ defineProperty,
133
+ defineProperties,
134
+ hasOwn: objectHasOwn,
135
+ setPrototypeOf,
136
+ getPrototypeOf,
137
+ seal,
138
+ isFrozen,
139
+ isSealed,
140
+ isExtensible,
141
+ preventExtensions,
142
+ getOwnPropertyDescriptor,
143
+ getOwnPropertyNames,
144
+ getOwnPropertySymbols,
145
+ getOwnPropertyDescriptors,
146
+ });
147
+
148
+ export { Object$1 as Object, assign, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwn, isExtensible, isFrozen, isSealed, keys, objectHasOwn, preventExtensions, seal, setPrototypeOf, typeTag, values };
149
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/object/index.ts"],"sourcesContent":[null],"names":["Object"],"mappings":"AAAA;;;;;;;AAOG;AAEH;AACA,MAAM,OAAO,GAAG,UAAU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AAG,OAAO,CAAC;AAEjD;;;;;;;AAOG;MACU,MAAM,GAAG,CAAC,GAAW,EAAE,GAAgB,KAAuB,QAAQ,CAAC,KAAK,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC;AAErH;;;;;;AAMG;AACI,MAAM,OAAO,GAAG,CAAC,KAAc,KAAqB,QAAQ,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE;AAE9F;;;AAGG;AACI,MAAMA,QAAM,GAAG,OAAO,CAAC,MAAM,CAAQ;IAC1C,MAAM;IACN,MAAM;IACN,IAAI;IACJ,OAAO;IACP,MAAM;IACN,WAAW;IACX,MAAM;IACN,cAAc;IACd,gBAAgB;AAChB,IAAA,MAAM,EAAE,YAAY;IACpB,cAAc;IACd,cAAc;IACd,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,YAAY;IACZ,iBAAiB;IACjB,wBAAwB;IACxB,mBAAmB;IACnB,qBAAqB;IACrB,yBAAyB;AAC1B,CAAA;;;;"}
@@ -0,0 +1,80 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Safe copies of Promise built-in methods 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/promise
13
+ */
14
+ // Capture references at module initialization time
15
+ const _Promise = globalThis.Promise;
16
+ const _Reflect = globalThis.Reflect;
17
+ const _freeze = globalThis.Object.freeze;
18
+ /**
19
+ * (Safe copy) Creates a new Promise using the captured Promise constructor.
20
+ * Use this instead of `new Promise()`.
21
+ *
22
+ * @param executor - The executor function.
23
+ * @returns A new Promise instance.
24
+ */
25
+ const createPromise = (executor) => _Reflect.construct(_Promise, [executor]);
26
+ /**
27
+ * (Safe copy) Returns a Promise that resolves with the given value.
28
+ */
29
+ const promiseResolve = _Promise.resolve.bind(_Promise);
30
+ /**
31
+ * (Safe copy) Returns a Promise that rejects with the given reason.
32
+ */
33
+ const promiseReject = _Promise.reject.bind(_Promise);
34
+ /**
35
+ * (Safe copy) Returns a Promise that resolves when all promises resolve.
36
+ */
37
+ const promiseAll = _Promise.all.bind(_Promise);
38
+ /**
39
+ * (Safe copy) Returns a Promise that resolves/rejects with the first settled promise.
40
+ */
41
+ const promiseRace = _Promise.race.bind(_Promise);
42
+ /**
43
+ * (Safe copy) Returns a Promise that resolves when all promises settle.
44
+ */
45
+ const promiseAllSettled = _Promise.allSettled.bind(_Promise);
46
+ /**
47
+ * (Safe copy) Returns a Promise that resolves with the first fulfilled promise.
48
+ */
49
+ const promiseAny = _Promise.any.bind(_Promise);
50
+ /**
51
+ * (Safe copy) Creates a Promise along with its resolve and reject functions.
52
+ * Note: Available only in ES2024+ environments.
53
+ */
54
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
55
+ const promiseWithResolvers = _Promise.withResolvers?.bind(_Promise);
56
+ /**
57
+ * (Safe copy) Namespace object containing all Promise factory functions.
58
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
59
+ */
60
+ const Promise$1 = _freeze({
61
+ create: createPromise,
62
+ resolve: promiseResolve,
63
+ reject: promiseReject,
64
+ all: promiseAll,
65
+ race: promiseRace,
66
+ allSettled: promiseAllSettled,
67
+ any: promiseAny,
68
+ withResolvers: promiseWithResolvers,
69
+ });
70
+
71
+ exports.Promise = Promise$1;
72
+ exports.createPromise = createPromise;
73
+ exports.promiseAll = promiseAll;
74
+ exports.promiseAllSettled = promiseAllSettled;
75
+ exports.promiseAny = promiseAny;
76
+ exports.promiseRace = promiseRace;
77
+ exports.promiseReject = promiseReject;
78
+ exports.promiseResolve = promiseResolve;
79
+ exports.promiseWithResolvers = promiseWithResolvers;
80
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../../../../../../../../../../../libs/utils/immutable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AA;;;;;;;;;;;;"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Safe copies of Promise built-in methods 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/promise
11
+ */
12
+ /**
13
+ * (Safe copy) Creates a new Promise using the captured Promise constructor.
14
+ * Use this instead of `new Promise()`.
15
+ *
16
+ * @param executor - The executor function.
17
+ * @returns A new Promise instance.
18
+ */
19
+ export declare const createPromise: <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: unknown) => void) => void) => Promise<T>;
20
+ /**
21
+ * (Safe copy) Returns a Promise that resolves with the given value.
22
+ */
23
+ export declare const promiseResolve: any;
24
+ /**
25
+ * (Safe copy) Returns a Promise that rejects with the given reason.
26
+ */
27
+ export declare const promiseReject: any;
28
+ /**
29
+ * (Safe copy) Returns a Promise that resolves when all promises resolve.
30
+ */
31
+ export declare const promiseAll: any;
32
+ /**
33
+ * (Safe copy) Returns a Promise that resolves/rejects with the first settled promise.
34
+ */
35
+ export declare const promiseRace: any;
36
+ /**
37
+ * (Safe copy) Returns a Promise that resolves when all promises settle.
38
+ */
39
+ export declare const promiseAllSettled: any;
40
+ /**
41
+ * (Safe copy) Returns a Promise that resolves with the first fulfilled promise.
42
+ */
43
+ export declare const promiseAny: any;
44
+ /**
45
+ * (Safe copy) Creates a Promise along with its resolve and reject functions.
46
+ * Note: Available only in ES2024+ environments.
47
+ */
48
+ export declare const promiseWithResolvers: any;
49
+ /**
50
+ * (Safe copy) Namespace object containing all Promise factory functions.
51
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
52
+ */
53
+ export declare const Promise: Readonly<{
54
+ readonly create: <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: unknown) => void) => void) => Promise<T>;
55
+ readonly resolve: any;
56
+ readonly reject: any;
57
+ readonly all: any;
58
+ readonly race: any;
59
+ readonly allSettled: any;
60
+ readonly any: any;
61
+ readonly withResolvers: any;
62
+ }>;
63
+ //# 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/promise/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAC7B,UAAU,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,KACnG,OAAO,CAAC,CAAC,CAAyD,CAAA;AAErE;;GAEG;AACH,eAAO,MAAM,cAAc,KAAkC,CAAA;AAE7D;;GAEG;AACH,eAAO,MAAM,aAAa,KAAiC,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,UAAU,KAA8B,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,WAAW,KAA+B,CAAA;AAEvD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAqC,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,UAAU,KAA8B,CAAA;AAErD;;;GAGG;AAEH,eAAO,MAAM,oBAAoB,KAAgD,CAAA;AAEjF;;;GAGG;AACH,eAAO,MAAM,OAAO;sBA7CU,CAAC,YACnB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,IAAI,KAAK,IAAI,KACnG,OAAO,CAAC,CAAC,CAAC;;;;;;;;EAoDX,CAAA"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Safe copies of Promise built-in methods 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/promise
11
+ */
12
+ // Capture references at module initialization time
13
+ const _Promise = globalThis.Promise;
14
+ const _Reflect = globalThis.Reflect;
15
+ const _freeze = globalThis.Object.freeze;
16
+ /**
17
+ * (Safe copy) Creates a new Promise using the captured Promise constructor.
18
+ * Use this instead of `new Promise()`.
19
+ *
20
+ * @param executor - The executor function.
21
+ * @returns A new Promise instance.
22
+ */
23
+ const createPromise = (executor) => _Reflect.construct(_Promise, [executor]);
24
+ /**
25
+ * (Safe copy) Returns a Promise that resolves with the given value.
26
+ */
27
+ const promiseResolve = _Promise.resolve.bind(_Promise);
28
+ /**
29
+ * (Safe copy) Returns a Promise that rejects with the given reason.
30
+ */
31
+ const promiseReject = _Promise.reject.bind(_Promise);
32
+ /**
33
+ * (Safe copy) Returns a Promise that resolves when all promises resolve.
34
+ */
35
+ const promiseAll = _Promise.all.bind(_Promise);
36
+ /**
37
+ * (Safe copy) Returns a Promise that resolves/rejects with the first settled promise.
38
+ */
39
+ const promiseRace = _Promise.race.bind(_Promise);
40
+ /**
41
+ * (Safe copy) Returns a Promise that resolves when all promises settle.
42
+ */
43
+ const promiseAllSettled = _Promise.allSettled.bind(_Promise);
44
+ /**
45
+ * (Safe copy) Returns a Promise that resolves with the first fulfilled promise.
46
+ */
47
+ const promiseAny = _Promise.any.bind(_Promise);
48
+ /**
49
+ * (Safe copy) Creates a Promise along with its resolve and reject functions.
50
+ * Note: Available only in ES2024+ environments.
51
+ */
52
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
53
+ const promiseWithResolvers = _Promise.withResolvers?.bind(_Promise);
54
+ /**
55
+ * (Safe copy) Namespace object containing all Promise factory functions.
56
+ * Note: Importing this imports all methods in this namespace (no tree-shaking).
57
+ */
58
+ const Promise$1 = _freeze({
59
+ create: createPromise,
60
+ resolve: promiseResolve,
61
+ reject: promiseReject,
62
+ all: promiseAll,
63
+ race: promiseRace,
64
+ allSettled: promiseAllSettled,
65
+ any: promiseAny,
66
+ withResolvers: promiseWithResolvers,
67
+ });
68
+
69
+ export { Promise$1 as Promise, createPromise, promiseAll, promiseAllSettled, promiseAny, promiseRace, promiseReject, promiseResolve, promiseWithResolvers };
70
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../../../../../../../../../../../libs/utils/immutable-api/src/built-in-copy/promise/index.ts"],"sourcesContent":[null],"names":["Promise"],"mappings":"AAAA;;;;;;;;;;AAUG;AAEH;AACA,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO;AACnC,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,MAAM;AAExC;;;;;;AAMG;AACI,MAAM,aAAa,GAAG,CAC3B,QAAoG,KACzE,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;AAEpE;;AAEG;AACI,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ;AAE5D;;AAEG;AACI,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ;AAE1D;;AAEG;AACI,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ;AAEpD;;AAEG;AACI,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ;AAEtD;;AAEG;AACI,MAAM,iBAAiB,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;AAElE;;AAEG;AACI,MAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ;AAEpD;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