lakutata 2.0.4 → 2.0.6

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.
package/helper.cjs CHANGED
@@ -20,9 +20,9 @@ const c = require("./src/lib/helpers/GetObjectPropertyPaths.cjs");
20
20
 
21
21
  const i = require("./src/lib/helpers/GraceExit.cjs");
22
22
 
23
- const l = require("./src/lib/helpers/IsEmptyObject.cjs");
23
+ const n = require("./src/lib/helpers/IsEmptyObject.cjs");
24
24
 
25
- const n = require("./src/lib/helpers/IsExists.cjs");
25
+ const l = require("./src/lib/helpers/IsExists.cjs");
26
26
 
27
27
  const p = require("./vendor/Package.9.cjs");
28
28
 
@@ -40,57 +40,69 @@ const x = require("./src/lib/helpers/IsXML.cjs");
40
40
 
41
41
  const h = require("./src/lib/helpers/NoCase.cjs");
42
42
 
43
- const y = require("./src/lib/helpers/ObjectConstructor.cjs");
43
+ const I = require("./src/lib/helpers/ObjectConstructor.cjs");
44
44
 
45
- const I = require("./src/lib/helpers/ObjectHash.cjs");
45
+ const g = require("./src/lib/helpers/ObjectHash.cjs");
46
46
 
47
- const P = require("./src/lib/helpers/ObjectParentConstructor.cjs");
47
+ const S = require("./src/lib/helpers/ObjectParentConstructor.cjs");
48
48
 
49
- const S = require("./src/lib/helpers/ObjectParentConstructors.cjs");
49
+ const y = require("./src/lib/helpers/ObjectParentConstructors.cjs");
50
50
 
51
- const g = require("./src/lib/helpers/ObjectPrototype.cjs");
51
+ const T = require("./src/lib/helpers/ObjectPrototype.cjs");
52
52
 
53
- const A = require("./src/lib/helpers/SetToArray.cjs");
53
+ const P = require("./src/lib/helpers/SetToArray.cjs");
54
54
 
55
- const O = require("./src/lib/helpers/Templating.cjs");
55
+ const d = require("./src/lib/helpers/Templating.cjs");
56
56
 
57
- const v = require("./src/lib/helpers/UniqueArray.cjs");
57
+ const E = require("./src/lib/helpers/UniqueArray.cjs");
58
58
 
59
- const m = require("./src/lib/helpers/ObjectToMap.cjs");
59
+ const A = require("./src/lib/helpers/ObjectToMap.cjs");
60
60
 
61
- const d = require("./src/lib/helpers/IsPath.cjs");
61
+ const O = require("./src/lib/helpers/IsPath.cjs");
62
62
 
63
- const T = require("./src/lib/helpers/ConvertArrayLikeToIterable.cjs");
63
+ const v = require("./src/lib/helpers/ConvertArrayLikeToIterable.cjs");
64
64
 
65
- const M = require("./src/lib/helpers/ConvertArrayLikeToStream.cjs");
65
+ const H = require("./src/lib/helpers/ConvertArrayLikeToStream.cjs");
66
66
 
67
- const k = require("./src/lib/helpers/MergeSet.cjs");
67
+ const m = require("./src/lib/helpers/MergeSet.cjs");
68
68
 
69
- const C = require("./src/lib/helpers/MergeArray.cjs");
69
+ const M = require("./src/lib/helpers/MergeArray.cjs");
70
70
 
71
- const E = require("./src/lib/helpers/MergeMap.cjs");
71
+ const k = require("./src/lib/helpers/MergeMap.cjs");
72
72
 
73
- const D = require("./src/lib/helpers/SortArray.cjs");
73
+ const C = require("./src/lib/helpers/SortArray.cjs");
74
74
 
75
- const L = require("./src/lib/helpers/SortKeys.cjs");
75
+ const D = require("./src/lib/helpers/SortKeys.cjs");
76
76
 
77
- const N = require("./src/lib/helpers/SortObject.cjs");
77
+ const L = require("./src/lib/helpers/SortObject.cjs");
78
78
 
79
- const G = require("./src/lib/helpers/RandomString.cjs");
79
+ const N = require("./src/lib/helpers/RandomString.cjs");
80
80
 
81
- const H = require("./src/lib/helpers/NonceStr.cjs");
81
+ const G = require("./src/lib/helpers/NonceStr.cjs");
82
82
 
