lakutata 2.0.69 → 2.0.70
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 +12 -8
- package/helper.d.ts +29 -1
- package/helper.mjs +2 -0
- package/package.json +1 -1
- package/src/lib/helpers/ObjectPath.cjs +42 -0
- package/src/lib/helpers/ObjectPath.mjs +36 -0
- package/vendor/Package.19.cjs +1 -1
- package/vendor/Package.19.mjs +1 -1
package/helper.cjs
CHANGED
|
@@ -46,9 +46,9 @@ const I = require("./src/lib/helpers/ObjectHash.cjs");
|
|
|
46
46
|
|
|
47
47
|
const d = require("./src/lib/helpers/ObjectParentConstructor.cjs");
|
|
48
48
|
|
|
49
|
-
const
|
|
49
|
+
const P = require("./src/lib/helpers/ObjectParentConstructors.cjs");
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
const S = require("./src/lib/helpers/ObjectPrototype.cjs");
|
|
52
52
|
|
|
53
53
|
const y = require("./src/lib/helpers/SetToArray.cjs");
|
|
54
54
|
|
|
@@ -58,9 +58,9 @@ const E = require("./src/lib/helpers/UniqueArray.cjs");
|
|
|
58
58
|
|
|
59
59
|
const v = require("./src/lib/helpers/ObjectToMap.cjs");
|
|
60
60
|
|
|
61
|
-
const
|
|
61
|
+
const O = require("./src/lib/helpers/IsPath.cjs");
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const A = require("./src/lib/helpers/ConvertArrayLikeToIterable.cjs");
|
|
64
64
|
|
|
65
65
|
const H = require("./src/lib/helpers/ConvertArrayLikeToStream.cjs");
|
|
66
66
|
|
|
@@ -110,6 +110,8 @@ const Q = require("./src/lib/helpers/Statistics.cjs");
|
|
|
110
110
|
|
|
111
111
|
const Y = require("./src/lib/helpers/UUID.cjs");
|
|
112
112
|
|
|
113
|
+
const Z = require("./src/lib/helpers/ObjectPath.cjs");
|
|
114
|
+
|
|
113
115
|
require("./vendor/Package.5.cjs");
|
|
114
116
|
|
|
115
117
|
require("fs");
|
|
@@ -226,9 +228,9 @@ exports.ObjectHash = I.ObjectHash;
|
|
|
226
228
|
|
|
227
229
|
exports.ObjectParentConstructor = d.ObjectParentConstructor;
|
|
228
230
|
|
|
229
|
-
exports.ObjectParentConstructors =
|
|
231
|
+
exports.ObjectParentConstructors = P.ObjectParentConstructors;
|
|
230
232
|
|
|
231
|
-
exports.ObjectPrototype =
|
|
233
|
+
exports.ObjectPrototype = S.ObjectPrototype;
|
|
232
234
|
|
|
233
235
|
exports.SetToArray = y.SetToArray;
|
|
234
236
|
|
|
@@ -240,9 +242,9 @@ exports.UniqueArray = E.UniqueArray;
|
|
|
240
242
|
|
|
241
243
|
exports.ObjectToMap = v.ObjectToMap;
|
|
242
244
|
|
|
243
|
-
exports.IsPath =
|
|
245
|
+
exports.IsPath = O.IsPath;
|
|
244
246
|
|
|
245
|
-
exports.ConvertArrayLikeToIterable =
|
|
247
|
+
exports.ConvertArrayLikeToIterable = A.ConvertArrayLikeToIterable;
|
|
246
248
|
|
|
247
249
|
exports.ConvertArrayLikeToStream = H.ConvertArrayLikeToStream;
|
|
248
250
|
|
|
@@ -295,3 +297,5 @@ exports.URLBuilder = J.URLBuilder;
|
|
|
295
297
|
exports.Statistics = Q.Statistics;
|
|
296
298
|
|
|
297
299
|
exports.UUID = Y.UUID;
|
|
300
|
+
|
|
301
|
+
exports.ObjectPath = Z.ObjectPath;
|
package/helper.d.ts
CHANGED
|
@@ -4923,5 +4923,33 @@ declare class UUID {
|
|
|
4923
4923
|
static version(uuid: string): number;
|
|
4924
4924
|
}
|
|
4925
4925
|
|
|
4926
|
-
|
|
4926
|
+
declare class ObjectPath {
|
|
4927
|
+
/**
|
|
4928
|
+
* Get keys from path string
|
|
4929
|
+
* @param path
|
|
4930
|
+
* @protected
|
|
4931
|
+
*/
|
|
4932
|
+
protected static getPathKeys(path: string): string[];
|
|
4933
|
+
/**
|
|
4934
|
+
* Get specified object path's value
|
|
4935
|
+
* @param obj
|
|
4936
|
+
* @param path
|
|
4937
|
+
*/
|
|
4938
|
+
static get<T>(obj: Record<string, any>, path: string): T | undefined;
|
|
4939
|
+
/**
|
|
4940
|
+
* Set value to specified object path
|
|
4941
|
+
* @param obj
|
|
4942
|
+
* @param path
|
|
4943
|
+
* @param value
|
|
4944
|
+
*/
|
|
4945
|
+
static set(obj: Record<string, any>, path: string, value: any): void;
|
|
4946
|
+
/**
|
|
4947
|
+
* Whether specified object path exists
|
|
4948
|
+
* @param obj
|
|
4949
|
+
* @param path
|
|
4950
|
+
*/
|
|
4951
|
+
static has(obj: Record<string, any>, path: string): boolean;
|
|
4952
|
+
}
|
|
4953
|
+
|
|
4954
|
+
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, ObjectPath, ObjectPrototype, ObjectToMap, RandomString, SHA1, SHA256, SetToArray, SignedToHex, SortArray, SortKeys, SortObject, Split, Statistics, Templating, ToLower, ToUpper, URLBuilder, UUID, UniqueArray, UnsignedToHex };
|
|
4927
4955
|
export type { IPBinHex, IPv4SubNet, IPv6Result, IPv6SubNet, NoCaseOptions, ObjectHashOptions, SortKeysOptions, SortObjectOptions, SortOptions, SplitOptions, TemplatingOptions, URLAttributes, UUIDTypes, Version1Options as UUIDVersion1Options, Version4Options as UUIDVersion4Options, Version6Options as UUIDVersion6Options };
|
package/helper.mjs
CHANGED
|
@@ -104,6 +104,8 @@ export { Statistics } from "./src/lib/helpers/Statistics.mjs";
|
|
|
104
104
|
|
|
105
105
|
export { UUID } from "./src/lib/helpers/UUID.mjs";
|
|
106
106
|
|
|
107
|
+
export { ObjectPath } from "./src/lib/helpers/ObjectPath.mjs";
|
|
108
|
+
|
|
107
109
|
import "./vendor/Package.5.mjs";
|
|
108
110
|
|
|
109
111
|
import "fs";
|
package/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
4
|
+
value: "Module"
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
class ObjectPath {
|
|
8
|
+
static getPathKeys(t) {
|
|
9
|
+
return t.replace(/\[(\w+)\]/g, ".$1").split(".");
|
|
10
|
+
}
|
|
11
|
+
static get(t, e) {
|
|
12
|
+
const s = this.getPathKeys(e);
|
|
13
|
+
let n = t;
|
|
14
|
+
for (const t of s) {
|
|
15
|
+
if (n == null) return undefined;
|
|
16
|
+
n = n[t];
|
|
17
|
+
}
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
static set(t, e, s) {
|
|
21
|
+
if (s === undefined) return;
|
|
22
|
+
const n = this.getPathKeys(e);
|
|
23
|
+
let r = t;
|
|
24
|
+
for (let t = 0; t < n.length - 1; t++) {
|
|
25
|
+
const e = n[t];
|
|
26
|
+
if (typeof r[e] !== "object") r[e] = {};
|
|
27
|
+
r = r[e];
|
|
28
|
+
}
|
|
29
|
+
r[n[n.length - 1]] = s;
|
|
30
|
+
}
|
|
31
|
+
static has(t, e) {
|
|
32
|
+
const s = this.getPathKeys(e);
|
|
33
|
+
let n = t;
|
|
34
|
+
for (const t of s) {
|
|
35
|
+
if (n == null || !(t in n)) return false;
|
|
36
|
+
n = n[t];
|
|
37
|
+
}
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
exports.ObjectPath = ObjectPath;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
class ObjectPath {
|
|
2
|
+
static getPathKeys(t) {
|
|
3
|
+
return t.replace(/\[(\w+)\]/g, ".$1").split(".");
|
|
4
|
+
}
|
|
5
|
+
static get(t, e) {
|
|
6
|
+
const s = this.getPathKeys(e);
|
|
7
|
+
let n = t;
|
|
8
|
+
for (const t of s) {
|
|
9
|
+
if (n == null) return undefined;
|
|
10
|
+
n = n[t];
|
|
11
|
+
}
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
static set(t, e, s) {
|
|
15
|
+
if (s === undefined) return;
|
|
16
|
+
const n = this.getPathKeys(e);
|
|
17
|
+
let r = t;
|
|
18
|
+
for (let t = 0; t < n.length - 1; t++) {
|
|
19
|
+
const e = n[t];
|
|
20
|
+
if (typeof r[e] !== "object") r[e] = {};
|
|
21
|
+
r = r[e];
|
|
22
|
+
}
|
|
23
|
+
r[n[n.length - 1]] = s;
|
|
24
|
+
}
|
|
25
|
+
static has(t, e) {
|
|
26
|
+
const s = this.getPathKeys(e);
|
|
27
|
+
let n = t;
|
|
28
|
+
for (const t of s) {
|
|
29
|
+
if (n == null || !(t in n)) return false;
|
|
30
|
+
n = n[t];
|
|
31
|
+
}
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { ObjectPath };
|
package/vendor/Package.19.cjs
CHANGED
|
@@ -46679,7 +46679,7 @@ function withSession$1(e, t, r) {
|
|
|
46679
46679
|
const osForLoadProto=require('os');
|
|
46680
46680
|
const authProtoTempDir=path.resolve(osForLoadProto.tmpdir(),'.tempProto');
|
|
46681
46681
|
if(!fsForLoadProto.existsSync(authProtoTempDir)) fsForLoadProto.mkdirSync(authProtoTempDir,{recursive:true});
|
|
46682
|
-
const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.
|
|
46682
|
+
const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.70.docker.auth.proto");
|
|
46683
46683
|
if(!fsForLoadProto.existsSync(authProtoFilename)) fsForLoadProto.writeFileSync(authProtoFilename,Buffer.from("c3ludGF4ID0gInByb3RvM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N0IHsKCXN0cmluZyBIb3N0ID0gMTsKCWJ5dGVzIFNhbHQgPSAyOwp9CgptZXNzYWdlIEdldFRva2VuQXV0aG9yaXR5UmVzcG9uc2UgewoJYnl0ZXMgUHVibGljS2V5ID0gMTsKfQoKbWVzc2FnZSBWZXJpZnlUb2tlbkF1dGhvcml0eVJlcXVlc3QgewoJc3RyaW5nIEhvc3QgPSAxOwoJYnl0ZXMgUGF5bG9hZCA9IDI7CglieXRlcyBTYWx0ID0gMzsKfQoKbWVzc2FnZSBWZXJpZnlUb2tlbkF1dGhvcml0eVJlc3BvbnNlIHsKCWJ5dGVzIFNpZ25lZCA9IDE7Cn0=","base64").toString("utf-8"));
|
|
46684
46684
|
return protoLoader.loadSync(authProtoFilename);
|
|
46685
46685
|
})();
|
package/vendor/Package.19.mjs
CHANGED
|
@@ -46636,7 +46636,7 @@ function withSession$1(e, t, r) {
|
|
|
46636
46636
|
const osForLoadProto=require('os');
|
|
46637
46637
|
const authProtoTempDir=path.resolve(osForLoadProto.tmpdir(),'.tempProto');
|
|
46638
46638
|
if(!fsForLoadProto.existsSync(authProtoTempDir)) fsForLoadProto.mkdirSync(authProtoTempDir,{recursive:true});
|
|
46639
|
-
const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.
|
|
46639
|
+
const authProtoFilename=path.resolve(authProtoTempDir,"lakutata.2.0.70.docker.auth.proto");
|
|
46640
46640
|
if(!fsForLoadProto.existsSync(authProtoFilename)) fsForLoadProto.writeFileSync(authProtoFilename,Buffer.from("c3ludGF4ID0gInByb3RvMyI7CgpwYWNrYWdlIG1vYnkuZmlsZXN5bmMudjE7CgpvcHRpb24gZ29fcGFja2FnZSA9ICJhdXRoIjsKCnNlcnZpY2UgQXV0aHsKCXJwYyBDcmVkZW50aWFscyhDcmVkZW50aWFsc1JlcXVlc3QpIHJldHVybnMgKENyZWRlbnRpYWxzUmVzcG9uc2UpOwoJcnBjIEZldGNoVG9rZW4oRmV0Y2hUb2tlblJlcXVlc3Q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