@xyo-network/core 2.59.0 → 2.60.0-rc.1

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 (57) hide show
  1. package/dist/cjs/Hasher/Hasher.js +53 -6
  2. package/dist/cjs/Hasher/Hasher.js.map +1 -1
  3. package/dist/cjs/Wasm/WasmSupport.js +4 -4
  4. package/dist/cjs/Wasm/WasmSupport.js.map +1 -1
  5. package/dist/cjs/lib/Validator.js.map +1 -1
  6. package/dist/docs.json +5200 -3091
  7. package/dist/esm/Hasher/Hasher.js +37 -7
  8. package/dist/esm/Hasher/Hasher.js.map +1 -1
  9. package/dist/esm/Wasm/WasmSupport.js +1 -1
  10. package/dist/esm/Wasm/WasmSupport.js.map +1 -1
  11. package/dist/esm/lib/Validator.js.map +1 -1
  12. package/dist/types/Hasher/Hasher.d.ts +11 -2
  13. package/dist/types/Hasher/Hasher.d.ts.map +1 -1
  14. package/dist/types/Wasm/WasmSupport.d.ts +1 -2
  15. package/dist/types/Wasm/WasmSupport.d.ts.map +1 -1
  16. package/dist/types/lib/Validator.d.ts +3 -2
  17. package/dist/types/lib/Validator.d.ts.map +1 -1
  18. package/docs/assets/search.js +1 -1
  19. package/docs/classes/Base.html +7 -6
  20. package/docs/classes/Hasher.html +159 -26
  21. package/docs/classes/ObjectWrapper.html +6 -5
  22. package/docs/classes/WasmSupport.html +22 -21
  23. package/docs/classes/XyoAbstractData.html +11 -10
  24. package/docs/classes/XyoData.html +16 -15
  25. package/docs/classes/XyoObjectWrapper.html +6 -5
  26. package/docs/classes/XyoValidatorBase.html +9 -8
  27. package/docs/functions/deepBy.html +3 -2
  28. package/docs/functions/deepOmitUnderscoreFields.html +3 -2
  29. package/docs/functions/deepPickUnderscoreFields.html +3 -2
  30. package/docs/functions/dumpErrors.html +3 -2
  31. package/docs/functions/isBrowser.html +3 -2
  32. package/docs/functions/normalizeAddress.html +3 -2
  33. package/docs/functions/removeEmptyFields.html +3 -2
  34. package/docs/functions/sortFields.html +3 -2
  35. package/docs/functions/toUint8Array.html +3 -2
  36. package/docs/functions/toUint8ArrayOptional.html +3 -2
  37. package/docs/functions/trimAddressPrefix.html +3 -2
  38. package/docs/functions/uuid.html +3 -2
  39. package/docs/index.html +2 -1
  40. package/docs/interfaces/Logger.html +8 -7
  41. package/docs/interfaces/Validator.html +6 -5
  42. package/docs/modules.html +3 -1
  43. package/docs/types/AnyObject.html +3 -2
  44. package/docs/types/BaseParams.html +3 -2
  45. package/docs/types/BaseParamsFields.html +3 -2
  46. package/docs/types/DataLike.html +3 -2
  47. package/docs/types/EmptyObject.html +3 -2
  48. package/docs/types/LogFunction.html +3 -2
  49. package/docs/types/StringKeyObject.html +3 -2
  50. package/docs/types/WasmFeature.html +4 -3
  51. package/docs/types/WithAdditional.html +3 -2
  52. package/docs/variables/WasmFeatureDetectors.html +204 -0
  53. package/docs/variables/addressPrefix.html +3 -2
  54. package/package.json +3 -2
  55. package/src/Hasher/Hasher.ts +44 -7
  56. package/src/Wasm/WasmSupport.ts +1 -1
  57. package/src/lib/Validator.ts +4 -2
@@ -5,11 +5,15 @@ const tslib_1 = require("tslib");
5
5
  const hash_wasm_1 = require("hash-wasm");
6
6
  const sha_js_1 = tslib_1.__importDefault(require("sha.js"));
7
7
  const lib_1 = require("../lib");
8
+ const Wasm_1 = require("../Wasm");
8
9
  const removeEmptyFields_1 = require("./removeEmptyFields");
9
10
  const removeFields_1 = require("./removeFields");
10
11
  const sortFields_1 = require("./sortFields");