83
- const f = require("./src/lib/helpers/IsAbortError.cjs");
83
+ const U = require("./src/lib/helpers/IsAbortError.cjs");
84
84
 
85
- const U = require("./src/lib/helpers/Glob.cjs");
85
+ const f = require("./src/lib/helpers/Glob.cjs");
86
86
 
87
87
  const V = require("./src/lib/helpers/IPToolkit.cjs");
88
88
 
89
- const K = require("./src/lib/helpers/MD5.cjs");
89
+ const K = require("./src/lib/helpers/HexToUnsigned.cjs");
90
90
 
91
- const w = require("./src/lib/helpers/SHA1.cjs");
91
+ const w = require("./src/lib/helpers/UnsignedToHex.cjs");
92
92
 
93
- const F = require("./src/lib/helpers/SHA256.cjs");
93
+ const F = require("./src/lib/helpers/HexToSigned.cjs");
94
+
95
+ const R = require("./src/lib/helpers/SignedToHex.cjs");
96
+
97
+ const X = require("./src/lib/helpers/HexToIEEE754.cjs");
98
+
99
+ const B = require("./src/lib/helpers/IEEE754ToHex.cjs");
100
+
101
+ const W = require("./src/lib/helpers/MD5.cjs");
102
+
103
+ const _ = require("./src/lib/helpers/SHA1.cjs");
104
+
105
+ const z = require("./src/lib/helpers/SHA256.cjs");
94
106
 
95
107
  require("./vendor/Package.5.cjs");
96
108
 
@@ -148,6 +160,8 @@ require("stream");
148
160
 
149
161
  require("string_decoder");
150
162
 
163
+ require("./src/lib/base/internal/IEEE754.cjs");
164
+
151
165
  require("./vendor/Package.72.cjs");
152
166
 
153
167
  require("node:crypto");
@@ -166,9 +180,9 @@ exports.GetObjectPropertyPaths = c.GetObjectPropertyPaths;
166
180
 
167
181
  exports.GraceExit = i.GraceExit;
168
182
 
169
- exports.IsEmptyObject = l.IsEmptyObject;
183
+ exports.IsEmptyObject = n.IsEmptyObject;
170
184
 
171
- exports.IsExists = n.IsExists;
185
+ exports.IsExists = l.IsExists;
172
186
 
173
187
  exports.IsGlobString = p.IsGlobString;
174
188
 
@@ -192,51 +206,51 @@ exports.ToLower = h.ToLower;
192
206
 
193
207
  exports.ToUpper = h.ToUpper;
194
208
 
195
- exports.ObjectConstructor = y.ObjectConstructor;
209
+ exports.ObjectConstructor = I.ObjectConstructor;
196
210
 
197
- exports.ObjectHash = I.ObjectHash;
211
+ exports.ObjectHash = g.ObjectHash;
198
212
 
199
- exports.ObjectParentConstructor = P.ObjectParentConstructor;
213
+ exports.ObjectParentConstructor = S.ObjectParentConstructor;
200
214
 
201
- exports.ObjectParentConstructors = S.ObjectParentConstructors;
215
+ exports.ObjectParentConstructors = y.ObjectParentConstructors;
202
216
 
203
- exports.ObjectPrototype = g.ObjectPrototype;
217
+ exports.ObjectPrototype = T.ObjectPrototype;
204
218
 
205
- exports.SetToArray = A.SetToArray;
219
+ exports.SetToArray = P.SetToArray;
206
220
 
207
- exports.MissingValueError = O.MissingValueError;
221
+ exports.MissingValueError = d.MissingValueError;
208
222
 
209
- exports.Templating = O.Templating;
223
+ exports.Templating = d.Templating;
210
224
 
211
- exports.UniqueArray = v.UniqueArray;
225
+ exports.UniqueArray = E.UniqueArray;
212
226
 
213
- exports.ObjectToMap = m.ObjectToMap;
227
+ exports.ObjectToMap = A.ObjectToMap;
214
228
 
215
- exports.IsPath = d.IsPath;
229
+ exports.IsPath = O.IsPath;
216
230
 
217
- exports.ConvertArrayLikeToIterable = T.ConvertArrayLikeToIterable;
231
+ exports.ConvertArrayLikeToIterable = v.ConvertArrayLikeToIterable;
218
232
 
