lakutata 2.0.32 → 2.0.34

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
@@ -44,11 +44,11 @@ const I = require("./src/lib/helpers/ObjectConstructor.cjs");
44
44
 
45
45
  const g = require("./src/lib/helpers/ObjectHash.cjs");
46
46
 
47
- const S = require("./src/lib/helpers/ObjectParentConstructor.cjs");
47
+ const d = require("./src/lib/helpers/ObjectParentConstructor.cjs");
48
48
 
49
- const y = require("./src/lib/helpers/ObjectParentConstructors.cjs");
49
+ const S = require("./src/lib/helpers/ObjectParentConstructors.cjs");
50
50
 
51
- const d = require("./src/lib/helpers/ObjectPrototype.cjs");
51
+ const y = require("./src/lib/helpers/ObjectPrototype.cjs");
52
52
 
53
53
  const T = require("./src/lib/helpers/SetToArray.cjs");
54
54
 
@@ -72,9 +72,9 @@ const k = require("./src/lib/helpers/MergeMap.cjs");
72
72
 
73
73
  const C = require("./src/lib/helpers/SortArray.cjs");
74
74
 
75
- const D = require("./src/lib/helpers/SortKeys.cjs");
75
+ const L = require("./src/lib/helpers/SortKeys.cjs");
76
76
 
77
- const L = require("./src/lib/helpers/SortObject.cjs");
77
+ const D = require("./src/lib/helpers/SortObject.cjs");
78
78
 
79
79
  const N = require("./src/lib/helpers/RandomString.cjs");
80
80
 
@@ -82,21 +82,21 @@ const G = require("./src/lib/helpers/NonceStr.cjs");
82
82
 
83
83
  const U = require("./src/lib/helpers/IsAbortError.cjs");
84
84
 
85
- const f = require("./src/lib/helpers/Glob.cjs");
85
+ const R = require("./src/lib/helpers/Glob.cjs");
86
86
 
87
- const V = require("./src/lib/helpers/IPToolkit.cjs");
87
+ const f = require("./src/lib/helpers/IPToolkit.cjs");
88
88
 
89
- const K = require("./src/lib/helpers/HexToUnsigned.cjs");
89
+ const V = require("./src/lib/helpers/HexToUnsigned.cjs");
90
90
 
91
- const w = require("./src/lib/helpers/UnsignedToHex.cjs");
91
+ const B = require("./src/lib/helpers/UnsignedToHex.cjs");
92
92
 
93
- const F = require("./src/lib/helpers/HexToSigned.cjs");
93
+ const K = require("./src/lib/helpers/HexToSigned.cjs");
94
94
 
95
- const R = require("./src/lib/helpers/SignedToHex.cjs");
95
+ const w = require("./src/lib/helpers/SignedToHex.cjs");
96
96
 
97
- const X = require("./src/lib/helpers/HexToIEEE754.cjs");
97
+ const F = require("./src/lib/helpers/HexToIEEE754.cjs");
98
98
 
99
- const B = require("./src/lib/helpers/IEEE754ToHex.cjs");
99
+ const X = require("./src/lib/helpers/IEEE754ToHex.cjs");
100
100
 
101
101
  const W = require("./src/lib/helpers/MD5.cjs");
102
102
 
@@ -104,6 +104,8 @@ const _ = require("./src/lib/helpers/SHA1.cjs");
104
104
 
105
105
  const z = require("./src/lib/helpers/SHA256.cjs");
106
106
 
107
+ const J = require("./src/lib/helpers/URLBuilder.cjs");
108
+
107
109
  require("./vendor/Package.5.cjs");
108
110
 
109
111
  require("fs");
@@ -210,11 +212,11 @@ exports.ObjectConstructor = I.ObjectConstructor;
210
212
 
211
213
  exports.ObjectHash = g.ObjectHash;
212
214
 
213
- exports.ObjectParentConstructor = S.ObjectParentConstructor;
215
+ exports.ObjectParentConstructor = d.ObjectParentConstructor;
214
216
 
215
- exports.ObjectParentConstructors = y.ObjectParentConstructors;
217
+ exports.ObjectParentConstructors = S.ObjectParentConstructors;
216
218
 