12
+ const wasmSupportStatic = new Wasm_1.WasmSupport(['bigInt']);
11
13
  class Hasher extends lib_1.ObjectWrapper {
14
+ /** @deprecated use hashAsync instead */
12
15
  get hash() {
16
+ // eslint-disable-next-line deprecation/deprecation
13
17
  return Hasher.hash(this.obj);
14
18
  }
15
19
  get hashFields() {
@@ -18,33 +22,76 @@ class Hasher extends lib_1.ObjectWrapper {
18
22
  get stringified() {
19
23
  return Hasher.stringify(this.obj);
20
24
  }
25
+ static filterExclude(objs = [], hash) {
26
+ var _a;
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const hashes = Array.isArray(hash) ? hash : [hash];
29
+ return (_a = (yield this.hashPairs(objs)).filter(([_, objHash]) => !hashes.includes(objHash))) === null || _a === void 0 ? void 0 : _a.map((pair) => pair[0]);
30
+ });
31
+ }
32
+ static filterInclude(objs = [], hash) {
33
+ var _a;
34
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
+ const hashes = Array.isArray(hash) ? hash : [hash];
36
+ return (_a = (yield this.hashPairs(objs)).filter(([_, objHash]) => hashes.includes(objHash))) === null || _a === void 0 ? void 0 : _a.map((pair) => pair[0]);
37
+ });
38
+ }
39
+ static find(objs = [], hash) {
40
+ var _a;
41
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
+ return (_a = (yield this.hashPairs(objs)).find(([_, objHash]) => objHash === hash)) === null || _a === void 0 ? void 0 : _a[0];
43
+ });
44
+ }
45
+ /** @deprecated use hashAsync instead */
21
46
  static hash(obj) {
22
47
  return (0, sha_js_1.default)('sha256').update(this.stringify(obj)).digest().toString('hex');
23
48
  }
24
49
  static hashAsync(obj) {
25
50
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
- if (this.allowWasm && this.wasmSupported) {
51
+ yield Hasher.wasmInitialized;
52
+ if (Hasher.wasmSupport.canUseWasm) {
53
+ const stringToHash = this.stringify(obj);
27
54
  try {
28
- return yield (0, hash_wasm_1.sha256)(this.stringify(obj));
55
+ return yield (0, hash_wasm_1.sha256)(stringToHash);
29
56
  }
30
57
  catch (ex) {
31
- this.wasmSupported = false;
58
+ Hasher.wasmSupport.allowWasm = false;
32
59
  }
33
60
  }
61
+ // eslint-disable-next-line deprecation/deprecation
34
62
  return this.hash(obj);
35
63
  });
36
64
  }
37
65
  static hashFields(obj) {
38
66
  return (0, removeEmptyFields_1.removeEmptyFields)((0, removeFields_1.deepOmitUnderscoreFields)(obj));
39
67
  }
68
+ static hashPairs(objs) {
69
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
70
+ return yield Promise.all(objs.map((obj) => tslib_1.__awaiter(this, void 0, void 0, function* () { return [obj, yield Hasher.hashAsync(obj)]; })));
71
+ });
72
+ }
73
+ static hashes(objs) {
74
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
75
+ return yield Promise.all(objs.map((obj) => this.hashAsync(obj)));
76
+ });
77
+ }
40
78
  static stringify(obj) {
41
79
  return JSON.stringify((0, sortFields_1.sortFields)(this.hashFields(obj)));
42
80
  }
81
+ static toMap(objs) {
82
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
83
+ const result = {};
84
+ yield Promise.all(objs.map((obj) => tslib_1.__awaiter(this, void 0, void 0, function* () { return (result[yield Hasher.hashAsync(obj)] = obj); })));
85
+ return result;
86
+ });
87
+ }
43
88
  hashAsync() {
44
- return Hasher.hashAsync(this.obj);
89
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
90
+ return yield Hasher.hashAsync(this.obj);
91
+ });
45
92
  }
46
93
  }
47
94
  exports.Hasher = Hasher;