219
- exports.ConvertArrayLikeToStream = M.ConvertArrayLikeToStream;
233
+ exports.ConvertArrayLikeToStream = H.ConvertArrayLikeToStream;
220
234
 
221
- exports.MergeSet = k.MergeSet;
235
+ exports.MergeSet = m.MergeSet;
222
236
 
223
- exports.MergeArray = C.MergeArray;
237
+ exports.MergeArray = M.MergeArray;
224
238
 
225
- exports.MergeMap = E.MergeMap;
239
+ exports.MergeMap = k.MergeMap;
226
240
 
227
- exports.SortArray = D.SortArray;
241
+ exports.SortArray = C.SortArray;
228
242
 
229
- exports.SortKeys = L.SortKeys;
243
+ exports.SortKeys = D.SortKeys;
230
244
 
231
- exports.SortObject = N.SortObject;
245
+ exports.SortObject = L.SortObject;
232
246
 
233
- exports.RandomString = G.RandomString;
247
+ exports.RandomString = N.RandomString;
234
248
 
235
- exports.NonceStr = H.NonceStr;
249
+ exports.NonceStr = G.NonceStr;
236
250
 
237
- exports.IsAbortError = f.IsAbortError;
251
+ exports.IsAbortError = U.IsAbortError;
238
252
 
239
- exports.Glob = U.Glob;
253
+ exports.Glob = f.Glob;
240
254
 
241
255
  exports.IP = V.IP;
242
256
 
@@ -244,8 +258,20 @@ exports.IPv4 = V.IPv4;
244
258
 
245
259
  exports.IPv6 = V.IPv6;
246
260
 
247
- exports.MD5 = K.MD5;
261
+ exports.HexToUnsigned = K.HexToUnsigned;
262
+
263
+ exports.UnsignedToHex = w.UnsignedToHex;
264
+
265
+ exports.HexToSigned = F.HexToSigned;
266
+
267
+ exports.SignedToHex = R.SignedToHex;
268
+
269
+ exports.HexToIEEE754 = X.HexToIEEE754;
270
+
271
+ exports.IEEE754ToHex = B.IEEE754ToHex;
272
+
273
+ exports.MD5 = W.MD5;
248
274
 
249
- exports.SHA1 = w.SHA1;
275
+ exports.SHA1 = _.SHA1;
250
276
 
251
- exports.SHA256 = F.SHA256;
277
+ exports.SHA256 = z.SHA256;
package/helper.d.ts CHANGED
@@ -3807,6 +3807,51 @@ declare class IPv6 {
3807
3807
  static parseCIDR(cidr: string): IPv6SubNet | false;
3808
3808
  }
3809
3809
 
3810
+ /**
3811
+ * Hex to unsigned number
3812
+ * @param hex
3813
+ * @constructor
3814
+ */
3815
+ declare function HexToUnsigned(hex: string): number;
3816
+
3817
+ /**
3818
+ * Unsigned number to hex
3819
+ * @param unsignedNumber
3820
+ * @param bits
3821
+ * @constructor
3822
+ */
3823
+ declare function UnsignedToHex(unsignedNumber: number, bits?: 8 | 16 | 32 | 64 | 128): string;
3824
+
3825
+ /**
3826
+ * Hex to signed number
3827
+ * @param hex
3828
+ * @constructor
3829
+ */
3830
+ declare function HexToSigned(hex: string): number;
3831
+
3832
+ /**
3833
+ * Signed number to hex
3834
+ * @param signedNumber
3835
+ * @param bits
3836
+ * @constructor
3837
+ */
3838
+ declare function SignedToHex(signedNumber: number, bits?: 8 | 16 | 32 | 64 | 128): string;
3839
+
3840
+ /**
3841
+ * Hex to IEEE754 number
3842
+ * @param hex
3843
+ * @constructor
3844
+ */
3845
+ declare function HexToIEEE754(hex: string): number;
3846
+
3847
+ /**
3848
+ * IEEE754 number to hex
3849
+ * @param ieee754Number
3850
+ * @param bits
3851
+ * @constructor
3852
+ */
3853
+ declare function IEEE754ToHex(ieee754Number: number, bits?: 32 | 64): string;
3854
+
3810
3855
  /**
3811
3856
  * MD5 Hash
3812
3857
  * @param message
@@ -3828,4 +3873,4 @@ declare function SHA1(message: string): Buffer;
3828
3873
  */