217
- exports.ObjectPrototype = d.ObjectPrototype;
219
+ exports.ObjectPrototype = y.ObjectPrototype;
218
220
 
219
221
  exports.SetToArray = T.SetToArray;
220
222
 
@@ -240,9 +242,9 @@ exports.MergeMap = k.MergeMap;
240
242
 
241
243
  exports.SortArray = C.SortArray;
242
244
 
243
- exports.SortKeys = D.SortKeys;
245
+ exports.SortKeys = L.SortKeys;
244
246
 
245
- exports.SortObject = L.SortObject;
247
+ exports.SortObject = D.SortObject;
246
248
 
247
249
  exports.RandomString = N.RandomString;
248
250
 
@@ -250,28 +252,30 @@ exports.NonceStr = G.NonceStr;
250
252
 
251
253
  exports.IsAbortError = U.IsAbortError;
252
254
 
253
- exports.Glob = f.Glob;
255
+ exports.Glob = R.Glob;
254
256
 
255
- exports.IP = V.IP;
257
+ exports.IP = f.IP;
256
258
 
257
- exports.IPv4 = V.IPv4;
259
+ exports.IPv4 = f.IPv4;
258
260
 
259
- exports.IPv6 = V.IPv6;
261
+ exports.IPv6 = f.IPv6;
260
262
 
261
- exports.HexToUnsigned = K.HexToUnsigned;
263
+ exports.HexToUnsigned = V.HexToUnsigned;
262
264
 
263
- exports.UnsignedToHex = w.UnsignedToHex;
265
+ exports.UnsignedToHex = B.UnsignedToHex;
264
266
 
265
- exports.HexToSigned = F.HexToSigned;
267
+ exports.HexToSigned = K.HexToSigned;
266
268
 
267
- exports.SignedToHex = R.SignedToHex;
269
+ exports.SignedToHex = w.SignedToHex;
268
270
 
269
- exports.HexToIEEE754 = X.HexToIEEE754;
271
+ exports.HexToIEEE754 = F.HexToIEEE754;
270
272
 
271
- exports.IEEE754ToHex = B.IEEE754ToHex;
273
+ exports.IEEE754ToHex = X.IEEE754ToHex;
272
274
 
273
275
  exports.MD5 = W.MD5;
274
276
 
275
277
  exports.SHA1 = _.SHA1;
276
278
 
277
279
  exports.SHA256 = z.SHA256;
280
+
281
+ exports.URLBuilder = J.URLBuilder;
package/helper.d.ts CHANGED
@@ -4379,5 +4379,40 @@ declare function SHA1(message: string): Buffer;
4379
4379
  */
4380
4380
  declare function SHA256(message: string): Buffer;
4381
4381
 
4382
- export { ArrayToSet, As, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Templating, ToLower, ToUpper, UniqueArray, UnsignedToHex };
4383
- export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions };
4382
+ interface URLAttributes {
4383
+ auth?: string;
4384
+ hash?: string;
4385
+ host?: string;
4386
+ hostname?: string;
4387
+ href?: string;
4388
+ origin?: string;
4389
+ password?: string;
4390
+ pathname?: string;
4391
+ port?: string;
4392
+ protocol?: string;
4393
+ query?: Record<string, string>;
4394
+ slashes?: boolean;
4395
+ username?: string;
4396
+ }
4397
+ declare class URLBuilder {
4398
+ #private;
4399
+ static parse(url: string): URLBuilder;
4400
+ auth?: string;
4401
+ hash?: string;
4402
+ host?: string;
4403
+ hostname?: string;
4404
+ href?: string;
4405
+ origin?: string;
4406
+ password?: string;
4407
+ pathname?: string;
4408
+ port?: string | number;
4409
+ protocol?: string;
4410
+ query?: Record<string, string>;
4411
+ slashes?: boolean;
4412
+ username?: string;
4413
+ constructor(options?: URLAttributes);
4414
+ toString(): string;
4415
+ }
4416
+
4417
+ export { ArrayToSet, As, ConvertArrayLikeToIterable, ConvertArrayLikeToStream, Delay, DevNull, GetObjectNestingDepth, GetObjectPropertyPaths, Glob, GraceExit, HexToIEEE754, HexToSigned, HexToUnsigned, IEEE754ToHex, IP, IPv4, IPv6, IsAbortError, IsEmptyObject, IsExists, IsGlobString, IsHtml, IsNativeFunction, IsPath, IsPromise, IsPromiseLike, IsSymbol, IsXML, MD5, MergeArray, MergeMap, MergeSet, MissingValueError, NoCase, NonceStr, ObjectConstructor, ObjectHash, ObjectParentConstructor, ObjectParentConstructors, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Templating, ToLower, ToUpper, URLBuilder, UniqueArray, UnsignedToHex };
4418
+ export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes };
package/helper.mjs CHANGED
@@ -98,6 +98,8 @@ export { SHA1 } from "./src/lib/helpers/SHA1.mjs";
98
98
 