48
- Hasher.allowWasm = true;
49
- Hasher.wasmSupported = true;
95
+ Hasher.wasmInitialized = wasmSupportStatic.initialize();
96
+ Hasher.wasmSupport = wasmSupportStatic;
50
97
  //# sourceMappingURL=Hasher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hasher.js","sourceRoot":"","sources":["../../../src/Hasher/Hasher.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,4DAA0B;AAE1B,gCAAiD;AACjD,2DAAuD;AACvD,iDAAyD;AACzD,6CAAyC;AAEzC,MAAa,MAAwC,SAAQ,mBAAgB;IAI3E,IAAI,IAAI;QACN,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAC9B,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACpC,CAAC;IAED,IAAI,WA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
- exports.WasmSupport = void 0;
3
+ exports.WasmSupport = exports.WasmFeatureDetectors = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const wasm_feature_detect_1 = require("wasm-feature-detect");
6
- const WasmFeatureDetectors = {
6
+ exports.WasmFeatureDetectors = {
7
7
  bigInt: wasm_feature_detect_1.bigInt,
8
8
  bulkMemory: wasm_feature_detect_1.bulkMemory,
9
9
  exceptions: wasm_feature_detect_1.exceptions,
@@ -117,7 +117,7 @@ class WasmSupport {
117
117
  */
118
118
  featureCheck(features) {
119
119
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
120
- const results = yield Promise.all(features.map((feature) => WasmFeatureDetectors[feature]).map((detector) => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield detector(); })));
120
+ const results = yield Promise.all(features.map((feature) => exports.WasmFeatureDetectors[feature]).map((detector) => tslib_1.__awaiter(this, void 0, void 0, function* () { return yield detector(); })));
121
121
  return results.every((result) => result);
122
122
  });
123
123
  }
@@ -137,7 +137,7 @@ class WasmSupport {
137
137
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
138
138
  for (let feature = 0; feature < this.desiredFeatures.length; feature++) {
139
139
  const desiredFeature = this.desiredFeatures[feature];
140
- const detector = WasmFeatureDetectors[desiredFeature];
140
+ const detector = exports.WasmFeatureDetectors[desiredFeature];
141
141
  if (!(yield detector())) {
142
142
  this._featureSupport[desiredFeature] = false;
143
143
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WasmSupport.js","sourceRoot":"","sources":["../../../src/Wasm/WasmSupport.ts"],"names":[],"mappings":";;;;AAAA,6DAiB4B;AAE5B,MAAM,oBAAoB,GAAG;IAC3B,MAAM,EAAE,4BAAM;IACd,UAAU,EAAE,gCAAU;IACtB,UAAU,EAAE,gCAAU;IACtB,aAAa,EAAE,mCAAa;IAC5B,EAAE,EAAE,wBAAE;IACN,QAAQ,EAAE,8BAAQ;IAClB,UAAU,EAAE,gCAAU;IACtB,cAAc,EAAE,oCAAc;IAC9B,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AAQ,EAAE,EAAE,wDAAC,OAAA,MAAM,QAAQ,EAAE,CAAA,GAAA,CAAC,CAAC,CAAA;YACrI,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAA;QAC1C,CAAC;KAAA;IAED;;OAEG;IACG,UAAU;;YACd,IAAI,IAAI,CAAC,cAAc;gBAAE,OAAM;YAC/B,MAAM,IAAI,CAAC,qBAAqB,EAAE,CAAA;YAClC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAA;YAC1B,OAAM;QACR,CAAC;KAAA;IAEe,qBAAqB;;YACnC,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;gBACtE,MAAM,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;gBACpD,MAAM,QAAQ,GAAG,4BAAoB,CAAC,cAAc,CAAC,CAAA;gBACrD,IAAI,CAAC,CAAC,MAAM,QAAQ,EAAE,CAAC,EAAE;oBACvB,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,GAAG,KAAK,CAAA;iBAC7C;qBAAM;oBACL,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,GAAG,IAAI,CAAA;iBAC5C;aACF;YACD,IAAI,CAAC,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;QACvF,CAAC;KAAA;CACF;AA/HD,kCA+HC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Validator.js","sourceRoot":"","sources":["../../../src/lib/Validator.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAM/C,MAAsB,gBAAkD,SAAQ,6BAAgB;CAE/F;AAFD,4CAEC"}
1
+ {"version":3,"file":"Validator.js","sourceRoot":"","sources":["../../../src/lib/Validator.ts"],"names":[],"mappings":";;;AAGA,mDAA+C;AAM/C,MAAsB,gBAAkD,SAAQ,6BAAgB;CAE/F;AAFD,4CAEC"}