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