lakutata 2.0.81 → 2.0.83
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/com/docker.cjs +1 -1
- package/com/docker.mjs +1 -1
- package/decorator/orm.cjs +84 -84
- package/decorator/orm.mjs +42 -128
- package/orm.cjs +873 -1410
- package/orm.mjs +708 -1458
- package/package.json +1 -1
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +230 -239
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +230 -239
- package/src/components/docker/ConnectionOptionsBuilder.cjs +1 -1
- package/src/components/docker/ConnectionOptionsBuilder.mjs +1 -1
- package/src/components/docker/Docker.cjs +4919 -4808
- package/src/components/docker/Docker.mjs +4939 -4828
- package/src/components/docker/lib/DockerContainer.cjs +1 -1
- package/src/components/docker/lib/DockerContainer.mjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/components/entrypoint/Entrypoint.cjs +1669 -2159
- package/src/components/entrypoint/Entrypoint.mjs +1629 -2119
- package/src/decorators/orm/AfterInsert.cjs +26 -4
- package/src/decorators/orm/AfterInsert.mjs +25 -5
- package/src/decorators/orm/AfterLoad.cjs +26 -4
- package/src/decorators/orm/AfterLoad.mjs +25 -5
- package/src/decorators/orm/AfterRecover.cjs +26 -4
- package/src/decorators/orm/AfterRecover.mjs +25 -5
- package/src/decorators/orm/AfterRemove.cjs +26 -4
- package/src/decorators/orm/AfterRemove.mjs +25 -5
- package/src/decorators/orm/AfterSoftRemove.cjs +26 -4
- package/src/decorators/orm/AfterSoftRemove.mjs +25 -5
- package/src/decorators/orm/AfterUpdate.cjs +26 -4
- package/src/decorators/orm/AfterUpdate.mjs +25 -5
- package/src/decorators/orm/BeforeInsert.cjs +26 -4
- package/src/decorators/orm/BeforeInsert.mjs +25 -5
- package/src/decorators/orm/BeforeRecover.cjs +26 -4
- package/src/decorators/orm/BeforeRecover.mjs +25 -5
- package/src/decorators/orm/BeforeRemove.cjs +26 -4
- package/src/decorators/orm/BeforeRemove.mjs +25 -5
- package/src/decorators/orm/BeforeSoftRemove.cjs +26 -4
- package/src/decorators/orm/BeforeSoftRemove.mjs +25 -5
- package/src/decorators/orm/BeforeUpdate.cjs +26 -4
- package/src/decorators/orm/BeforeUpdate.mjs +25 -5
- package/src/decorators/orm/Check.cjs +29 -4
- package/src/decorators/orm/Check.mjs +28 -5
- package/src/decorators/orm/ChildEntity.cjs +29 -4
- package/src/decorators/orm/ChildEntity.mjs +28 -5
- package/src/decorators/orm/Column.cjs +61 -4
- package/src/decorators/orm/Column.mjs +61 -6
- package/src/decorators/orm/CreateDateColumn.cjs +25 -4
- package/src/decorators/orm/CreateDateColumn.mjs +24 -5
- package/src/decorators/orm/DeleteDateColumn.cjs +25 -4
- package/src/decorators/orm/DeleteDateColumn.mjs +23 -4
- package/src/decorators/orm/Entity.cjs +35 -4
- package/src/decorators/orm/Entity.mjs +33 -4
- package/src/decorators/orm/EventSubscriber.cjs +22 -4
- package/src/decorators/orm/EventSubscriber.mjs +21 -5
- package/src/decorators/orm/Exclusion.cjs +29 -4
- package/src/decorators/orm/Exclusion.mjs +28 -5
- package/src/decorators/orm/Generated.cjs +24 -4
- package/src/decorators/orm/Generated.mjs +23 -5
- package/src/decorators/orm/Index.cjs +41 -4
- package/src/decorators/orm/Index.mjs +41 -6
- package/src/decorators/orm/JoinColumn.cjs +29 -4
- package/src/decorators/orm/JoinColumn.mjs +28 -5
- package/src/decorators/orm/JoinTable.cjs +30 -4
- package/src/decorators/orm/JoinTable.mjs +28 -4
- package/src/decorators/orm/ManyToMany.cjs +42 -4
- package/src/decorators/orm/ManyToMany.mjs +40 -4
- package/src/decorators/orm/ManyToOne.cjs +42 -4
- package/src/decorators/orm/ManyToOne.mjs +40 -4
- package/src/decorators/orm/ObjectIdColumn.cjs +28 -4
- package/src/decorators/orm/ObjectIdColumn.mjs +27 -5
- package/src/decorators/orm/OneToMany.cjs +34 -4
- package/src/decorators/orm/OneToMany.mjs +34 -6
- package/src/decorators/orm/OneToOne.cjs +42 -4
- package/src/decorators/orm/OneToOne.mjs +40 -4
- package/src/decorators/orm/PrimaryColumn.cjs +49 -4
- package/src/decorators/orm/PrimaryColumn.mjs +49 -6
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +54 -4
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +54 -6
- package/src/decorators/orm/RelationId.cjs +26 -4
- package/src/decorators/orm/RelationId.mjs +25 -5
- package/src/decorators/orm/TableInheritance.cjs +26 -4
- package/src/decorators/orm/TableInheritance.mjs +25 -5
- package/src/decorators/orm/Tree.cjs +24 -4
- package/src/decorators/orm/Tree.mjs +23 -5
- package/src/decorators/orm/TreeChildren.cjs +31 -4
- package/src/decorators/orm/TreeChildren.mjs +29 -4
- package/src/decorators/orm/TreeLevelColumn.cjs +25 -4
- package/src/decorators/orm/TreeLevelColumn.mjs +23 -4
- package/src/decorators/orm/TreeParent.cjs +31 -4
- package/src/decorators/orm/TreeParent.mjs +29 -4
- package/src/decorators/orm/Unique.cjs +44 -4
- package/src/decorators/orm/Unique.mjs +44 -6
- package/src/decorators/orm/UpdateDateColumn.cjs +25 -4
- package/src/decorators/orm/UpdateDateColumn.mjs +24 -5
- package/src/decorators/orm/VersionColumn.cjs +25 -4
- package/src/decorators/orm/VersionColumn.mjs +24 -5
- package/src/decorators/orm/ViewColumn.cjs +25 -4
- package/src/decorators/orm/ViewColumn.mjs +24 -5
- package/src/decorators/orm/ViewEntity.cjs +34 -4
- package/src/decorators/orm/ViewEntity.mjs +33 -5
- package/src/decorators/orm/VirtualColumn.cjs +42 -4
- package/src/decorators/orm/VirtualColumn.mjs +40 -4
- package/src/lib/base/EventEmitter.cjs +1193 -1200
- package/src/lib/base/EventEmitter.mjs +1194 -1201
- package/src/lib/base/internal/DataValidator.cjs +185 -174
- package/src/lib/base/internal/DataValidator.mjs +186 -175
- package/src/lib/base/internal/PatternManager.cjs +735 -740
- package/src/lib/base/internal/PatternManager.mjs +740 -745
- package/src/lib/core/Application.cjs +99 -112
- package/src/lib/core/Application.mjs +127 -140
- package/src/lib/helpers/IsHtml.cjs +13 -7
- package/src/lib/helpers/IsHtml.mjs +13 -7
- package/src/lib/helpers/IsXML.cjs +1016 -1158
- package/src/lib/helpers/IsXML.mjs +729 -871
- package/src/lib/helpers/ObjectHash.cjs +371 -378
- package/src/lib/helpers/ObjectHash.mjs +371 -378
- package/src/lib/helpers/RandomString.cjs +146 -167
- package/src/lib/helpers/RandomString.mjs +145 -166
- package/src/lib/helpers/URLBuilder.cjs +355 -355
- package/src/lib/helpers/URLBuilder.mjs +350 -350
- package/src/lib/ioc/ListModules.cjs +5237 -5160
- package/src/lib/ioc/ListModules.mjs +5252 -5175
- package/src/lib/validation/VLD.cjs +3903 -4080
- package/src/lib/validation/VLD.mjs +2793 -2970
- package/src/providers/migration/GenerateMigration.cjs +2 -2
- package/src/providers/migration/GenerateMigration.mjs +2 -2
- package/vendor/Package.112.cjs +38321 -38240
- package/vendor/Package.112.mjs +37720 -37579
- package/vendor/Package.16.cjs +7386 -7268
- package/vendor/Package.16.mjs +6706 -6588
- package/vendor/Package.18.cjs +48229 -20
- package/vendor/Package.18.mjs +48192 -24
- package/vendor/Package.2.cjs +5698 -5727
- package/vendor/Package.2.mjs +5707 -5736
- package/vendor/Package.4.cjs +874 -884
- package/vendor/Package.4.mjs +874 -884
- package/vendor/Package.5.cjs +11 -15
- package/vendor/Package.5.mjs +7 -11
- package/vendor/Package.6.cjs +511 -520
- package/vendor/Package.6.mjs +534 -543
- package/vendor/Package.62.cjs +87 -90
- package/vendor/Package.62.mjs +180 -183
- package/vendor/Package.65.cjs +1285 -1292
- package/vendor/Package.65.mjs +190 -197
- package/vendor/Package.68.cjs +111 -252
- package/vendor/Package.68.mjs +134 -268
- package/vendor/Package.9.cjs +118 -132
- package/vendor/Package.9.mjs +124 -138
- package/vendor/TypeDef.internal.3.d.ts +0 -14
- package/vendor/Package.19.cjs +0 -37
- package/vendor/Package.19.mjs +0 -35
- package/vendor/Package.20.cjs +0 -37
- package/vendor/Package.20.mjs +0 -35
- package/vendor/Package.21.cjs +0 -37
- package/vendor/Package.21.mjs +0 -35
- package/vendor/Package.22.cjs +0 -37
- package/vendor/Package.22.mjs +0 -35
- package/vendor/Package.23.cjs +0 -37
- package/vendor/Package.23.mjs +0 -35
- package/vendor/Package.24.cjs +0 -37
- package/vendor/Package.24.mjs +0 -35
- package/vendor/Package.25.cjs +0 -37
- package/vendor/Package.25.mjs +0 -35
- package/vendor/Package.26.cjs +0 -37
- package/vendor/Package.26.mjs +0 -35
- package/vendor/Package.27.cjs +0 -37
- package/vendor/Package.27.mjs +0 -35
- package/vendor/Package.28.cjs +0 -37
- package/vendor/Package.28.mjs +0 -35
- package/vendor/Package.29.cjs +0 -40
- package/vendor/Package.29.mjs +0 -38
- package/vendor/Package.30.cjs +0 -41
- package/vendor/Package.30.mjs +0 -39
- package/vendor/Package.31.cjs +0 -72
- package/vendor/Package.31.mjs +0 -70
- package/vendor/Package.32.cjs +0 -37
- package/vendor/Package.32.mjs +0 -35
- package/vendor/Package.33.cjs +0 -37
- package/vendor/Package.33.mjs +0 -35
- package/vendor/Package.34.cjs +0 -46
- package/vendor/Package.34.mjs +0 -44
- package/vendor/Package.35.cjs +0 -34
- package/vendor/Package.35.mjs +0 -32
- package/vendor/Package.36.cjs +0 -40
- package/vendor/Package.36.mjs +0 -38
- package/vendor/Package.37.cjs +0 -36
- package/vendor/Package.37.mjs +0 -34
- package/vendor/Package.38.cjs +0 -52
- package/vendor/Package.38.mjs +0 -50
- package/vendor/Package.39.cjs +0 -41
- package/vendor/Package.39.mjs +0 -39
- package/vendor/Package.40.cjs +0 -42
- package/vendor/Package.40.mjs +0 -40
- package/vendor/Package.41.cjs +0 -53
- package/vendor/Package.41.mjs +0 -51
- package/vendor/Package.42.cjs +0 -53
- package/vendor/Package.42.mjs +0 -51
- package/vendor/Package.43.cjs +0 -40
- package/vendor/Package.43.mjs +0 -38
- package/vendor/Package.44.cjs +0 -46
- package/vendor/Package.44.mjs +0 -44
- package/vendor/Package.45.cjs +0 -53
- package/vendor/Package.45.mjs +0 -51
- package/vendor/Package.46.cjs +0 -59
- package/vendor/Package.46.mjs +0 -57
- package/vendor/Package.47.cjs +0 -65
- package/vendor/Package.47.mjs +0 -63
- package/vendor/Package.48.cjs +0 -38
- package/vendor/Package.48.mjs +0 -36
- package/vendor/Package.49.cjs +0 -38
- package/vendor/Package.49.mjs +0 -36
- package/vendor/Package.50.cjs +0 -36
- package/vendor/Package.50.mjs +0 -34
- package/vendor/Package.51.cjs +0 -43
- package/vendor/Package.51.mjs +0 -41
- package/vendor/Package.52.cjs +0 -37
- package/vendor/Package.52.mjs +0 -35
- package/vendor/Package.53.cjs +0 -43
- package/vendor/Package.53.mjs +0 -41
- package/vendor/Package.54.cjs +0 -55
- package/vendor/Package.54.mjs +0 -53
- package/vendor/Package.55.cjs +0 -37
- package/vendor/Package.55.mjs +0 -35
- package/vendor/Package.56.cjs +0 -37
- package/vendor/Package.56.mjs +0 -35
- package/vendor/Package.57.cjs +0 -37
- package/vendor/Package.57.mjs +0 -35
- package/vendor/Package.58.cjs +0 -45
- package/vendor/Package.58.mjs +0 -43
- package/vendor/Package.59.cjs +0 -53
- package/vendor/Package.59.mjs +0 -51
- package/vendor/Package.60.cjs +0 -47649
- package/vendor/Package.60.mjs +0 -47606
|
@@ -22,404 +22,397 @@ var i = {
|
|
|
22
22
|
|
|
23
23
|
var o = i.exports;
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
(function(r, t) {
|
|
26
|
+
"use strict";
|
|
27
|
+
var e = n.default;
|
|
28
|
+
t = r.exports = i;
|
|
29
|
+
function i(r, t) {
|
|
30
|
+
t = a(r, t);
|
|
31
|
+
return c(r, t);
|
|
32
|
+
}
|
|
33
|
+
t.sha1 = function(r) {
|
|
34
|
+
return i(r);
|
|
35
|
+
};
|
|
36
|
+
t.keys = function(r) {
|
|
37
|
+
return i(r, {
|
|
38
|
+
excludeValues: true,
|
|
39
|
+
algorithm: "sha1",
|
|
40
|
+
encoding: "hex"
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
t.MD5 = function(r) {
|
|
44
|
+
return i(r, {
|
|
45
|
+
algorithm: "md5",
|
|
46
|
+
encoding: "hex"
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
t.keysMD5 = function(r) {
|
|
50
|
+
return i(r, {
|
|
51
|
+
algorithm: "md5",
|
|
52
|
+
encoding: "hex",
|
|
53
|
+
excludeValues: true
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
var o = e.getHashes ? e.getHashes().slice() : [ "sha1", "md5" ];
|
|
57
|
+
o.push("passthrough");
|
|
58
|
+
var u = [ "buffer", "hex", "binary", "base64" ];
|
|
59
|
+
function a(r, t) {
|
|
60
|
+
t = t || {};
|
|
61
|
+
var e = {};
|
|
62
|
+
e.algorithm = t.algorithm || "sha1";
|
|
63
|
+
e.encoding = t.encoding || "hex";
|
|
64
|
+
e.excludeValues = t.excludeValues ? true : false;
|
|
65
|
+
e.algorithm = e.algorithm.toLowerCase();
|
|
66
|
+
e.encoding = e.encoding.toLowerCase();
|
|
67
|
+
e.ignoreUnknown = t.ignoreUnknown !== true ? false : true;
|
|
68
|
+
e.respectType = t.respectType === false ? false : true;
|
|
69
|
+
e.respectFunctionNames = t.respectFunctionNames === false ? false : true;
|
|
70
|
+
e.respectFunctionProperties = t.respectFunctionProperties === false ? false : true;
|
|
71
|
+
e.unorderedArrays = t.unorderedArrays !== true ? false : true;
|
|
72
|
+
e.unorderedSets = t.unorderedSets === false ? false : true;
|
|
73
|
+
e.unorderedObjects = t.unorderedObjects === false ? false : true;
|
|
74
|
+
e.replacer = t.replacer || undefined;
|
|
75
|
+
e.excludeKeys = t.excludeKeys || undefined;
|
|
76
|
+
if (typeof r === "undefined") {
|
|
77
|
+
throw new Error("Object argument required.");
|
|
37
78
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
t.keys = function(r) {
|
|
42
|
-
return i(r, {
|
|
43
|
-
excludeValues: true,
|
|
44
|
-
algorithm: "sha1",
|
|
45
|
-
encoding: "hex"
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
t.MD5 = function(r) {
|
|
49
|
-
return i(r, {
|
|
50
|
-
algorithm: "md5",
|
|
51
|
-
encoding: "hex"
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
t.keysMD5 = function(r) {
|
|
55
|
-
return i(r, {
|
|
56
|
-
algorithm: "md5",
|
|
57
|
-
encoding: "hex",
|
|
58
|
-
excludeValues: true
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
var o = e.getHashes ? e.getHashes().slice() : [ "sha1", "md5" ];
|
|
62
|
-
o.push("passthrough");
|
|
63
|
-
var u = [ "buffer", "hex", "binary", "base64" ];
|
|
64
|
-
function a(r, t) {
|
|
65
|
-
t = t || {};
|
|
66
|
-
var e = {};
|
|
67
|
-
e.algorithm = t.algorithm || "sha1";
|
|
68
|
-
e.encoding = t.encoding || "hex";
|
|
69
|
-
e.excludeValues = t.excludeValues ? true : false;
|
|
70
|
-
e.algorithm = e.algorithm.toLowerCase();
|
|
71
|
-
e.encoding = e.encoding.toLowerCase();
|
|
72
|
-
e.ignoreUnknown = t.ignoreUnknown !== true ? false : true;
|
|
73
|
-
e.respectType = t.respectType === false ? false : true;
|
|
74
|
-
e.respectFunctionNames = t.respectFunctionNames === false ? false : true;
|
|
75
|
-
e.respectFunctionProperties = t.respectFunctionProperties === false ? false : true;
|
|
76
|
-
e.unorderedArrays = t.unorderedArrays !== true ? false : true;
|
|
77
|
-
e.unorderedSets = t.unorderedSets === false ? false : true;
|
|
78
|
-
e.unorderedObjects = t.unorderedObjects === false ? false : true;
|
|
79
|
-
e.replacer = t.replacer || undefined;
|
|
80
|
-
e.excludeKeys = t.excludeKeys || undefined;
|
|
81
|
-
if (typeof r === "undefined") {
|
|
82
|
-
throw new Error("Object argument required.");
|
|
83
|
-
}
|
|
84
|
-
for (var n = 0; n < o.length; ++n) {
|
|
85
|
-
if (o[n].toLowerCase() === e.algorithm.toLowerCase()) {
|
|
86
|
-
e.algorithm = o[n];
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
if (o.indexOf(e.algorithm) === -1) {
|
|
90
|
-
throw new Error('Algorithm "' + e.algorithm + '" not supported. ' + "supported values: " + o.join(", "));
|
|
79
|
+
for (var n = 0; n < o.length; ++n) {
|
|
80
|
+
if (o[n].toLowerCase() === e.algorithm.toLowerCase()) {
|
|
81
|
+
e.algorithm = o[n];
|
|
91
82
|
}
|
|
92
|
-
if (u.indexOf(e.encoding) === -1 && e.algorithm !== "passthrough") {
|
|
93
|
-
throw new Error('Encoding "' + e.encoding + '" not supported. ' + "supported values: " + u.join(", "));
|
|
94
|
-
}
|
|
95
|
-
return e;
|
|
96
83
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
var t = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
102
|
-
return t.exec(Function.prototype.toString.call(r)) != null;
|
|
84
|
+
if (o.indexOf(e.algorithm) === -1) {
|
|
85
|
+
throw new Error('Algorithm "' + e.algorithm + '" not supported. ' + "supported values: " + o.join(", "));
|
|
103
86
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
87
|
+
if (u.indexOf(e.encoding) === -1 && e.algorithm !== "passthrough") {
|
|
88
|
+
throw new Error('Encoding "' + e.encoding + '" not supported. ' + "supported values: " + u.join(", "));
|
|
89
|
+
}
|
|
90
|
+
return e;
|
|
91
|
+
}
|
|
92
|
+
function s(r) {
|
|
93
|
+
if (typeof r !== "function") {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
var t = /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i;
|
|
97
|
+
return t.exec(Function.prototype.toString.call(r)) != null;
|
|
98
|
+
}
|
|
99
|
+
function c(r, t) {
|
|
100
|
+
var n;
|
|
101
|
+
if (t.algorithm !== "passthrough") {
|
|
102
|
+
n = e.createHash(t.algorithm);
|
|
103
|
+
} else {
|
|
104
|
+
n = new l;
|
|
105
|
+
}
|
|
106
|
+
if (typeof n.write === "undefined") {
|
|
107
|
+
n.write = n.update;
|
|
108
|
+
n.end = n.update;
|
|
109
|
+
}
|
|
110
|
+
var i = f(t, n);
|
|
111
|
+
i.dispatch(r);
|
|
112
|
+
if (!n.update) {
|
|
113
|
+
n.end("");
|
|
114
|
+
}
|
|
115
|
+
if (n.digest) {
|
|
116
|
+
return n.digest(t.encoding === "buffer" ? undefined : t.encoding);
|
|
117
|
+
}
|
|
118
|
+
var o = n.read();
|
|
119
|
+
if (t.encoding === "buffer") {
|
|
120
|
+
return o;
|
|
121
|
+
}
|
|
122
|
+
return o.toString(t.encoding);
|
|
123
|
+
}
|
|
124
|
+
t.writeToStream = function(r, t, e) {
|
|
125
|
+
if (typeof e === "undefined") {
|
|
126
|
+
e = t;
|
|
127
|
+
t = {};
|
|
128
128
|
}
|
|
129
|
-
t
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
t = a(r, t);
|
|
130
|
+
return f(t, e).dispatch(r);
|
|
131
|
+
};
|
|
132
|
+
function f(r, t, e) {
|
|
133
|
+
e = e || [];
|
|
134
|
+
var n = function(r) {
|
|
135
|
+
if (t.update) {
|
|
136
|
+
return t.update(r, "utf8");
|
|
137
|
+
} else {
|
|
138
|
+
return t.write(r, "utf8");
|
|
133
139
|
}
|
|
134
|
-
t = a(r, t);
|
|
135
|
-
return f(t, e).dispatch(r);
|
|
136
140
|
};
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
return {
|
|
142
|
+
dispatch: function(t) {
|
|
143
|
+
if (r.replacer) {
|
|
144
|
+
t = r.replacer(t);
|
|
145
|
+
}
|
|
146
|
+
var e = typeof t;
|
|
147
|
+
if (t === null) {
|
|
148
|
+
e = "null";
|
|
149
|
+
}
|
|
150
|
+
return this["_" + e](t);
|
|
151
|
+
},
|
|
152
|
+
_object: function(t) {
|
|
153
|
+
var i = /\[object (.*)\]/i;
|
|
154
|
+
var o = Object.prototype.toString.call(t);
|
|
155
|
+
var u = i.exec(o);
|
|
156
|
+
if (!u) {
|
|
157
|
+
u = "unknown:[" + o + "]";
|
|
142
158
|
} else {
|
|
143
|
-
|
|
159
|
+
u = u[1];
|
|
144
160
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (!u) {
|
|
162
|
-
u = "unknown:[" + o + "]";
|
|
163
|
-
} else {
|
|
164
|
-
u = u[1];
|
|
165
|
-
}
|
|
166
|
-
u = u.toLowerCase();
|
|
167
|
-
var a = null;
|
|
168
|
-
if ((a = e.indexOf(t)) >= 0) {
|
|
169
|
-
return this.dispatch("[CIRCULAR:" + a + "]");
|
|
161
|
+
u = u.toLowerCase();
|
|
162
|
+
var a = null;
|
|
163
|
+
if ((a = e.indexOf(t)) >= 0) {
|
|
164
|
+
return this.dispatch("[CIRCULAR:" + a + "]");
|
|
165
|
+
} else {
|
|
166
|
+
e.push(t);
|
|
167
|
+
}
|
|
168
|
+
if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(t)) {
|
|
169
|
+
n("buffer:");
|
|
170
|
+
return n(t);
|
|
171
|
+
}
|
|
172
|
+
if (u !== "object" && u !== "function" && u !== "asyncfunction") {
|
|
173
|
+
if (this["_" + u]) {
|
|
174
|
+
this["_" + u](t);
|
|
175
|
+
} else if (r.ignoreUnknown) {
|
|
176
|
+
return n("[" + u + "]");
|
|
170
177
|
} else {
|
|
171
|
-
|
|
178
|
+
throw new Error('Unknown object type "' + u + '"');
|
|
172
179
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
180
|
+
} else {
|
|
181
|
+
var c = Object.keys(t);
|
|
182
|
+
if (r.unorderedObjects) {
|
|
183
|
+
c = c.sort();
|
|
176
184
|
}
|
|
177
|
-
if (
|
|
178
|
-
|
|
179
|
-
this["_" + u](t);
|
|
180
|
-
} else if (r.ignoreUnknown) {
|
|
181
|
-
return n("[" + u + "]");
|
|
182
|
-
} else {
|
|
183
|
-
throw new Error('Unknown object type "' + u + '"');
|
|
184
|
-
}
|
|
185
|
-
} else {
|
|
186
|
-
var c = Object.keys(t);
|
|
187
|
-
if (r.unorderedObjects) {
|
|
188
|
-
c = c.sort();
|
|
189
|
-
}
|
|
190
|
-
if (r.respectType !== false && !s(t)) {
|
|
191
|
-
c.splice(0, 0, "prototype", "__proto__", "constructor");
|
|
192
|
-
}
|
|
193
|
-
if (r.excludeKeys) {
|
|
194
|
-
c = c.filter((function(t) {
|
|
195
|
-
return !r.excludeKeys(t);
|
|
196
|
-
}));
|
|
197
|
-
}
|
|
198
|
-
n("object:" + c.length + ":");
|
|
199
|
-
var f = this;
|
|
200
|
-
return c.forEach((function(e) {
|
|
201
|
-
f.dispatch(e);
|
|
202
|
-
n(":");
|
|
203
|
-
if (!r.excludeValues) {
|
|
204
|
-
f.dispatch(t[e]);
|
|
205
|
-
}
|
|
206
|
-
n(",");
|
|
207
|
-
}));
|
|
185
|
+
if (r.respectType !== false && !s(t)) {
|
|
186
|
+
c.splice(0, 0, "prototype", "__proto__", "constructor");
|
|
208
187
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
var o = this;
|
|
213
|
-
n("array:" + t.length + ":");
|
|
214
|
-
if (!i || t.length <= 1) {
|
|
215
|
-
return t.forEach((function(r) {
|
|
216
|
-
return o.dispatch(r);
|
|
188
|
+
if (r.excludeKeys) {
|
|
189
|
+
c = c.filter((function(t) {
|
|
190
|
+
return !r.excludeKeys(t);
|
|
217
191
|
}));
|
|
218
192
|
}
|
|
219
|
-
|
|
220
|
-
var
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
193
|
+
n("object:" + c.length + ":");
|
|
194
|
+
var f = this;
|
|
195
|
+
return c.forEach((function(e) {
|
|
196
|
+
f.dispatch(e);
|
|
197
|
+
n(":");
|
|
198
|
+
if (!r.excludeValues) {
|
|
199
|
+
f.dispatch(t[e]);
|
|
200
|
+
}
|
|
201
|
+
n(",");
|
|
227
202
|
}));
|
|
228
|
-
e = e.concat(u);
|
|
229
|
-
a.sort();
|
|
230
|
-
return this._array(a, false);
|
|
231
|
-
},
|
|
232
|
-
_date: function(r) {
|
|
233
|
-
return n("date:" + r.toJSON());
|
|
234
|
-
},
|
|
235
|
-
_symbol: function(r) {
|
|
236
|
-
return n("symbol:" + r.toString());
|
|
237
|
-
},
|
|
238
|
-
_error: function(r) {
|
|
239
|
-
return n("error:" + r.toString());
|
|
240
|
-
},
|
|
241
|
-
_boolean: function(r) {
|
|
242
|
-
return n("bool:" + r.toString());
|
|
243
|
-
},
|
|
244
|
-
_string: function(r) {
|
|
245
|
-
n("string:" + r.length + ":");
|
|
246
|
-
n(r.toString());
|
|
247
|
-
},
|
|
248
|
-
_function: function(t) {
|
|
249
|
-
n("fn:");
|
|
250
|
-
if (s(t)) {
|
|
251
|
-
this.dispatch("[native]");
|
|
252
|
-
} else {
|
|
253
|
-
this.dispatch(t.toString());
|
|
254
|
-
}
|
|
255
|
-
if (r.respectFunctionNames !== false) {
|
|
256
|
-
this.dispatch("function-name:" + String(t.name));
|
|
257
|
-
}
|
|
258
|
-
if (r.respectFunctionProperties) {
|
|
259
|
-
this._object(t);
|
|
260
|
-
}
|
|
261
|
-
},
|
|
262
|
-
_number: function(r) {
|
|
263
|
-
return n("number:" + r.toString());
|
|
264
|
-
},
|
|
265
|
-
_xml: function(r) {
|
|
266
|
-
return n("xml:" + r.toString());
|
|
267
|
-
},
|
|
268
|
-
_null: function() {
|
|
269
|
-
return n("Null");
|
|
270
|
-
},
|
|
271
|
-
_undefined: function() {
|
|
272
|
-
return n("Undefined");
|
|
273
|
-
},
|
|
274
|
-
_regexp: function(r) {
|
|
275
|
-
return n("regex:" + r.toString());
|
|
276
|
-
},
|
|
277
|
-
_uint8array: function(r) {
|
|
278
|
-
n("uint8array:");
|
|
279
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
280
|
-
},
|
|
281
|
-
_uint8clampedarray: function(r) {
|
|
282
|
-
n("uint8clampedarray:");
|
|
283
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
284
|
-
},
|
|
285
|
-
_int8array: function(r) {
|
|
286
|
-
n("int8array:");
|
|
287
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
288
|
-
},
|
|
289
|
-
_uint16array: function(r) {
|
|
290
|
-
n("uint16array:");
|
|
291
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
292
|
-
},
|
|
293
|
-
_int16array: function(r) {
|
|
294
|
-
n("int16array:");
|
|
295
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
296
|
-
},
|
|
297
|
-
_uint32array: function(r) {
|
|
298
|
-
n("uint32array:");
|
|
299
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
300
|
-
},
|
|
301
|
-
_int32array: function(r) {
|
|
302
|
-
n("int32array:");
|
|
303
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
304
|
-
},
|
|
305
|
-
_float32array: function(r) {
|
|
306
|
-
n("float32array:");
|
|
307
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
308
|
-
},
|
|
309
|
-
_float64array: function(r) {
|
|
310
|
-
n("float64array:");
|
|
311
|
-
return this.dispatch(Array.prototype.slice.call(r));
|
|
312
|
-
},
|
|
313
|
-
_arraybuffer: function(r) {
|
|
314
|
-
n("arraybuffer:");
|
|
315
|
-
return this.dispatch(new Uint8Array(r));
|
|
316
|
-
},
|
|
317
|
-
_url: function(r) {
|
|
318
|
-
return n("url:" + r.toString(), "utf8");
|
|
319
|
-
},
|
|
320
|
-
_map: function(t) {
|
|
321
|
-
n("map:");
|
|
322
|
-
var e = Array.from(t);
|
|
323
|
-
return this._array(e, r.unorderedSets !== false);
|
|
324
|
-
},
|
|
325
|
-
_set: function(t) {
|
|
326
|
-
n("set:");
|
|
327
|
-
var e = Array.from(t);
|
|
328
|
-
return this._array(e, r.unorderedSets !== false);
|
|
329
|
-
},
|
|
330
|
-
_file: function(r) {
|
|
331
|
-
n("file:");
|
|
332
|
-
return this.dispatch([ r.name, r.size, r.type, r.lastModfied ]);
|
|
333
|
-
},
|
|
334
|
-
_blob: function() {
|
|
335
|
-
if (r.ignoreUnknown) {
|
|
336
|
-
return n("[blob]");
|
|
337
|
-
}
|
|
338
|
-
throw Error("Hashing Blob objects is currently not supported\n" + "(see https://github.com/puleos/object-hash/issues/26)\n" + 'Use "options.replacer" or "options.ignoreUnknown"\n');
|
|
339
|
-
},
|
|
340
|
-
_domwindow: function() {
|
|
341
|
-
return n("domwindow");
|
|
342
|
-
},
|
|
343
|
-
_bigint: function(r) {
|
|
344
|
-
return n("bigint:" + r.toString());
|
|
345
|
-
},
|
|
346
|
-
_process: function() {
|
|
347
|
-
return n("process");
|
|
348
|
-
},
|
|
349
|
-
_timer: function() {
|
|
350
|
-
return n("timer");
|
|
351
|
-
},
|
|
352
|
-
_pipe: function() {
|
|
353
|
-
return n("pipe");
|
|
354
|
-
},
|
|
355
|
-
_tcp: function() {
|
|
356
|
-
return n("tcp");
|
|
357
|
-
},
|
|
358
|
-
_udp: function() {
|
|
359
|
-
return n("udp");
|
|
360
|
-
},
|
|
361
|
-
_tty: function() {
|
|
362
|
-
return n("tty");
|
|
363
|
-
},
|
|
364
|
-
_statwatcher: function() {
|
|
365
|
-
return n("statwatcher");
|
|
366
|
-
},
|
|
367
|
-
_securecontext: function() {
|
|
368
|
-
return n("securecontext");
|
|
369
|
-
},
|
|
370
|
-
_connection: function() {
|
|
371
|
-
return n("connection");
|
|
372
|
-
},
|
|
373
|
-
_zlib: function() {
|
|
374
|
-
return n("zlib");
|
|
375
|
-
},
|
|
376
|
-
_context: function() {
|
|
377
|
-
return n("context");
|
|
378
|
-
},
|
|
379
|
-
_nodescript: function() {
|
|
380
|
-
return n("nodescript");
|
|
381
|
-
},
|
|
382
|
-
_httpparser: function() {
|
|
383
|
-
return n("httpparser");
|
|
384
|
-
},
|
|
385
|
-
_dataview: function() {
|
|
386
|
-
return n("dataview");
|
|
387
|
-
},
|
|
388
|
-
_signal: function() {
|
|
389
|
-
return n("signal");
|
|
390
|
-
},
|
|
391
|
-
_fsevent: function() {
|
|
392
|
-
return n("fsevent");
|
|
393
|
-
},
|
|
394
|
-
_tlswrap: function() {
|
|
395
|
-
return n("tlswrap");
|
|
396
203
|
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
this.buf += r;
|
|
407
|
-
},
|
|
408
|
-
read: function() {
|
|
409
|
-
return this.buf;
|
|
204
|
+
},
|
|
205
|
+
_array: function(t, i) {
|
|
206
|
+
i = typeof i !== "undefined" ? i : r.unorderedArrays !== false;
|
|
207
|
+
var o = this;
|
|
208
|
+
n("array:" + t.length + ":");
|
|
209
|
+
if (!i || t.length <= 1) {
|
|
210
|
+
return t.forEach((function(r) {
|
|
211
|
+
return o.dispatch(r);
|
|
212
|
+
}));
|
|
410
213
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
214
|
+
var u = [];
|
|
215
|
+
var a = t.map((function(t) {
|
|
216
|
+
var n = new l;
|
|
217
|
+
var i = e.slice();
|
|
218
|
+
var o = f(r, n, i);
|
|
219
|
+
o.dispatch(t);
|
|
220
|
+
u = u.concat(i.slice(e.length));
|
|
221
|
+
return n.read().toString();
|
|
222
|
+
}));
|
|
223
|
+
e = e.concat(u);
|
|
224
|
+
a.sort();
|
|
225
|
+
return this._array(a, false);
|
|
226
|
+
},
|
|
227
|
+
_date: function(r) {
|
|
228
|
+
return n("date:" + r.toJSON());
|
|
229
|
+
},
|
|
230
|
+
_symbol: function(r) {
|
|
231
|
+
return n("symbol:" + r.toString());
|
|
232
|
+
},
|
|
233
|
+
_error: function(r) {
|
|
234
|
+
return n("error:" + r.toString());
|
|
235
|
+
},
|
|
236
|
+
_boolean: function(r) {
|
|
237
|
+
return n("bool:" + r.toString());
|
|
238
|
+
},
|
|
239
|
+
_string: function(r) {
|
|
240
|
+
n("string:" + r.length + ":");
|
|
241
|
+
n(r.toString());
|
|
242
|
+
},
|
|
243
|
+
_function: function(t) {
|
|
244
|
+
n("fn:");
|
|
245
|
+
if (s(t)) {
|
|
246
|
+
this.dispatch("[native]");
|
|
247
|
+
} else {
|
|
248
|
+
this.dispatch(t.toString());
|
|
249
|
+
}
|
|
250
|
+
if (r.respectFunctionNames !== false) {
|
|
251
|
+
this.dispatch("function-name:" + String(t.name));
|
|
252
|
+
}
|
|
253
|
+
if (r.respectFunctionProperties) {
|
|
254
|
+
this._object(t);
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
_number: function(r) {
|
|
258
|
+
return n("number:" + r.toString());
|
|
259
|
+
},
|
|
260
|
+
_xml: function(r) {
|
|
261
|
+
return n("xml:" + r.toString());
|
|
262
|
+
},
|
|
263
|
+
_null: function() {
|
|
264
|
+
return n("Null");
|
|
265
|
+
},
|
|
266
|
+
_undefined: function() {
|
|
267
|
+
return n("Undefined");
|
|
268
|
+
},
|
|
269
|
+
_regexp: function(r) {
|
|
270
|
+
return n("regex:" + r.toString());
|
|
271
|
+
},
|
|
272
|
+
_uint8array: function(r) {
|
|
273
|
+
n("uint8array:");
|
|
274
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
275
|
+
},
|
|
276
|
+
_uint8clampedarray: function(r) {
|
|
277
|
+
n("uint8clampedarray:");
|
|
278
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
279
|
+
},
|
|
280
|
+
_int8array: function(r) {
|
|
281
|
+
n("int8array:");
|
|
282
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
283
|
+
},
|
|
284
|
+
_uint16array: function(r) {
|
|
285
|
+
n("uint16array:");
|
|
286
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
287
|
+
},
|
|
288
|
+
_int16array: function(r) {
|
|
289
|
+
n("int16array:");
|
|
290
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
291
|
+
},
|
|
292
|
+
_uint32array: function(r) {
|
|
293
|
+
n("uint32array:");
|
|
294
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
295
|
+
},
|
|
296
|
+
_int32array: function(r) {
|
|
297
|
+
n("int32array:");
|
|
298
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
299
|
+
},
|
|
300
|
+
_float32array: function(r) {
|
|
301
|
+
n("float32array:");
|
|
302
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
303
|
+
},
|
|
304
|
+
_float64array: function(r) {
|
|
305
|
+
n("float64array:");
|
|
306
|
+
return this.dispatch(Array.prototype.slice.call(r));
|
|
307
|
+
},
|
|
308
|
+
_arraybuffer: function(r) {
|
|
309
|
+
n("arraybuffer:");
|
|
310
|
+
return this.dispatch(new Uint8Array(r));
|
|
311
|
+
},
|
|
312
|
+
_url: function(r) {
|
|
313
|
+
return n("url:" + r.toString(), "utf8");
|
|
314
|
+
},
|
|
315
|
+
_map: function(t) {
|
|
316
|
+
n("map:");
|
|
317
|
+
var e = Array.from(t);
|
|
318
|
+
return this._array(e, r.unorderedSets !== false);
|
|
319
|
+
},
|
|
320
|
+
_set: function(t) {
|
|
321
|
+
n("set:");
|
|
322
|
+
var e = Array.from(t);
|
|
323
|
+
return this._array(e, r.unorderedSets !== false);
|
|
324
|
+
},
|
|
325
|
+
_file: function(r) {
|
|
326
|
+
n("file:");
|
|
327
|
+
return this.dispatch([ r.name, r.size, r.type, r.lastModfied ]);
|
|
328
|
+
},
|
|
329
|
+
_blob: function() {
|
|
330
|
+
if (r.ignoreUnknown) {
|
|
331
|
+
return n("[blob]");
|
|
332
|
+
}
|
|
333
|
+
throw Error("Hashing Blob objects is currently not supported\n" + "(see https://github.com/puleos/object-hash/issues/26)\n" + 'Use "options.replacer" or "options.ignoreUnknown"\n');
|
|
334
|
+
},
|
|
335
|
+
_domwindow: function() {
|
|
336
|
+
return n("domwindow");
|
|
337
|
+
},
|
|
338
|
+
_bigint: function(r) {
|
|
339
|
+
return n("bigint:" + r.toString());
|
|
340
|
+
},
|
|
341
|
+
_process: function() {
|
|
342
|
+
return n("process");
|
|
343
|
+
},
|
|
344
|
+
_timer: function() {
|
|
345
|
+
return n("timer");
|
|
346
|
+
},
|
|
347
|
+
_pipe: function() {
|
|
348
|
+
return n("pipe");
|
|
349
|
+
},
|
|
350
|
+
_tcp: function() {
|
|
351
|
+
return n("tcp");
|
|
352
|
+
},
|
|
353
|
+
_udp: function() {
|
|
354
|
+
return n("udp");
|
|
355
|
+
},
|
|
356
|
+
_tty: function() {
|
|
357
|
+
return n("tty");
|
|
358
|
+
},
|
|
359
|
+
_statwatcher: function() {
|
|
360
|
+
return n("statwatcher");
|
|
361
|
+
},
|
|
362
|
+
_securecontext: function() {
|
|
363
|
+
return n("securecontext");
|
|
364
|
+
},
|
|
365
|
+
_connection: function() {
|
|
366
|
+
return n("connection");
|
|
367
|
+
},
|
|
368
|
+
_zlib: function() {
|
|
369
|
+
return n("zlib");
|
|
370
|
+
},
|
|
371
|
+
_context: function() {
|
|
372
|
+
return n("context");
|
|
373
|
+
},
|
|
374
|
+
_nodescript: function() {
|
|
375
|
+
return n("nodescript");
|
|
376
|
+
},
|
|
377
|
+
_httpparser: function() {
|
|
378
|
+
return n("httpparser");
|
|
379
|
+
},
|
|
380
|
+
_dataview: function() {
|
|
381
|
+
return n("dataview");
|
|
382
|
+
},
|
|
383
|
+
_signal: function() {
|
|
384
|
+
return n("signal");
|
|
385
|
+
},
|
|
386
|
+
_fsevent: function() {
|
|
387
|
+
return n("fsevent");
|
|
388
|
+
},
|
|
389
|
+
_tlswrap: function() {
|
|
390
|
+
return n("tlswrap");
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function l() {
|
|
395
|
+
return {
|
|
396
|
+
buf: "",
|
|
397
|
+
write: function(r) {
|
|
398
|
+
this.buf += r;
|
|
399
|
+
},
|
|
400
|
+
end: function(r) {
|
|
401
|
+
this.buf += r;
|
|
402
|
+
},
|
|
403
|
+
read: function() {
|
|
404
|
+
return this.buf;
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
})(i, i.exports);
|
|
416
409
|
|
|
417
|
-
var
|
|
410
|
+
var u = i.exports;
|
|
418
411
|
|
|
419
|
-
const
|
|
412
|
+
const a = r.getDefaultExportFromCjs(u);
|
|
420
413
|
|
|
421
|
-
function
|
|
422
|
-
return
|
|
414
|
+
function s(r, t) {
|
|
415
|
+
return a(r, t);
|
|
423
416
|
}
|
|
424
417
|
|
|
425
|
-
exports.ObjectHash =
|
|
418
|
+
exports.ObjectHash = s;
|