3829
3874
  declare function SHA256(message: string): Buffer;
3830
3875
 
3831
- export { ArrayToSet, As, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, IP, type IPBinHex, IPv4, type IPv4SubNet, IPv6, type IPv6Result, type IPv6SubNet, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, type NoCaseOptions, NonceStr, ObjectConstructor, ObjectHash, type ObjectHashOptions, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SortArray, SortKeys, type SortKeysOptions, SortObject, type SortObjectOptions, type SortOptions, Split, type SplitOptions, Templating, type TemplatingOptions, ToLower, ToUpper, UniqueArray };
3876
+ export { ArrayToSet, As, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, type IPBinHex, IPv4, type IPv4SubNet, IPv6, type IPv6Result, type IPv6SubNet, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, type NoCaseOptions, NonceStr, ObjectConstructor, ObjectHash, type ObjectHashOptions, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, type SortKeysOptions, SortObject, type SortObjectOptions, type SortOptions, Split, type SplitOptions, Templating, type TemplatingOptions, ToLower, ToUpper, UniqueArray, UnsignedToHex };
package/helper.mjs CHANGED
@@ -80,6 +80,18 @@ export { Glob } from "./src/lib/helpers/Glob.mjs";
80
80
 
81
81
  export { IP, IPv4, IPv6 } from "./src/lib/helpers/IPToolkit.mjs";
82
82
 
83
+ export { HexToUnsigned } from "./src/lib/helpers/HexToUnsigned.mjs";
84
+
85
+ export { UnsignedToHex } from "./src/lib/helpers/UnsignedToHex.mjs";
86
+
87
+ export { HexToSigned } from "./src/lib/helpers/HexToSigned.mjs";
88
+
89
+ export { SignedToHex } from "./src/lib/helpers/SignedToHex.mjs";
90
+
91
+ export { HexToIEEE754 } from "./src/lib/helpers/HexToIEEE754.mjs";
92
+
93
+ export { IEEE754ToHex } from "./src/lib/helpers/IEEE754ToHex.mjs";
94
+
83
95
  export { MD5 } from "./src/lib/helpers/MD5.mjs";
84
96
 
85
97
  export { SHA1 } from "./src/lib/helpers/SHA1.mjs";
@@ -142,6 +154,8 @@ import "stream";
142
154
 
143
155
  import "string_decoder";
144
156
 
157
+ import "./src/lib/base/internal/IEEE754.mjs";
158
+
145
159
  import "./vendor/Package.72.mjs";
146
160
 
147
161
  import "node:crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -62,10 +62,10 @@ exports.Column = r.Column = void 0;
62
62
 
63
63
  const t = e.requireGlobals();
64
64
 
65
- const o = e.ColumnTypeUndefinedError;
65
+ const o = e.requireColumnTypeUndefinedError();
66
66
 