99
99
  export { SHA256 } from "./src/lib/helpers/SHA256.mjs";
100
100
 
101
+ export { URLBuilder } from "./src/lib/helpers/URLBuilder.mjs";
102
+
101
103
  import "./vendor/Package.5.mjs";
102
104
 
103
105
  import "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakutata",
3
- "version": "2.0.32",
3
+ "version": "2.0.34",
4
4
  "description": "An IoC-based universal application framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "DELETE", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "delete", i) : e.HTTPAction(r, "delete");
83
83
  }
84
84
 
85
85
  exports.DELETE = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "DELETE", r) : t(e, "GET");
76
+ return r ? t(e, "delete", r) : t(e, "delete");
77
77
  }
78
78
 
79
79
  export { e as DELETE };
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "GET", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "get", i) : e.HTTPAction(r, "get");
83
83
  }
84
84
 
85
85
  exports.GET = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "GET", r) : t(e, "GET");
76
+ return r ? t(e, "get", r) : t(e, "get");
77
77
  }
78
78
 
79
79
  export { e as GET };
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "HEAD", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "head", i) : e.HTTPAction(r, "head");
83
83
  }
84
84
 
85
85
  exports.HEAD = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "HEAD", r) : t(e, "GET");
76
+ return r ? t(e, "head", r) : t(e, "head");
77
77
  }
78
78
 
79
79
  export { e as HEAD };
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "OPTIONS", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "options", i) : e.HTTPAction(r, "options");
83
83
  }
84
84
 
85
85
  exports.OPTIONS = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "OPTIONS", r) : t(e, "GET");
76
+ return r ? t(e, "options", r) : t(e, "options");
77
77
  }
78
78
 
79
79
  export { e as OPTIONS };
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "PATCH", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "patch", i) : e.HTTPAction(r, "patch");
83
83
  }
84
84
 
85
85
  exports.PATCH = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "PATCH", r) : t(e, "GET");
76
+ return r ? t(e, "patch", r) : t(e, "patch");
77
77
  }
78
78
 
79
79
  export { e as PATCH };
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "POST", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "post", i) : e.HTTPAction(r, "post");
83
83
  }
84
84
 
85
85
  exports.POST = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "POST", r) : t(e, "GET");
76
+ return r ? t(e, "post", r) : t(e, "post");
77
77
  }
78
78
 
79
79
  export { e as POST };
@@ -79,7 +79,7 @@ require("../../../lib/helpers/ObjectPrototype.cjs");
79
79
  require("../../dto/IndexSignature.cjs");
80
80
 
81
81
  function r(r, i) {
82
- return i ? e.HTTPAction(r, "PUT", i) : e.HTTPAction(r, "GET");
82
+ return i ? e.HTTPAction(r, "put", i) : e.HTTPAction(r, "put");
83
83
  }
84
84
 
85
85
  exports.PUT = r;
@@ -73,7 +73,7 @@ import "../../../lib/helpers/ObjectPrototype.mjs";
73
73
  import "../../dto/IndexSignature.mjs";
74
74
 
75
75
  function e(e, r) {
76
- return r ? t(e, "PUT", r) : t(e, "GET");
76
+ return r ? t(e, "put", r) : t(e, "put");
77
77
  }
78
78
 
79
79
  export { e as PUT };