67
- function a(e, r) {
68
- return function(a, u) {
67
+ function u(e, r) {
68
+ return function(u, a) {
69
69
  let i;
70
70
  if (typeof e === "string" || typeof e === "function") {
71
71
  i = e;
@@ -74,34 +74,34 @@ function a(e, r) {
74
74
  i = e.type;
75
75
  }
76
76
  if (!r) r = {};
77
- const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", a, u) : undefined;
77
+ const n = Reflect && Reflect.getMetadata ? Reflect.getMetadata("design:type", u, a) : undefined;
78
78
  if (!i && n) i = n;
79
79
  if (!r.type && i) r.type = i;
80
80
  if (r.type === "hstore" && !r.hstoreType) r.hstoreType = n === Object ? "object" : "string";
81
81
  if (typeof e === "function") {
82
82
  (0, t.getMetadataArgsStorage)().embeddeds.push({
83
- target: a.constructor,
84
- propertyName: u,
83
+ target: u.constructor,
84
+ propertyName: a,
85
85
  isArray: n === Array || r.array === true,
86
86
  prefix: r.prefix !== undefined ? r.prefix : undefined,
87
87
  type: e
88
88
  });
89
89
  } else {
90
- if (!r.type) throw new o.ColumnTypeUndefinedError(a, u);
90
+ if (!r.type) throw new o.ColumnTypeUndefinedError(u, a);
91
91
  if (r.unique === true) (0, t.getMetadataArgsStorage)().uniques.push({
92
- target: a.constructor,
93
- columns: [ u ]
92
+ target: u.constructor,
93
+ columns: [ a ]
94
94
  });
95
95
  (0, t.getMetadataArgsStorage)().columns.push({
96
- target: a.constructor,
97
- propertyName: u,
96
+ target: u.constructor,
97
+ propertyName: a,
98
98
  mode: "regular",
99
99
  options: r
100
100
  });
101
101
  if (r.generated) {
102
102
  (0, t.getMetadataArgsStorage)().generations.push({
103
- target: a.constructor,
104
- propertyName: u,
103
+ target: u.constructor,
104
+ propertyName: a,
105
105
  strategy: typeof r.generated === "string" ? r.generated : "increment"
106
106
  });
107
107
  }
@@ -109,4 +109,4 @@ function a(e, r) {
109
109
  };
110
110
  }
111
111
 
112
- exports.Column = r.Column = a;
112
+ exports.Column = r.Column = u;
@@ -62,7 +62,7 @@ exports.PrimaryColumn = r.PrimaryColumn = void 0;
62
62
 
63
63
  const t = e.requireGlobals();
64
64
 
65
- const o = e.ColumnTypeUndefinedError;
65
+ const o = e.requireColumnTypeUndefinedError();
66
66
 
67
67
  const a = e.requirePrimaryColumnCannotBeNullableError();
68
68
 
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ function t(t, e, o, l, i) {
8
+ let s;
9
+ let n;
10
+ const a = i * 8 - l - 1;
11
+ const h = (1 << a) - 1;
12
+ const f = h >> 1;
13
+ let r = -7;
14
+ let w = o ? i - 1 : 0;
15
+ const M = o ? -1 : 1;
16
+ let c = t[e + w];
17
+ w += M;
18
+ s = c & (1 << -r) - 1;
19
+ c >>= -r;
20
+ r += a;
21
+ while (r > 0) {
22
+ s = s * 256 + t[e + w];
23
+ w += M;
24
+ r -= 8;
25
+ }
26
+ n = s & (1 << -r) - 1;
27
+ s >>= -r;
28
+ r += l;
29
+ while (r > 0) {
30
+ n = n * 256 + t[e + w];
31
+ w += M;
32
+ r -= 8;
33
+ }
34
+ if (s === 0) {
35
+ s = 1 - f;
36
+ } else if (s === h) {
37
+ return n ? NaN : (c ? -1 : 1) * Infinity;
38
+ } else {
39
+ n = n + Math.pow(2, l);
40
+ s = s - f;
41
+ }
42
+ return (c ? -1 : 1) * n * Math.pow(2, s - l);
43
+ }
44
+
45
+ function e(t, e, o, l, i, s) {
46
+ let n;
47
+ let a;
48
+ let h;
49
+ let f = s * 8 - i - 1;
50
+ const r = (1 << f) - 1;
51
+ const w = r >> 1;
52
+ const M = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
53
+ let c = l ? 0 : s - 1;
54
+ const p = l ? 1 : -1;
55
+ const u = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
56
+ e = Math.abs(e);
57
+ if (isNaN(e) || e === Infinity) {
58
+ a = isNaN(e) ? 1 : 0;
59
+ n = r;
60
+ } else {
61
+ n = Math.floor(Math.log(e) / Math.LN2);
62
+ if (e * (h = Math.pow(2, -n)) < 1) {
63
+ n--;
64
+ h *= 2;
65
+ }
66
+ if (n + w >= 1) {
67
+ e += M / h;
68
+ } else {
69
+ e += M * Math.pow(2, 1 - w);
70
+ }
71
+ if (e * h >= 2) {
72
+ n++;
73
+ h /= 2;
74
+ }
75
+ if (n + w >= r) {
76
+ a = 0;
77
+ n = r;
78
+ } else if (n + w >= 1) {
79
+ a = (e * h - 1) * Math.pow(2, i);
80
+ n = n + w;
81
+ } else {
82
+ a = e * Math.pow(2, w - 1) * Math.pow(2, i);
83
+ n = 0;
84
+ }
85
+ }
86
+ while (i >= 8) {
87
+ t[o + c] = a & 255;
88
+ c += p;
89
+ a /= 256;
90
+ i -= 8;
91
+ }
92
+ n = n << i | a;
93
+ f += i;
94
+ while (f > 0) {
95
+ t[o + c] = n & 255;
96
+ c += p;
97
+ n /= 256;
98
+ f -= 8;
99
+ }
100
+ t[o + c - p] |= u * 128;
101
+ }
102
+
103
+ exports.readIEEE754 = t;
104
+
105
+ exports.writeIEEE754 = e;
@@ -0,0 +1,97 @@
1
+ function t(t, e, o, l, i) {
2
+ let n;
3
+ let s;
4
+ const a = i * 8 - l - 1;
5
+ const h = (1 << a) - 1;
6
+ const f = h >> 1;
7
+ let w = -7;
8
+ let M = o ? i - 1 : 0;
9
+ const c = o ? -1 : 1;
10
+ let p = t[e + M];
11
+ M += c;
12
+ n = p & (1 << -w) - 1;
13
+ p >>= -w;
14
+ w += a;
15
+ while (w > 0) {
16
+ n = n * 256 + t[e + M];
17
+ M += c;
18
+ w -= 8;
19
+ }
20
+ s = n & (1 << -w) - 1;
21
+ n >>= -w;
22
+ w += l;
23
+ while (w > 0) {
24
+ s = s * 256 + t[e + M];
25
+ M += c;
26
+ w -= 8;
27
+ }
28
+ if (n === 0) {
29
+ n = 1 - f;
30
+ } else if (n === h) {
31
+ return s ? NaN : (p ? -1 : 1) * Infinity;
32
+ } else {
33
+ s = s + Math.pow(2, l);
34
+ n = n - f;
35
+ }
36
+ return (p ? -1 : 1) * s * Math.pow(2, n - l);
37
+ }
38
+
39
+ function e(t, e, o, l, i, n) {
40
+ let s;
41
+ let a;
42
+ let h;
43
+ let f = n * 8 - i - 1;
44
+ const w = (1 << f) - 1;
45
+ const M = w >> 1;
46
+ const c = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
47
+ let p = l ? 0 : n - 1;
48
+ const N = l ? 1 : -1;
49
+ const r = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
50
+ e = Math.abs(e);
51
+ if (isNaN(e) || e === Infinity) {
52
+ a = isNaN(e) ? 1 : 0;
53
+ s = w;
54
+ } else {
55
+ s = Math.floor(Math.log(e) / Math.LN2);
56
+ if (e * (h = Math.pow(2, -s)) < 1) {
57
+ s--;
58
+ h *= 2;
59
+ }
60
+ if (s + M >= 1) {
61
+ e += c / h;
62
+ } else {
63
+ e += c * Math.pow(2, 1 - M);
64
+ }
65
+ if (e * h >= 2) {
66
+ s++;
67
+ h /= 2;
68
+ }
69
+ if (s + M >= w) {
70
+ a = 0;
71
+ s = w;
72
+ } else if (s + M >= 1) {
73
+ a = (e * h - 1) * Math.pow(2, i);
74
+ s = s + M;
75
+ } else {
76
+ a = e * Math.pow(2, M - 1) * Math.pow(2, i);
77
+ s = 0;
78
+ }
79
+ }
80
+ while (i >= 8) {
81
+ t[o + p] = a & 255;
82
+ p += N;
83
+ a /= 256;
84
+ i -= 8;
85
+ }
86
+ s = s << i | a;
87
+ f += i;
88
+ while (f > 0) {
89
+ t[o + p] = s & 255;
90
+ p += N;
91
+ s /= 256;
92
+ f -= 8;
93
+ }
94
+ t[o + p - N] |= r * 128;
95
+ }
96
+
97
+ export { t as readIEEE754, e as writeIEEE754 };
@@ -39,7 +39,7 @@ function c(t) {
39
39
  }
40
40
 
41
41
  function i(i, a, s = false) {
42
- if (c(i) && !s || c(i) && r(i) !== a) throw new t.LifetimeLockedException("Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked");
42
+ if (c(i) && !s || c(i) && r(i) !== a) throw new t.LifetimeLockedException("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
43
43
  if (s) Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK, true, i);
44
44
  Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_LIFETIME, a, i);
45
45
  return i;
@@ -1,6 +1,6 @@
1
1
  import { DI_TARGET_CONSTRUCTOR_LIFETIME as e, DI_TARGET_CONSTRUCTOR_LIFETIME_LOCK as t } from "../../../constants/DIMetadataKey.mjs";
2
2
 
3
- import { LifetimeLockedException as o } from "../../../exceptions/di/LifetimeLockedException.mjs";
3
+ import { LifetimeLockedException as a } from "../../../exceptions/di/LifetimeLockedException.mjs";
4
4
 
5
5
  import "../../../../vendor/Package.4.mjs";
6
6
 
@@ -24,7 +24,7 @@ import "./CamelCase.mjs";
24
24
 
25
25
  import "../../helpers/NoCase.mjs";
26
26
 
27
- function a(t) {
27
+ function o(t) {
28
28
  return Reflect.getMetadata(e, t);
29
29
  }
30
30
 
@@ -32,11 +32,11 @@ function r(e) {
32
32
  return !!Reflect.getMetadata(t, e);
33
33
  }
34
34
 
35
- function i(i, m, n = false) {
36
- if (r(i) && !n || r(i) && a(i) !== m) throw new o("Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked");
37
- if (n) Reflect.defineMetadata(t, true, i);
35
+ function i(i, m, s = false) {
36
+ if (r(i) && !s || r(i) && o(i) !== m) throw new a("[{0}] Object lifecycle settings cannot be applied because the parent object lifecycle of the current operation object is locked", [ i.className ]);
37
+ if (s) Reflect.defineMetadata(t, true, i);
38
38
  Reflect.defineMetadata(e, m, i);
39
39
  return i;
40
40
  }
41
41
 
42
- export { a as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };
42
+ export { o as GetObjectLifetime, r as GetObjectLifetimeLocked, i as SetObjectLifetime };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ const e = require("../base/internal/IEEE754.cjs");
8
+
9
+ function r(r) {
10
+ const t = Buffer.from(r, "hex");
11
+ if (t.length === 8) {
12
+ return e.readIEEE754(Buffer.from(r, "hex"), 0, false, 52, 8);
13
+ } else {
14
+ return e.readIEEE754(Buffer.from(r, "hex"), 0, false, 23, 4);
15
+ }
16
+ }
17
+
18
+ exports.HexToIEEE754 = r;
@@ -0,0 +1,12 @@
1
+ import { readIEEE754 as e } from "../base/internal/IEEE754.mjs";
2
+
3
+ function f(f) {
4
+ const r = Buffer.from(f, "hex");
5
+ if (r.length === 8) {
6
+ return e(Buffer.from(f, "hex"), 0, false, 52, 8);
7
+ } else {
8
+ return e(Buffer.from(f, "hex"), 0, false, 23, 4);
9
+ }
10
+ }
11
+
12
+ export { f as HexToIEEE754 };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ function t(t) {
8
+ if (t.startsWith("0x") || t.startsWith("0X")) t = parseInt(t, 16).toString(16);
9
+ const n = t.length * 4;
10
+ const e = BigInt.asIntN(n, BigInt(`0x${t}`));
11
+ return parseInt(e.toString());
12
+ }
13
+
14
+ exports.HexToSigned = t;
@@ -0,0 +1,8 @@
1
+ function t(t) {
2
+ if (t.startsWith("0x") || t.startsWith("0X")) t = parseInt(t, 16).toString(16);
3
+ const n = t.length * 4;
4
+ const r = BigInt.asIntN(n, BigInt(`0x${t}`));
5
+ return parseInt(r.toString());
6
+ }
7
+
8
+ export { t as HexToSigned };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ function t(t) {
8
+ if (t.startsWith("0x") || t.startsWith("0X")) t = parseInt(t, 16).toString(16);
9
+ const e = BigInt(`0x${t}`);
10
+ return parseInt(e.toString());
11
+ }
12
+
13
+ exports.HexToUnsigned = t;
@@ -0,0 +1,7 @@
1
+ function t(t) {
2
+ if (t.startsWith("0x") || t.startsWith("0X")) t = parseInt(t, 16).toString(16);
3
+ const n = BigInt(`0x${t}`);
4
+ return parseInt(n.toString());
5
+ }
6
+
7
+ export { t as HexToUnsigned };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ const e = require("../base/internal/IEEE754.cjs");
8
+
9
+ function t(t, r = 32) {
10
+ const o = Buffer.alloc(r / 8);
11
+ e.writeIEEE754(o, t, 0, false, o.length === 4 ? 23 : 52, o.length);
12
+ return o.toString("hex").toUpperCase();
13
+ }
14
+
15
+ exports.IEEE754ToHex = t;
@@ -0,0 +1,9 @@
1
+ import { writeIEEE754 as e } from "../base/internal/IEEE754.mjs";
2
+
3
+ function t(t, n = 32) {
4
+ const r = Buffer.alloc(n / 8);
5
+ e(r, t, 0, false, r.length === 4 ? 23 : 52, r.length);
6
+ return r.toString("hex").toUpperCase();
7
+ }
8
+
9
+ export { t as IEEE754ToHex };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ function t(t, e = 32) {
8
+ const n = (BigInt(2) ** BigInt(e) + BigInt(t)).toString(16).toUpperCase();
9
+ return t < 0 ? n : n.slice(1);
10
+ }
11
+
12
+ exports.SignedToHex = t;
@@ -0,0 +1,6 @@
1
+ function t(t, n = 32) {
2
+ const i = (BigInt(2) ** BigInt(n) + BigInt(t)).toString(16).toUpperCase();
3
+ return t < 0 ? i : i.slice(1);
4
+ }
5
+
6
+ export { t as SignedToHex };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, {
4
+ value: "Module"
5
+ });
6
+
7
+ function t(t, e = 32) {
8
+ return BigInt(t).toString(16).toUpperCase().padStart(e / 4, "0");
9
+ }
10
+
11
+ exports.UnsignedToHex = t;
@@ -0,0 +1,5 @@
1
+ function t(t, r = 32) {
2
+ return BigInt(t).toString(16).toUpperCase().padStart(r / 4, "0");
3
+ }
4
+
5
+ export { t as UnsignedToHex };
@@ -29640,24 +29640,26 @@ function vE() {
29640
29640
 
29641
29641
  var IE = {};
29642
29642
 
29643
- "use strict";
29644
-
29645
- Object.defineProperty(IE, "__esModule", {
29646
- value: true
29647
- });
29648
-
29649
- var ME = IE.ColumnTypeUndefinedError = void 0;
29643
+ var ME;
29650
29644
 
29651
- const wE = yp;
29652
-
29653
- class ColumnTypeUndefinedError extends wE.TypeORMError {
29654
- constructor(e, t) {
29655
- super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
29656
- }
29645
+ function wE() {
29646
+ if (ME) return IE;
29647
+ ME = 1;
29648
+ "use strict";
29649
+ Object.defineProperty(IE, "__esModule", {
29650
+ value: true
29651
+ });
29652
+ IE.ColumnTypeUndefinedError = void 0;
29653
+ const e = yp;
29654
+ let t = class ColumnTypeUndefinedError extends e.TypeORMError {
29655
+ constructor(e, t) {
29656
+ super(`Column type for ${e.constructor.name}#${t} is not defined and cannot be guessed. ` + `Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` + `Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` + `If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
29657
+ }
29658
+ };
29659
+ IE.ColumnTypeUndefinedError = t;
29660
+ return IE;
29657
29661
  }
29658
29662
 
29659
- ME = IE.ColumnTypeUndefinedError = ColumnTypeUndefinedError;
29660
-
29661
29663
  var DE = {};
29662
29664
 
29663
29665
  var LE;
@@ -29828,7 +29830,7 @@ function YE() {
29828
29830
  t.__exportStar(bE(), e);
29829
29831
  t.__exportStar(AE(), e);
29830
29832
  t.__exportStar(vE(), e);
29831
- t.__exportStar(IE, e);
29833
+ t.__exportStar(wE(), e);
29832
29834
  t.__exportStar(PE(), e);
29833
29835
  t.__exportStar(xE, e);
29834
29836
  t.__exportStar($E(), e);
@@ -72385,8 +72387,6 @@ function wB() {
72385
72387
 
72386
72388
  exports.Brackets = kg;
72387
72389
 
72388
- exports.ColumnTypeUndefinedError = IE;
72389
-
72390
72390
  exports.DefaultNamingStrategy = rb;
72391
72391
 
72392
72392
  exports.EventListenerTypes = Dk;
@@ -72403,6 +72403,8 @@ exports.error = gp;
72403
72403
 
72404
72404
  exports.requireAbstractRepository = pN;
72405
72405
 
72406
+ exports.requireColumnTypeUndefinedError = wE;
72407
+
72406
72408
  exports.requireDataSource = OB;
72407
72409
 
72408
72410
  exports.requireEntityManager = WC;