@metamask/utils 8.2.0 → 8.3.0

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 (88) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/dist/assert.js +3 -3
  3. package/dist/assert.mjs +2 -2
  4. package/dist/base64.js +4 -4
  5. package/dist/base64.mjs +3 -3
  6. package/dist/bytes.js +4 -4
  7. package/dist/bytes.mjs +3 -3
  8. package/dist/checksum.js +5 -5
  9. package/dist/checksum.mjs +4 -4
  10. package/dist/{chunk-ZRNIY7OW.js → chunk-4D6XQBHA.js} +4 -4
  11. package/dist/chunk-4NIRTM4M.js +23 -0
  12. package/dist/chunk-4NIRTM4M.js.map +1 -0
  13. package/dist/{chunk-VL5DYXC5.mjs → chunk-52OU772R.mjs} +2 -2
  14. package/dist/chunk-5AVWINSB.js +1 -0
  15. package/dist/chunk-622IOGVI.mjs +1 -0
  16. package/dist/{chunk-65KBH4FZ.mjs → chunk-6C35XQOF.mjs} +2 -2
  17. package/dist/{chunk-WRBN6DWM.js → chunk-6NZW4WK4.js} +3 -3
  18. package/dist/{chunk-VBYRLAP6.js → chunk-6ZDHSOUV.js} +3 -3
  19. package/dist/{chunk-CSDMTDND.mjs → chunk-74DGVJVE.mjs} +2 -2
  20. package/dist/chunk-B7LIM2PK.mjs +23 -0
  21. package/dist/chunk-B7LIM2PK.mjs.map +1 -0
  22. package/dist/{chunk-WQDTPIQK.js → chunk-BFQDMI3M.js} +12 -12
  23. package/dist/{chunk-JCYFTGED.js → chunk-DHVKFDHQ.js} +9 -9
  24. package/dist/{chunk-XYYGZF5Y.js → chunk-E4C7EW4R.js} +3 -3
  25. package/dist/{chunk-N53OILN6.mjs → chunk-GZS3IQBZ.mjs} +2 -2
  26. package/dist/{chunk-DMPG3H3G.js → chunk-IZC266HS.js} +7 -13
  27. package/dist/chunk-IZC266HS.js.map +1 -0
  28. package/dist/{chunk-HLDWS2JR.mjs → chunk-NQMRFZHB.mjs} +2 -2
  29. package/dist/{chunk-2CY4F77D.mjs → chunk-O3EIM33O.mjs} +3 -3
  30. package/dist/{chunk-5WQRFJVQ.js → chunk-OLLG4H35.js} +11 -11
  31. package/dist/{chunk-YQJBIHC7.js → chunk-QEPVHEP7.js} +20 -20
  32. package/dist/{chunk-G66TREC6.mjs → chunk-ROQSKDP5.mjs} +2 -2
  33. package/dist/{chunk-VSEW3V2L.mjs → chunk-S3UHBN2Z.mjs} +3 -3
  34. package/dist/{chunk-BKR45GQY.mjs → chunk-VA2DRBDE.mjs} +2 -2
  35. package/dist/chunk-VFXTVNXN.js +44 -0
  36. package/dist/{chunk-7S5AWFX7.mjs → chunk-XYGUOY6N.mjs} +7 -13
  37. package/dist/{chunk-7S5AWFX7.mjs.map → chunk-XYGUOY6N.mjs.map} +1 -1
  38. package/dist/coercers.js +5 -5
  39. package/dist/coercers.mjs +4 -4
  40. package/dist/errors.js +2 -2
  41. package/dist/errors.mjs +1 -1
  42. package/dist/fs.js +3 -3
  43. package/dist/fs.mjs +2 -2
  44. package/dist/hex.js +4 -4
  45. package/dist/hex.mjs +3 -3
  46. package/dist/index.js +15 -11
  47. package/dist/index.mjs +14 -10
  48. package/dist/json.js +4 -4
  49. package/dist/json.mjs +3 -3
  50. package/dist/node.js +16 -12
  51. package/dist/node.mjs +15 -11
  52. package/dist/number.js +5 -5
  53. package/dist/number.mjs +4 -4
  54. package/dist/promise.js +8 -0
  55. package/dist/promise.js.map +1 -0
  56. package/dist/promise.mjs +8 -0
  57. package/dist/promise.mjs.map +1 -0
  58. package/dist/types/index.d.ts +1 -0
  59. package/dist/types/index.d.ts.map +1 -1
  60. package/dist/types/promise.d.ts +35 -0
  61. package/dist/types/promise.d.ts.map +1 -0
  62. package/dist/versions.js +4 -4
  63. package/dist/versions.mjs +3 -3
  64. package/package.json +2 -2
  65. package/dist/chunk-2TBCL6EF.js +0 -1
  66. package/dist/chunk-4JNG5UTO.js +0 -44
  67. package/dist/chunk-DMPG3H3G.js.map +0 -1
  68. package/dist/chunk-DYMCEQIV.mjs +0 -1
  69. /package/dist/{chunk-ZRNIY7OW.js.map → chunk-4D6XQBHA.js.map} +0 -0
  70. /package/dist/{chunk-VL5DYXC5.mjs.map → chunk-52OU772R.mjs.map} +0 -0
  71. /package/dist/{chunk-2TBCL6EF.js.map → chunk-5AVWINSB.js.map} +0 -0
  72. /package/dist/{chunk-DYMCEQIV.mjs.map → chunk-622IOGVI.mjs.map} +0 -0
  73. /package/dist/{chunk-65KBH4FZ.mjs.map → chunk-6C35XQOF.mjs.map} +0 -0
  74. /package/dist/{chunk-WRBN6DWM.js.map → chunk-6NZW4WK4.js.map} +0 -0
  75. /package/dist/{chunk-VBYRLAP6.js.map → chunk-6ZDHSOUV.js.map} +0 -0
  76. /package/dist/{chunk-CSDMTDND.mjs.map → chunk-74DGVJVE.mjs.map} +0 -0
  77. /package/dist/{chunk-WQDTPIQK.js.map → chunk-BFQDMI3M.js.map} +0 -0
  78. /package/dist/{chunk-JCYFTGED.js.map → chunk-DHVKFDHQ.js.map} +0 -0
  79. /package/dist/{chunk-XYYGZF5Y.js.map → chunk-E4C7EW4R.js.map} +0 -0
  80. /package/dist/{chunk-N53OILN6.mjs.map → chunk-GZS3IQBZ.mjs.map} +0 -0
  81. /package/dist/{chunk-HLDWS2JR.mjs.map → chunk-NQMRFZHB.mjs.map} +0 -0
  82. /package/dist/{chunk-2CY4F77D.mjs.map → chunk-O3EIM33O.mjs.map} +0 -0
  83. /package/dist/{chunk-5WQRFJVQ.js.map → chunk-OLLG4H35.js.map} +0 -0
  84. /package/dist/{chunk-YQJBIHC7.js.map → chunk-QEPVHEP7.js.map} +0 -0
  85. /package/dist/{chunk-G66TREC6.mjs.map → chunk-ROQSKDP5.mjs.map} +0 -0
  86. /package/dist/{chunk-VSEW3V2L.mjs.map → chunk-S3UHBN2Z.mjs.map} +0 -0
  87. /package/dist/{chunk-BKR45GQY.mjs.map → chunk-VA2DRBDE.mjs.map} +0 -0
  88. /package/dist/{chunk-4JNG5UTO.js.map → chunk-VFXTVNXN.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVBYRLAP6js = require('./chunk-VBYRLAP6.js');
3
+ var _chunk6ZDHSOUVjs = require('./chunk-6ZDHSOUV.js');
4
4
 
5
5
 
6
6
  var _chunkQVEKZRZ2js = require('./chunk-QVEKZRZ2.js');
@@ -60,7 +60,7 @@ var UnsafeJsonStruct = _superstruct.union.call(void 0, [
60
60
  )
61
61
  ]);
62
62
  var JsonStruct = _superstruct.coerce.call(void 0, UnsafeJsonStruct, _superstruct.any.call(void 0, ), (value) => {
63
- _chunkVBYRLAP6js.assertStruct.call(void 0, value, UnsafeJsonStruct);
63
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0, value, UnsafeJsonStruct);
64
64
  return JSON.parse(
65
65
  JSON.stringify(value, (propKey, propValue) => {
66
66
  if (propKey === "__proto__" || propKey === "constructor") {
@@ -82,7 +82,7 @@ function getSafeJson(value) {
82
82
  return _superstruct.create.call(void 0, value, JsonStruct);
83
83
  }
84
84
  function getJsonSize(value) {
85
- _chunkVBYRLAP6js.assertStruct.call(void 0, value, JsonStruct, "Invalid JSON value");
85
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0, value, JsonStruct, "Invalid JSON value");
86
86
  const json = JSON.stringify(value);
87
87
  return new TextEncoder().encode(json).byteLength;
88
88
  }
@@ -111,7 +111,7 @@ function isJsonRpcNotification(value) {
111
111
  return _superstruct.is.call(void 0, value, JsonRpcNotificationStruct);
112
112
  }
113
113
  function assertIsJsonRpcNotification(value, ErrorWrapper) {
114
- _chunkVBYRLAP6js.assertStruct.call(void 0,
114
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
115
115
  value,
116
116
  JsonRpcNotificationStruct,
117
117
  "Invalid JSON-RPC notification",
@@ -122,7 +122,7 @@ function isJsonRpcRequest(value) {
122
122
  return _superstruct.is.call(void 0, value, JsonRpcRequestStruct);
123
123
  }
124
124
  function assertIsJsonRpcRequest(value, ErrorWrapper) {
125
- _chunkVBYRLAP6js.assertStruct.call(void 0,
125
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
126
126
  value,
127
127
  JsonRpcRequestStruct,
128
128
  "Invalid JSON-RPC request",
@@ -153,7 +153,7 @@ function isPendingJsonRpcResponse(response) {
153
153
  return _superstruct.is.call(void 0, response, PendingJsonRpcResponseStruct);
154
154
  }
155
155
  function assertIsPendingJsonRpcResponse(response, ErrorWrapper) {
156
- _chunkVBYRLAP6js.assertStruct.call(void 0,
156
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
157
157
  response,
158
158
  PendingJsonRpcResponseStruct,
159
159
  "Invalid pending JSON-RPC response",
@@ -164,7 +164,7 @@ function isJsonRpcResponse(response) {
164
164
  return _superstruct.is.call(void 0, response, JsonRpcResponseStruct);
165
165
  }
166
166
  function assertIsJsonRpcResponse(value, ErrorWrapper) {
167
- _chunkVBYRLAP6js.assertStruct.call(void 0,
167
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
168
168
  value,
169
169
  JsonRpcResponseStruct,
170
170
  "Invalid JSON-RPC response",
@@ -175,7 +175,7 @@ function isJsonRpcSuccess(value) {
175
175
  return _superstruct.is.call(void 0, value, JsonRpcSuccessStruct);
176
176
  }
177
177
  function assertIsJsonRpcSuccess(value, ErrorWrapper) {
178
- _chunkVBYRLAP6js.assertStruct.call(void 0,
178
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
179
179
  value,
180
180
  JsonRpcSuccessStruct,
181
181
  "Invalid JSON-RPC success response",
@@ -186,7 +186,7 @@ function isJsonRpcFailure(value) {
186
186
  return _superstruct.is.call(void 0, value, JsonRpcFailureStruct);
187
187
  }
188
188
  function assertIsJsonRpcFailure(value, ErrorWrapper) {
189
- _chunkVBYRLAP6js.assertStruct.call(void 0,
189
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
190
190
  value,
191
191
  JsonRpcFailureStruct,
192
192
  "Invalid JSON-RPC failure response",
@@ -197,7 +197,7 @@ function isJsonRpcError(value) {
197
197
  return _superstruct.is.call(void 0, value, JsonRpcErrorStruct);
198
198
  }
199
199
  function assertIsJsonRpcError(value, ErrorWrapper) {
200
- _chunkVBYRLAP6js.assertStruct.call(void 0,
200
+ _chunk6ZDHSOUVjs.assertStruct.call(void 0,
201
201
  value,
202
202
  JsonRpcErrorStruct,
203
203
  "Invalid JSON-RPC error",
@@ -254,4 +254,4 @@ function getJsonRpcIdValidator(options) {
254
254
 
255
255
 
256
256
  exports.object = object; exports.exactOptional = exactOptional; exports.UnsafeJsonStruct = UnsafeJsonStruct; exports.JsonStruct = JsonStruct; exports.isValidJson = isValidJson; exports.getSafeJson = getSafeJson; exports.getJsonSize = getJsonSize; exports.jsonrpc2 = jsonrpc2; exports.JsonRpcVersionStruct = JsonRpcVersionStruct; exports.JsonRpcIdStruct = JsonRpcIdStruct; exports.JsonRpcErrorStruct = JsonRpcErrorStruct; exports.JsonRpcParamsStruct = JsonRpcParamsStruct; exports.JsonRpcRequestStruct = JsonRpcRequestStruct; exports.JsonRpcNotificationStruct = JsonRpcNotificationStruct; exports.isJsonRpcNotification = isJsonRpcNotification; exports.assertIsJsonRpcNotification = assertIsJsonRpcNotification; exports.isJsonRpcRequest = isJsonRpcRequest; exports.assertIsJsonRpcRequest = assertIsJsonRpcRequest; exports.PendingJsonRpcResponseStruct = PendingJsonRpcResponseStruct; exports.JsonRpcSuccessStruct = JsonRpcSuccessStruct; exports.JsonRpcFailureStruct = JsonRpcFailureStruct; exports.JsonRpcResponseStruct = JsonRpcResponseStruct; exports.isPendingJsonRpcResponse = isPendingJsonRpcResponse; exports.assertIsPendingJsonRpcResponse = assertIsPendingJsonRpcResponse; exports.isJsonRpcResponse = isJsonRpcResponse; exports.assertIsJsonRpcResponse = assertIsJsonRpcResponse; exports.isJsonRpcSuccess = isJsonRpcSuccess; exports.assertIsJsonRpcSuccess = assertIsJsonRpcSuccess; exports.isJsonRpcFailure = isJsonRpcFailure; exports.assertIsJsonRpcFailure = assertIsJsonRpcFailure; exports.isJsonRpcError = isJsonRpcError; exports.assertIsJsonRpcError = assertIsJsonRpcError; exports.getJsonRpcIdValidator = getJsonRpcIdValidator;
257
- //# sourceMappingURL=chunk-5WQRFJVQ.js.map
257
+ //# sourceMappingURL=chunk-OLLG4H35.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVBYRLAP6js = require('./chunk-VBYRLAP6.js');
3
+ var _chunk6ZDHSOUVjs = require('./chunk-6ZDHSOUV.js');
4
4
 
5
5
  // src/hex.ts
6
6
  var _sha3 = require('@noble/hashes/sha3');
@@ -27,7 +27,7 @@ function isBytes(value) {
27
27
  return value instanceof Uint8Array;
28
28
  }
29
29
  function assertIsBytes(value) {
30
- _chunkVBYRLAP6js.assert.call(void 0, isBytes(value), "Value must be a Uint8Array.");
30
+ _chunk6ZDHSOUVjs.assert.call(void 0, isBytes(value), "Value must be a Uint8Array.");
31
31
  }
32
32
  function bytesToHex(bytes) {
33
33
  assertIsBytes(bytes);
@@ -57,7 +57,7 @@ function bytesToSignedBigInt(bytes) {
57
57
  function bytesToNumber(bytes) {
58
58
  assertIsBytes(bytes);
59
59
  const bigint = bytesToBigInt(bytes);
60
- _chunkVBYRLAP6js.assert.call(void 0,
60
+ _chunk6ZDHSOUVjs.assert.call(void 0,
61
61
  bigint <= BigInt(Number.MAX_SAFE_INTEGER),
62
62
  "Number is not a safe integer. Use `bytesToBigInt` instead."
63
63
  );
@@ -89,21 +89,21 @@ function hexToBytes(value) {
89
89
  return bytes;
90
90
  }
91
91
  function bigIntToBytes(value) {
92
- _chunkVBYRLAP6js.assert.call(void 0, typeof value === "bigint", "Value must be a bigint.");
93
- _chunkVBYRLAP6js.assert.call(void 0, value >= BigInt(0), "Value must be a non-negative bigint.");
92
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "bigint", "Value must be a bigint.");
93
+ _chunk6ZDHSOUVjs.assert.call(void 0, value >= BigInt(0), "Value must be a non-negative bigint.");
94
94
  const hexadecimal = value.toString(16);
95
95
  return hexToBytes(hexadecimal);
96
96
  }
97
97
  function bigIntFits(value, bytes) {
98
- _chunkVBYRLAP6js.assert.call(void 0, bytes > 0);
98
+ _chunk6ZDHSOUVjs.assert.call(void 0, bytes > 0);
99
99
  const mask = value >> BigInt(31);
100
100
  return !((~value & mask) + (value & ~mask) >> BigInt(bytes * 8 + ~0));
101
101
  }
102
102
  function signedBigIntToBytes(value, byteLength) {
103
- _chunkVBYRLAP6js.assert.call(void 0, typeof value === "bigint", "Value must be a bigint.");
104
- _chunkVBYRLAP6js.assert.call(void 0, typeof byteLength === "number", "Byte length must be a number.");
105
- _chunkVBYRLAP6js.assert.call(void 0, byteLength > 0, "Byte length must be greater than 0.");
106
- _chunkVBYRLAP6js.assert.call(void 0,
103
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "bigint", "Value must be a bigint.");
104
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof byteLength === "number", "Byte length must be a number.");
105
+ _chunk6ZDHSOUVjs.assert.call(void 0, byteLength > 0, "Byte length must be greater than 0.");
106
+ _chunk6ZDHSOUVjs.assert.call(void 0,
107
107
  bigIntFits(value, byteLength),
108
108
  "Byte length is too small to represent the given value."
109
109
  );
@@ -116,9 +116,9 @@ function signedBigIntToBytes(value, byteLength) {
116
116
  return bytes.reverse();
117
117
  }
118
118
  function numberToBytes(value) {
119
- _chunkVBYRLAP6js.assert.call(void 0, typeof value === "number", "Value must be a number.");
120
- _chunkVBYRLAP6js.assert.call(void 0, value >= 0, "Value must be a non-negative number.");
121
- _chunkVBYRLAP6js.assert.call(void 0,
119
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "number", "Value must be a number.");
120
+ _chunk6ZDHSOUVjs.assert.call(void 0, value >= 0, "Value must be a non-negative number.");
121
+ _chunk6ZDHSOUVjs.assert.call(void 0,
122
122
  Number.isSafeInteger(value),
123
123
  "Value is not a safe integer. Use `bigIntToBytes` instead."
124
124
  );
@@ -126,11 +126,11 @@ function numberToBytes(value) {
126
126
  return hexToBytes(hexadecimal);
127
127
  }
128
128
  function stringToBytes(value) {
129
- _chunkVBYRLAP6js.assert.call(void 0, typeof value === "string", "Value must be a string.");
129
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "string", "Value must be a string.");
130
130
  return new TextEncoder().encode(value);
131
131
  }
132
132
  function base64ToBytes(value) {
133
- _chunkVBYRLAP6js.assert.call(void 0, typeof value === "string", "Value must be a string.");
133
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "string", "Value must be a string.");
134
134
  return _base.base64.decode(value);
135
135
  }
136
136
  function valueToBytes(value) {
@@ -195,10 +195,10 @@ function isStrictHexString(value) {
195
195
  return _superstruct.is.call(void 0, value, StrictHexStruct);
196
196
  }
197
197
  function assertIsHexString(value) {
198
- _chunkVBYRLAP6js.assert.call(void 0, isHexString(value), "Value must be a hexadecimal string.");
198
+ _chunk6ZDHSOUVjs.assert.call(void 0, isHexString(value), "Value must be a hexadecimal string.");
199
199
  }
200
200
  function assertIsStrictHexString(value) {
201
- _chunkVBYRLAP6js.assert.call(void 0,
201
+ _chunk6ZDHSOUVjs.assert.call(void 0,
202
202
  isStrictHexString(value),
203
203
  'Value must be a hexadecimal string, starting with "0x".'
204
204
  );
@@ -207,12 +207,12 @@ function isValidHexAddress(possibleAddress) {
207
207
  return _superstruct.is.call(void 0, possibleAddress, HexAddressStruct) || isValidChecksumAddress(possibleAddress);
208
208
  }
209
209
  function getChecksumAddress(address) {
210
- _chunkVBYRLAP6js.assert.call(void 0, _superstruct.is.call(void 0, address, HexChecksumAddressStruct), "Invalid hex address.");
210
+ _chunk6ZDHSOUVjs.assert.call(void 0, _superstruct.is.call(void 0, address, HexChecksumAddressStruct), "Invalid hex address.");
211
211
  const unPrefixed = remove0x(address.toLowerCase());
212
212
  const unPrefixedHash = remove0x(bytesToHex(_sha3.keccak_256.call(void 0, unPrefixed)));
213
213
  return `0x${unPrefixed.split("").map((character, nibbleIndex) => {
214
214
  const hashCharacter = unPrefixedHash[nibbleIndex];
215
- _chunkVBYRLAP6js.assert.call(void 0, _superstruct.is.call(void 0, hashCharacter, _superstruct.string.call(void 0, )), "Hash shorter than address.");
215
+ _chunk6ZDHSOUVjs.assert.call(void 0, _superstruct.is.call(void 0, hashCharacter, _superstruct.string.call(void 0, )), "Hash shorter than address.");
216
216
  return parseInt(hashCharacter, 16) > 7 ? character.toUpperCase() : character;
217
217
  }).join("")}`;
218
218
  }
@@ -270,4 +270,4 @@ function remove0x(hexadecimal) {
270
270
 
271
271
 
272
272
  exports.HexStruct = HexStruct; exports.StrictHexStruct = StrictHexStruct; exports.HexAddressStruct = HexAddressStruct; exports.HexChecksumAddressStruct = HexChecksumAddressStruct; exports.isHexString = isHexString; exports.isStrictHexString = isStrictHexString; exports.assertIsHexString = assertIsHexString; exports.assertIsStrictHexString = assertIsStrictHexString; exports.isValidHexAddress = isValidHexAddress; exports.getChecksumAddress = getChecksumAddress; exports.isValidChecksumAddress = isValidChecksumAddress; exports.add0x = add0x; exports.remove0x = remove0x; exports.isBytes = isBytes; exports.assertIsBytes = assertIsBytes; exports.bytesToHex = bytesToHex; exports.bytesToBigInt = bytesToBigInt; exports.bytesToSignedBigInt = bytesToSignedBigInt; exports.bytesToNumber = bytesToNumber; exports.bytesToString = bytesToString; exports.bytesToBase64 = bytesToBase64; exports.hexToBytes = hexToBytes; exports.bigIntToBytes = bigIntToBytes; exports.signedBigIntToBytes = signedBigIntToBytes; exports.numberToBytes = numberToBytes; exports.stringToBytes = stringToBytes; exports.base64ToBytes = base64ToBytes; exports.valueToBytes = valueToBytes; exports.concatBytes = concatBytes; exports.createDataView = createDataView;
273
- //# sourceMappingURL=chunk-YQJBIHC7.js.map
273
+ //# sourceMappingURL=chunk-QEPVHEP7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assertStruct
3
- } from "./chunk-CSDMTDND.mjs";
3
+ } from "./chunk-74DGVJVE.mjs";
4
4
 
5
5
  // src/versions.ts
6
6
  import {
@@ -66,4 +66,4 @@ export {
66
66
  gtRange,
67
67
  satisfiesVersionRange
68
68
  };
69
- //# sourceMappingURL=chunk-G66TREC6.mjs.map
69
+ //# sourceMappingURL=chunk-ROQSKDP5.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  add0x,
3
3
  assertIsHexString
4
- } from "./chunk-BKR45GQY.mjs";
4
+ } from "./chunk-VA2DRBDE.mjs";
5
5
  import {
6
6
  assert
7
- } from "./chunk-CSDMTDND.mjs";
7
+ } from "./chunk-74DGVJVE.mjs";
8
8
 
9
9
  // src/number.ts
10
10
  var numberToHex = (value) => {
@@ -41,4 +41,4 @@ export {
41
41
  hexToNumber,
42
42
  hexToBigInt
43
43
  };
44
- //# sourceMappingURL=chunk-VSEW3V2L.mjs.map
44
+ //# sourceMappingURL=chunk-S3UHBN2Z.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  assert
3
- } from "./chunk-CSDMTDND.mjs";
3
+ } from "./chunk-74DGVJVE.mjs";
4
4
 
5
5
  // src/hex.ts
6
6
  import { keccak_256 as keccak256 } from "@noble/hashes/sha3";
@@ -270,4 +270,4 @@ export {
270
270
  concatBytes,
271
271
  createDataView
272
272
  };
273
- //# sourceMappingURL=chunk-BKR45GQY.mjs.map
273
+ //# sourceMappingURL=chunk-VA2DRBDE.mjs.map
@@ -0,0 +1,44 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkQEPVHEP7js = require('./chunk-QEPVHEP7.js');
5
+
6
+
7
+ var _chunk6ZDHSOUVjs = require('./chunk-6ZDHSOUV.js');
8
+
9
+ // src/number.ts
10
+ var numberToHex = (value) => {
11
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "number", "Value must be a number.");
12
+ _chunk6ZDHSOUVjs.assert.call(void 0, value >= 0, "Value must be a non-negative number.");
13
+ _chunk6ZDHSOUVjs.assert.call(void 0,
14
+ Number.isSafeInteger(value),
15
+ "Value is not a safe integer. Use `bigIntToHex` instead."
16
+ );
17
+ return _chunkQEPVHEP7js.add0x.call(void 0, value.toString(16));
18
+ };
19
+ var bigIntToHex = (value) => {
20
+ _chunk6ZDHSOUVjs.assert.call(void 0, typeof value === "bigint", "Value must be a bigint.");
21
+ _chunk6ZDHSOUVjs.assert.call(void 0, value >= 0, "Value must be a non-negative bigint.");
22
+ return _chunkQEPVHEP7js.add0x.call(void 0, value.toString(16));
23
+ };
24
+ var hexToNumber = (value) => {
25
+ _chunkQEPVHEP7js.assertIsHexString.call(void 0, value);
26
+ const numberValue = parseInt(value, 16);
27
+ _chunk6ZDHSOUVjs.assert.call(void 0,
28
+ Number.isSafeInteger(numberValue),
29
+ "Value is not a safe integer. Use `hexToBigInt` instead."
30
+ );
31
+ return numberValue;
32
+ };
33
+ var hexToBigInt = (value) => {
34
+ _chunkQEPVHEP7js.assertIsHexString.call(void 0, value);
35
+ return BigInt(_chunkQEPVHEP7js.add0x.call(void 0, value));
36
+ };
37
+
38
+
39
+
40
+
41
+
42
+
43
+ exports.numberToHex = numberToHex; exports.bigIntToHex = bigIntToHex; exports.hexToNumber = hexToNumber; exports.hexToBigInt = hexToBigInt;
44
+ //# sourceMappingURL=chunk-VFXTVNXN.js.map
@@ -28,18 +28,12 @@ function getErrorMessage(error) {
28
28
  }
29
29
  function wrapError(originalError, message) {
30
30
  if (isError(originalError)) {
31
- const error = Error.length === 2 ? (
32
- // This branch is getting tested by using the Node version that
33
- // supports `cause` on the Error constructor.
34
- // istanbul ignore next
35
- // Also, for some reason `tsserver` is not complaining that the
36
- // Error constructor doesn't support a second argument in the editor,
37
- // but `tsc` does. I'm not sure why, but we disable this in the
38
- // meantime.
39
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
40
- // @ts-ignore
41
- new Error(message, { cause: originalError })
42
- ) : new ErrorWithCause(message, { cause: originalError });
31
+ let error;
32
+ if (Error.length === 2) {
33
+ error = new Error(message, { cause: originalError });
34
+ } else {
35
+ error = new ErrorWithCause(message, { cause: originalError });
36
+ }
43
37
  if (isErrorWithCode(originalError)) {
44
38
  error.code = originalError.code;
45
39
  }
@@ -58,4 +52,4 @@ export {
58
52
  getErrorMessage,
59
53
  wrapError
60
54
  };
61
- //# sourceMappingURL=chunk-7S5AWFX7.mjs.map
55
+ //# sourceMappingURL=chunk-XYGUOY6N.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/errors.ts"],"sourcesContent":["import { ErrorWithCause } from 'pony-cause';\n\nimport { isNullOrUndefined, isObject } from './misc';\n\n/**\n * Type guard for determining whether the given value is an instance of Error.\n * For errors generated via `fs.promises`, `error instanceof Error` won't work,\n * so we have to come up with another way of testing.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nfunction isError(error: unknown): error is Error {\n return (\n error instanceof Error ||\n (isObject(error) && error.constructor.name === 'Error')\n );\n}\n\n/**\n * Type guard for determining whether the given value is an error object with a\n * `code` property such as the type of error that Node throws for filesystem\n * operations, etc.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nexport function isErrorWithCode(error: unknown): error is { code: string } {\n return typeof error === 'object' && error !== null && 'code' in error;\n}\n\n/**\n * Type guard for determining whether the given value is an error object with a\n * `message` property, such as an instance of Error.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nexport function isErrorWithMessage(\n error: unknown,\n): error is { message: string } {\n return typeof error === 'object' && error !== null && 'message' in error;\n}\n\n/**\n * Type guard for determining whether the given value is an error object with a\n * `stack` property, such as an instance of Error.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nexport function isErrorWithStack(error: unknown): error is { stack: string } {\n return typeof error === 'object' && error !== null && 'stack' in error;\n}\n\n/**\n * Attempts to obtain the message from a possible error object, defaulting to an\n * empty string if it is impossible to do so.\n *\n * @param error - The possible error to get the message from.\n * @returns The message if `error` is an object with a `message` property;\n * the string version of `error` if it is not `undefined` or `null`; otherwise\n * an empty string.\n */\nexport function getErrorMessage(error: unknown): string {\n if (isErrorWithMessage(error) && typeof error.message === 'string') {\n return error.message;\n }\n\n if (isNullOrUndefined(error)) {\n return '';\n }\n\n return String(error);\n}\n\n/**\n * Builds a new error object, linking it to the original error via the `cause`\n * property if it is an Error.\n *\n * This function is useful to reframe error messages in general, but is\n * _critical_ when interacting with any of Node's filesystem functions as\n * provided via `fs.promises`, because these do not produce stack traces in the\n * case of an I/O error (see <https://github.com/nodejs/node/issues/30944>).\n *\n * @param originalError - The error to be wrapped (something throwable).\n * @param message - The desired message of the new error.\n * @returns A new error object.\n */\nexport function wrapError<Throwable>(\n originalError: Throwable,\n message: string,\n): Error & { code?: string } {\n if (isError(originalError)) {\n const error: Error & { code?: string } =\n Error.length === 2\n ? // This branch is getting tested by using the Node version that\n // supports `cause` on the Error constructor.\n // istanbul ignore next\n // Also, for some reason `tsserver` is not complaining that the\n // Error constructor doesn't support a second argument in the editor,\n // but `tsc` does. I'm not sure why, but we disable this in the\n // meantime.\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n new Error(message, { cause: originalError })\n : new ErrorWithCause(message, { cause: originalError });\n\n if (isErrorWithCode(originalError)) {\n error.code = originalError.code;\n }\n\n return error;\n }\n\n if (message.length > 0) {\n return new Error(`${String(originalError)}: ${message}`);\n }\n\n return new Error(String(originalError));\n}\n"],"mappings":";;;;;;AAAA,SAAS,sBAAsB;AAY/B,SAAS,QAAQ,OAAgC;AAC/C,SACE,iBAAiB,SAChB,SAAS,KAAK,KAAK,MAAM,YAAY,SAAS;AAEnD;AAUO,SAAS,gBAAgB,OAA2C;AACzE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU;AAClE;AASO,SAAS,mBACd,OAC8B;AAC9B,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa;AACrE;AASO,SAAS,iBAAiB,OAA4C;AAC3E,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,WAAW;AACnE;AAWO,SAAS,gBAAgB,OAAwB;AACtD,MAAI,mBAAmB,KAAK,KAAK,OAAO,MAAM,YAAY,UAAU;AAClE,WAAO,MAAM;AAAA,EACf;AAEA,MAAI,kBAAkB,KAAK,GAAG;AAC5B,WAAO;AAAA,EACT;AAEA,SAAO,OAAO,KAAK;AACrB;AAeO,SAAS,UACd,eACA,SAC2B;AAC3B,MAAI,QAAQ,aAAa,GAAG;AAC1B,UAAM,QACJ,MAAM,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAUb,IAAI,MAAM,SAAS,EAAE,OAAO,cAAc,CAAC;AAAA,QAC3C,IAAI,eAAe,SAAS,EAAE,OAAO,cAAc,CAAC;AAE1D,QAAI,gBAAgB,aAAa,GAAG;AAClC,YAAM,OAAO,cAAc;AAAA,IAC7B;AAEA,WAAO;AAAA,EACT;AAEA,MAAI,QAAQ,SAAS,GAAG;AACtB,WAAO,IAAI,MAAM,GAAG,OAAO,aAAa,CAAC,KAAK,OAAO,EAAE;AAAA,EACzD;AAEA,SAAO,IAAI,MAAM,OAAO,aAAa,CAAC;AACxC;","names":[]}
1
+ {"version":3,"sources":["../src/errors.ts"],"sourcesContent":["import { ErrorWithCause } from 'pony-cause';\n\nimport { isNullOrUndefined, isObject } from './misc';\n\n/**\n * Type guard for determining whether the given value is an instance of Error.\n * For errors generated via `fs.promises`, `error instanceof Error` won't work,\n * so we have to come up with another way of testing.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nfunction isError(error: unknown): error is Error {\n return (\n error instanceof Error ||\n (isObject(error) && error.constructor.name === 'Error')\n );\n}\n\n/**\n * Type guard for determining whether the given value is an error object with a\n * `code` property such as the type of error that Node throws for filesystem\n * operations, etc.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nexport function isErrorWithCode(error: unknown): error is { code: string } {\n return typeof error === 'object' && error !== null && 'code' in error;\n}\n\n/**\n * Type guard for determining whether the given value is an error object with a\n * `message` property, such as an instance of Error.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nexport function isErrorWithMessage(\n error: unknown,\n): error is { message: string } {\n return typeof error === 'object' && error !== null && 'message' in error;\n}\n\n/**\n * Type guard for determining whether the given value is an error object with a\n * `stack` property, such as an instance of Error.\n *\n * @param error - The object to check.\n * @returns A boolean.\n */\nexport function isErrorWithStack(error: unknown): error is { stack: string } {\n return typeof error === 'object' && error !== null && 'stack' in error;\n}\n\n/**\n * Attempts to obtain the message from a possible error object, defaulting to an\n * empty string if it is impossible to do so.\n *\n * @param error - The possible error to get the message from.\n * @returns The message if `error` is an object with a `message` property;\n * the string version of `error` if it is not `undefined` or `null`; otherwise\n * an empty string.\n */\nexport function getErrorMessage(error: unknown): string {\n if (isErrorWithMessage(error) && typeof error.message === 'string') {\n return error.message;\n }\n\n if (isNullOrUndefined(error)) {\n return '';\n }\n\n return String(error);\n}\n\n/**\n * Builds a new error object, linking it to the original error via the `cause`\n * property if it is an Error.\n *\n * This function is useful to reframe error messages in general, but is\n * _critical_ when interacting with any of Node's filesystem functions as\n * provided via `fs.promises`, because these do not produce stack traces in the\n * case of an I/O error (see <https://github.com/nodejs/node/issues/30944>).\n *\n * @param originalError - The error to be wrapped (something throwable).\n * @param message - The desired message of the new error.\n * @returns A new error object.\n */\nexport function wrapError<Throwable>(\n originalError: Throwable,\n message: string,\n): Error & { code?: string } {\n if (isError(originalError)) {\n let error: Error & { code?: string };\n if (Error.length === 2) {\n // for some reason `tsserver` is not complaining that the\n // Error constructor doesn't support a second argument in the editor,\n // but `tsc` does. Error causes are not supported by our current tsc target (ES2020, we need ES2022 to make this work)\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n error = new Error(message, { cause: originalError });\n } else {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n error = new ErrorWithCause(message, { cause: originalError });\n }\n\n if (isErrorWithCode(originalError)) {\n error.code = originalError.code;\n }\n\n return error;\n }\n\n if (message.length > 0) {\n return new Error(`${String(originalError)}: ${message}`);\n }\n\n return new Error(String(originalError));\n}\n"],"mappings":";;;;;;AAAA,SAAS,sBAAsB;AAY/B,SAAS,QAAQ,OAAgC;AAC/C,SACE,iBAAiB,SAChB,SAAS,KAAK,KAAK,MAAM,YAAY,SAAS;AAEnD;AAUO,SAAS,gBAAgB,OAA2C;AACzE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,UAAU;AAClE;AASO,SAAS,mBACd,OAC8B;AAC9B,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,aAAa;AACrE;AASO,SAAS,iBAAiB,OAA4C;AAC3E,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,WAAW;AACnE;AAWO,SAAS,gBAAgB,OAAwB;AACtD,MAAI,mBAAmB,KAAK,KAAK,OAAO,MAAM,YAAY,UAAU;AAClE,WAAO,MAAM;AAAA,EACf;AAEA,MAAI,kBAAkB,KAAK,GAAG;AAC5B,WAAO;AAAA,EACT;AAEA,SAAO,OAAO,KAAK;AACrB;AAeO,SAAS,UACd,eACA,SAC2B;AAC3B,MAAI,QAAQ,aAAa,GAAG;AAC1B,QAAI;AACJ,QAAI,MAAM,WAAW,GAAG;AAMtB,cAAQ,IAAI,MAAM,SAAS,EAAE,OAAO,cAAc,CAAC;AAAA,IACrD,OAAO;AAGL,cAAQ,IAAI,eAAe,SAAS,EAAE,OAAO,cAAc,CAAC;AAAA,IAC9D;AAEA,QAAI,gBAAgB,aAAa,GAAG;AAClC,YAAM,OAAO,cAAc;AAAA,IAC7B;AAEA,WAAO;AAAA,EACT;AAEA,MAAI,QAAQ,SAAS,GAAG;AACtB,WAAO,IAAI,MAAM,GAAG,OAAO,aAAa,CAAC,KAAK,OAAO,EAAE;AAAA,EACzD;AAEA,SAAO,IAAI,MAAM,OAAO,aAAa,CAAC;AACxC;","names":[]}
package/dist/coercers.js CHANGED
@@ -3,10 +3,10 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkJCYFTGEDjs = require('./chunk-JCYFTGED.js');
7
- require('./chunk-YQJBIHC7.js');
8
- require('./chunk-VBYRLAP6.js');
9
- require('./chunk-DMPG3H3G.js');
6
+ var _chunkDHVKFDHQjs = require('./chunk-DHVKFDHQ.js');
7
+ require('./chunk-QEPVHEP7.js');
8
+ require('./chunk-6ZDHSOUV.js');
9
+ require('./chunk-IZC266HS.js');
10
10
  require('./chunk-QVEKZRZ2.js');
11
11
  require('./chunk-3W5G4CYI.js');
12
12
 
@@ -14,5 +14,5 @@ require('./chunk-3W5G4CYI.js');
14
14
 
15
15
 
16
16
 
17
- exports.createBigInt = _chunkJCYFTGEDjs.createBigInt; exports.createBytes = _chunkJCYFTGEDjs.createBytes; exports.createHex = _chunkJCYFTGEDjs.createHex; exports.createNumber = _chunkJCYFTGEDjs.createNumber;
17
+ exports.createBigInt = _chunkDHVKFDHQjs.createBigInt; exports.createBytes = _chunkDHVKFDHQjs.createBytes; exports.createHex = _chunkDHVKFDHQjs.createHex; exports.createNumber = _chunkDHVKFDHQjs.createNumber;
18
18
  //# sourceMappingURL=coercers.js.map
package/dist/coercers.mjs CHANGED
@@ -3,10 +3,10 @@ import {
3
3
  createBytes,
4
4
  createHex,
5
5
  createNumber
6
- } from "./chunk-2CY4F77D.mjs";
7
- import "./chunk-BKR45GQY.mjs";
8
- import "./chunk-CSDMTDND.mjs";
9
- import "./chunk-7S5AWFX7.mjs";
6
+ } from "./chunk-O3EIM33O.mjs";
7
+ import "./chunk-VA2DRBDE.mjs";
8
+ import "./chunk-74DGVJVE.mjs";
9
+ import "./chunk-XYGUOY6N.mjs";
10
10
  import "./chunk-H4YFDLB7.mjs";
11
11
  import "./chunk-X66SUIEF.mjs";
12
12
  export {
package/dist/errors.js CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkDMPG3H3Gjs = require('./chunk-DMPG3H3G.js');
7
+ var _chunkIZC266HSjs = require('./chunk-IZC266HS.js');
8
8
  require('./chunk-QVEKZRZ2.js');
9
9
  require('./chunk-3W5G4CYI.js');
10
10
 
@@ -13,5 +13,5 @@ require('./chunk-3W5G4CYI.js');
13
13
 
14
14
 
15
15
 
16
- exports.getErrorMessage = _chunkDMPG3H3Gjs.getErrorMessage; exports.isErrorWithCode = _chunkDMPG3H3Gjs.isErrorWithCode; exports.isErrorWithMessage = _chunkDMPG3H3Gjs.isErrorWithMessage; exports.isErrorWithStack = _chunkDMPG3H3Gjs.isErrorWithStack; exports.wrapError = _chunkDMPG3H3Gjs.wrapError;
16
+ exports.getErrorMessage = _chunkIZC266HSjs.getErrorMessage; exports.isErrorWithCode = _chunkIZC266HSjs.isErrorWithCode; exports.isErrorWithMessage = _chunkIZC266HSjs.isErrorWithMessage; exports.isErrorWithStack = _chunkIZC266HSjs.isErrorWithStack; exports.wrapError = _chunkIZC266HSjs.wrapError;
17
17
  //# sourceMappingURL=errors.js.map
package/dist/errors.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  isErrorWithMessage,
5
5
  isErrorWithStack,
6
6
  wrapError
7
- } from "./chunk-7S5AWFX7.mjs";
7
+ } from "./chunk-XYGUOY6N.mjs";
8
8
  import "./chunk-H4YFDLB7.mjs";
9
9
  import "./chunk-X66SUIEF.mjs";
10
10
  export {
package/dist/fs.js CHANGED
@@ -8,8 +8,8 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkWQDTPIQKjs = require('./chunk-WQDTPIQK.js');
12
- require('./chunk-DMPG3H3G.js');
11
+ var _chunkBFQDMI3Mjs = require('./chunk-BFQDMI3M.js');
12
+ require('./chunk-IZC266HS.js');
13
13
  require('./chunk-QVEKZRZ2.js');
14
14
  require('./chunk-3W5G4CYI.js');
15
15
 
@@ -22,5 +22,5 @@ require('./chunk-3W5G4CYI.js');
22
22
 
23
23
 
24
24
 
25
- exports.createSandbox = _chunkWQDTPIQKjs.createSandbox; exports.directoryExists = _chunkWQDTPIQKjs.directoryExists; exports.ensureDirectoryStructureExists = _chunkWQDTPIQKjs.ensureDirectoryStructureExists; exports.fileExists = _chunkWQDTPIQKjs.fileExists; exports.forceRemove = _chunkWQDTPIQKjs.forceRemove; exports.readFile = _chunkWQDTPIQKjs.readFile; exports.readJsonFile = _chunkWQDTPIQKjs.readJsonFile; exports.writeFile = _chunkWQDTPIQKjs.writeFile; exports.writeJsonFile = _chunkWQDTPIQKjs.writeJsonFile;
25
+ exports.createSandbox = _chunkBFQDMI3Mjs.createSandbox; exports.directoryExists = _chunkBFQDMI3Mjs.directoryExists; exports.ensureDirectoryStructureExists = _chunkBFQDMI3Mjs.ensureDirectoryStructureExists; exports.fileExists = _chunkBFQDMI3Mjs.fileExists; exports.forceRemove = _chunkBFQDMI3Mjs.forceRemove; exports.readFile = _chunkBFQDMI3Mjs.readFile; exports.readJsonFile = _chunkBFQDMI3Mjs.readJsonFile; exports.writeFile = _chunkBFQDMI3Mjs.writeFile; exports.writeJsonFile = _chunkBFQDMI3Mjs.writeJsonFile;
26
26
  //# sourceMappingURL=fs.js.map
package/dist/fs.mjs CHANGED
@@ -8,8 +8,8 @@ import {
8
8
  readJsonFile,
9
9
  writeFile,
10
10
  writeJsonFile
11
- } from "./chunk-VL5DYXC5.mjs";
12
- import "./chunk-7S5AWFX7.mjs";
11
+ } from "./chunk-52OU772R.mjs";
12
+ import "./chunk-XYGUOY6N.mjs";
13
13
  import "./chunk-H4YFDLB7.mjs";
14
14
  import "./chunk-X66SUIEF.mjs";
15
15
  export {
package/dist/hex.js CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkYQJBIHC7js = require('./chunk-YQJBIHC7.js');
16
- require('./chunk-VBYRLAP6.js');
17
- require('./chunk-DMPG3H3G.js');
15
+ var _chunkQEPVHEP7js = require('./chunk-QEPVHEP7.js');
16
+ require('./chunk-6ZDHSOUV.js');
17
+ require('./chunk-IZC266HS.js');
18
18
  require('./chunk-QVEKZRZ2.js');
19
19
  require('./chunk-3W5G4CYI.js');
20
20
 
@@ -31,5 +31,5 @@ require('./chunk-3W5G4CYI.js');
31
31
 
32
32
 
33
33
 
34
- exports.HexAddressStruct = _chunkYQJBIHC7js.HexAddressStruct; exports.HexChecksumAddressStruct = _chunkYQJBIHC7js.HexChecksumAddressStruct; exports.HexStruct = _chunkYQJBIHC7js.HexStruct; exports.StrictHexStruct = _chunkYQJBIHC7js.StrictHexStruct; exports.add0x = _chunkYQJBIHC7js.add0x; exports.assertIsHexString = _chunkYQJBIHC7js.assertIsHexString; exports.assertIsStrictHexString = _chunkYQJBIHC7js.assertIsStrictHexString; exports.getChecksumAddress = _chunkYQJBIHC7js.getChecksumAddress; exports.isHexString = _chunkYQJBIHC7js.isHexString; exports.isStrictHexString = _chunkYQJBIHC7js.isStrictHexString; exports.isValidChecksumAddress = _chunkYQJBIHC7js.isValidChecksumAddress; exports.isValidHexAddress = _chunkYQJBIHC7js.isValidHexAddress; exports.remove0x = _chunkYQJBIHC7js.remove0x;
34
+ exports.HexAddressStruct = _chunkQEPVHEP7js.HexAddressStruct; exports.HexChecksumAddressStruct = _chunkQEPVHEP7js.HexChecksumAddressStruct; exports.HexStruct = _chunkQEPVHEP7js.HexStruct; exports.StrictHexStruct = _chunkQEPVHEP7js.StrictHexStruct; exports.add0x = _chunkQEPVHEP7js.add0x; exports.assertIsHexString = _chunkQEPVHEP7js.assertIsHexString; exports.assertIsStrictHexString = _chunkQEPVHEP7js.assertIsStrictHexString; exports.getChecksumAddress = _chunkQEPVHEP7js.getChecksumAddress; exports.isHexString = _chunkQEPVHEP7js.isHexString; exports.isStrictHexString = _chunkQEPVHEP7js.isStrictHexString; exports.isValidChecksumAddress = _chunkQEPVHEP7js.isValidChecksumAddress; exports.isValidHexAddress = _chunkQEPVHEP7js.isValidHexAddress; exports.remove0x = _chunkQEPVHEP7js.remove0x;
35
35
  //# sourceMappingURL=hex.js.map
package/dist/hex.mjs CHANGED
@@ -12,9 +12,9 @@ import {
12
12
  isValidChecksumAddress,
13
13
  isValidHexAddress,
14
14
  remove0x
15
- } from "./chunk-BKR45GQY.mjs";
16
- import "./chunk-CSDMTDND.mjs";
17
- import "./chunk-7S5AWFX7.mjs";
15
+ } from "./chunk-VA2DRBDE.mjs";
16
+ import "./chunk-74DGVJVE.mjs";
17
+ import "./chunk-XYGUOY6N.mjs";
18
18
  import "./chunk-H4YFDLB7.mjs";
19
19
  import "./chunk-X66SUIEF.mjs";
20
20
  export {
package/dist/index.js CHANGED
@@ -1,13 +1,16 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-2TBCL6EF.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-5AVWINSB.js');
2
2
 
3
3
 
4
4
 
5
5
 
6
6
 
7
- var _chunk4JNG5UTOjs = require('./chunk-4JNG5UTO.js');
7
+ var _chunkVFXTVNXNjs = require('./chunk-VFXTVNXN.js');
8
8
  require('./chunk-LC2CRSWD.js');
9
9
 
10
10
 
11
+ var _chunk4NIRTM4Mjs = require('./chunk-4NIRTM4M.js');
12
+
13
+
11
14
 
12
15
 
13
16
  var _chunk4RMX5YWEjs = require('./chunk-4RMX5YWE.js');
@@ -22,7 +25,7 @@ require('./chunk-UOTVU7OQ.js');
22
25
 
23
26
 
24
27
 
25
- var _chunkZRNIY7OWjs = require('./chunk-ZRNIY7OW.js');
28
+ var _chunk4D6XQBHAjs = require('./chunk-4D6XQBHA.js');
26
29
 
27
30
 
28
31
 
@@ -57,7 +60,7 @@ var _chunkZRNIY7OWjs = require('./chunk-ZRNIY7OW.js');
57
60
 
58
61
 
59
62
 
60
- var _chunk5WQRFJVQjs = require('./chunk-5WQRFJVQ.js');
63
+ var _chunkOLLG4H35js = require('./chunk-OLLG4H35.js');
61
64
  require('./chunk-RKRGAFXY.js');
62
65
 
63
66
 
@@ -84,16 +87,16 @@ var _chunk2LBGT4GHjs = require('./chunk-2LBGT4GH.js');
84
87
  var _chunkU7ZUGCE7js = require('./chunk-U7ZUGCE7.js');
85
88
 
86
89
 
87
- var _chunkXYYGZF5Yjs = require('./chunk-XYYGZF5Y.js');
90
+ var _chunkE4C7EW4Rjs = require('./chunk-E4C7EW4R.js');
88
91
 
89
92
 
90
- var _chunkWRBN6DWMjs = require('./chunk-WRBN6DWM.js');
93
+ var _chunk6NZW4WK4js = require('./chunk-6NZW4WK4.js');
91
94
 
92
95
 
93
96
 
94
97
 
95
98
 
96
- var _chunkJCYFTGEDjs = require('./chunk-JCYFTGED.js');
99
+ var _chunkDHVKFDHQjs = require('./chunk-DHVKFDHQ.js');
97
100
 
98
101
 
99
102
 
@@ -125,20 +128,20 @@ var _chunkJCYFTGEDjs = require('./chunk-JCYFTGED.js');
125
128
 
126
129
 
127
130
 
128
- var _chunkYQJBIHC7js = require('./chunk-YQJBIHC7.js');
131
+ var _chunkQEPVHEP7js = require('./chunk-QEPVHEP7.js');
129
132
 
130
133
 
131
134
 
132
135
 
133
136
 
134
- var _chunkVBYRLAP6js = require('./chunk-VBYRLAP6.js');
137
+ var _chunk6ZDHSOUVjs = require('./chunk-6ZDHSOUV.js');
135
138
 
136
139
 
137
140
 
138
141
 
139
142
 
140
143
 
141
- var _chunkDMPG3H3Gjs = require('./chunk-DMPG3H3G.js');
144
+ var _chunkIZC266HSjs = require('./chunk-IZC266HS.js');
142
145
 
143
146
 
144
147
 
@@ -285,5 +288,6 @@ require('./chunk-EQMZL4XU.js');
285
288
 
286
289
 
287
290
 
288
- exports.AssertionError = _chunkVBYRLAP6js.AssertionError; exports.CAIP_ACCOUNT_ADDRESS_REGEX = _chunkU7ZUGCE7js.CAIP_ACCOUNT_ADDRESS_REGEX; exports.CAIP_ACCOUNT_ID_REGEX = _chunkU7ZUGCE7js.CAIP_ACCOUNT_ID_REGEX; exports.CAIP_CHAIN_ID_REGEX = _chunkU7ZUGCE7js.CAIP_CHAIN_ID_REGEX; exports.CAIP_NAMESPACE_REGEX = _chunkU7ZUGCE7js.CAIP_NAMESPACE_REGEX; exports.CAIP_REFERENCE_REGEX = _chunkU7ZUGCE7js.CAIP_REFERENCE_REGEX; exports.CaipAccountAddressStruct = _chunkU7ZUGCE7js.CaipAccountAddressStruct; exports.CaipAccountIdStruct = _chunkU7ZUGCE7js.CaipAccountIdStruct; exports.CaipChainIdStruct = _chunkU7ZUGCE7js.CaipChainIdStruct; exports.CaipNamespaceStruct = _chunkU7ZUGCE7js.CaipNamespaceStruct; exports.CaipReferenceStruct = _chunkU7ZUGCE7js.CaipReferenceStruct; exports.ChecksumStruct = _chunkXYYGZF5Yjs.ChecksumStruct; exports.Duration = _chunk4RMX5YWEjs.Duration; exports.ESCAPE_CHARACTERS_REGEXP = _chunkQVEKZRZ2js.ESCAPE_CHARACTERS_REGEXP; exports.FrozenMap = _chunkZ2RGWDD7js.FrozenMap; exports.FrozenSet = _chunkZ2RGWDD7js.FrozenSet; exports.HexAddressStruct = _chunkYQJBIHC7js.HexAddressStruct; exports.HexChecksumAddressStruct = _chunkYQJBIHC7js.HexChecksumAddressStruct; exports.HexStruct = _chunkYQJBIHC7js.HexStruct; exports.JsonRpcErrorStruct = _chunk5WQRFJVQjs.JsonRpcErrorStruct; exports.JsonRpcFailureStruct = _chunk5WQRFJVQjs.JsonRpcFailureStruct; exports.JsonRpcIdStruct = _chunk5WQRFJVQjs.JsonRpcIdStruct; exports.JsonRpcNotificationStruct = _chunk5WQRFJVQjs.JsonRpcNotificationStruct; exports.JsonRpcParamsStruct = _chunk5WQRFJVQjs.JsonRpcParamsStruct; exports.JsonRpcRequestStruct = _chunk5WQRFJVQjs.JsonRpcRequestStruct; exports.JsonRpcResponseStruct = _chunk5WQRFJVQjs.JsonRpcResponseStruct; exports.JsonRpcSuccessStruct = _chunk5WQRFJVQjs.JsonRpcSuccessStruct; exports.JsonRpcVersionStruct = _chunk5WQRFJVQjs.JsonRpcVersionStruct; exports.JsonSize = _chunkQVEKZRZ2js.JsonSize; exports.JsonStruct = _chunk5WQRFJVQjs.JsonStruct; exports.PendingJsonRpcResponseStruct = _chunk5WQRFJVQjs.PendingJsonRpcResponseStruct; exports.StrictHexStruct = _chunkYQJBIHC7js.StrictHexStruct; exports.UnsafeJsonStruct = _chunk5WQRFJVQjs.UnsafeJsonStruct; exports.VersionRangeStruct = _chunkZRNIY7OWjs.VersionRangeStruct; exports.VersionStruct = _chunkZRNIY7OWjs.VersionStruct; exports.add0x = _chunkYQJBIHC7js.add0x; exports.assert = _chunkVBYRLAP6js.assert; exports.assertExhaustive = _chunkVBYRLAP6js.assertExhaustive; exports.assertIsBytes = _chunkYQJBIHC7js.assertIsBytes; exports.assertIsHexString = _chunkYQJBIHC7js.assertIsHexString; exports.assertIsJsonRpcError = _chunk5WQRFJVQjs.assertIsJsonRpcError; exports.assertIsJsonRpcFailure = _chunk5WQRFJVQjs.assertIsJsonRpcFailure; exports.assertIsJsonRpcNotification = _chunk5WQRFJVQjs.assertIsJsonRpcNotification; exports.assertIsJsonRpcRequest = _chunk5WQRFJVQjs.assertIsJsonRpcRequest; exports.assertIsJsonRpcResponse = _chunk5WQRFJVQjs.assertIsJsonRpcResponse; exports.assertIsJsonRpcSuccess = _chunk5WQRFJVQjs.assertIsJsonRpcSuccess; exports.assertIsPendingJsonRpcResponse = _chunk5WQRFJVQjs.assertIsPendingJsonRpcResponse; exports.assertIsSemVerRange = _chunkZRNIY7OWjs.assertIsSemVerRange; exports.assertIsSemVerVersion = _chunkZRNIY7OWjs.assertIsSemVerVersion; exports.assertIsStrictHexString = _chunkYQJBIHC7js.assertIsStrictHexString; exports.assertStruct = _chunkVBYRLAP6js.assertStruct; exports.base64 = _chunkWRBN6DWMjs.base64; exports.base64ToBytes = _chunkYQJBIHC7js.base64ToBytes; exports.bigIntToBytes = _chunkYQJBIHC7js.bigIntToBytes; exports.bigIntToHex = _chunk4JNG5UTOjs.bigIntToHex; exports.bytesToBase64 = _chunkYQJBIHC7js.bytesToBase64; exports.bytesToBigInt = _chunkYQJBIHC7js.bytesToBigInt; exports.bytesToHex = _chunkYQJBIHC7js.bytesToHex; exports.bytesToNumber = _chunkYQJBIHC7js.bytesToNumber; exports.bytesToSignedBigInt = _chunkYQJBIHC7js.bytesToSignedBigInt; exports.bytesToString = _chunkYQJBIHC7js.bytesToString; exports.calculateNumberSize = _chunkQVEKZRZ2js.calculateNumberSize; exports.calculateStringSize = _chunkQVEKZRZ2js.calculateStringSize; exports.concatBytes = _chunkYQJBIHC7js.concatBytes; exports.createBigInt = _chunkJCYFTGEDjs.createBigInt; exports.createBytes = _chunkJCYFTGEDjs.createBytes; exports.createDataView = _chunkYQJBIHC7js.createDataView; exports.createHex = _chunkJCYFTGEDjs.createHex; exports.createModuleLogger = _chunk2LBGT4GHjs.createModuleLogger; exports.createNumber = _chunkJCYFTGEDjs.createNumber; exports.createProjectLogger = _chunk2LBGT4GHjs.createProjectLogger; exports.exactOptional = _chunk5WQRFJVQjs.exactOptional; exports.getChecksumAddress = _chunkYQJBIHC7js.getChecksumAddress; exports.getErrorMessage = _chunkDMPG3H3Gjs.getErrorMessage; exports.getJsonRpcIdValidator = _chunk5WQRFJVQjs.getJsonRpcIdValidator; exports.getJsonSize = _chunk5WQRFJVQjs.getJsonSize; exports.getKnownPropertyNames = _chunkQVEKZRZ2js.getKnownPropertyNames; exports.getSafeJson = _chunk5WQRFJVQjs.getSafeJson; exports.gtRange = _chunkZRNIY7OWjs.gtRange; exports.gtVersion = _chunkZRNIY7OWjs.gtVersion; exports.hasProperty = _chunkQVEKZRZ2js.hasProperty; exports.hexToBigInt = _chunk4JNG5UTOjs.hexToBigInt; exports.hexToBytes = _chunkYQJBIHC7js.hexToBytes; exports.hexToNumber = _chunk4JNG5UTOjs.hexToNumber; exports.inMilliseconds = _chunk4RMX5YWEjs.inMilliseconds; exports.isASCII = _chunkQVEKZRZ2js.isASCII; exports.isBytes = _chunkYQJBIHC7js.isBytes; exports.isCaipAccountAddress = _chunkU7ZUGCE7js.isCaipAccountAddress; exports.isCaipAccountId = _chunkU7ZUGCE7js.isCaipAccountId; exports.isCaipChainId = _chunkU7ZUGCE7js.isCaipChainId; exports.isCaipNamespace = _chunkU7ZUGCE7js.isCaipNamespace; exports.isCaipReference = _chunkU7ZUGCE7js.isCaipReference; exports.isErrorWithCode = _chunkDMPG3H3Gjs.isErrorWithCode; exports.isErrorWithMessage = _chunkDMPG3H3Gjs.isErrorWithMessage; exports.isErrorWithStack = _chunkDMPG3H3Gjs.isErrorWithStack; exports.isHexString = _chunkYQJBIHC7js.isHexString; exports.isJsonRpcError = _chunk5WQRFJVQjs.isJsonRpcError; exports.isJsonRpcFailure = _chunk5WQRFJVQjs.isJsonRpcFailure; exports.isJsonRpcNotification = _chunk5WQRFJVQjs.isJsonRpcNotification; exports.isJsonRpcRequest = _chunk5WQRFJVQjs.isJsonRpcRequest; exports.isJsonRpcResponse = _chunk5WQRFJVQjs.isJsonRpcResponse; exports.isJsonRpcSuccess = _chunk5WQRFJVQjs.isJsonRpcSuccess; exports.isNonEmptyArray = _chunkQVEKZRZ2js.isNonEmptyArray; exports.isNullOrUndefined = _chunkQVEKZRZ2js.isNullOrUndefined; exports.isObject = _chunkQVEKZRZ2js.isObject; exports.isPendingJsonRpcResponse = _chunk5WQRFJVQjs.isPendingJsonRpcResponse; exports.isPlainObject = _chunkQVEKZRZ2js.isPlainObject; exports.isStrictHexString = _chunkYQJBIHC7js.isStrictHexString; exports.isValidChecksumAddress = _chunkYQJBIHC7js.isValidChecksumAddress; exports.isValidHexAddress = _chunkYQJBIHC7js.isValidHexAddress; exports.isValidJson = _chunk5WQRFJVQjs.isValidJson; exports.isValidSemVerRange = _chunkZRNIY7OWjs.isValidSemVerRange; exports.isValidSemVerVersion = _chunkZRNIY7OWjs.isValidSemVerVersion; exports.jsonrpc2 = _chunk5WQRFJVQjs.jsonrpc2; exports.numberToBytes = _chunkYQJBIHC7js.numberToBytes; exports.numberToHex = _chunk4JNG5UTOjs.numberToHex; exports.object = _chunk5WQRFJVQjs.object; exports.parseCaipAccountId = _chunkU7ZUGCE7js.parseCaipAccountId; exports.parseCaipChainId = _chunkU7ZUGCE7js.parseCaipChainId; exports.remove0x = _chunkYQJBIHC7js.remove0x; exports.satisfiesVersionRange = _chunkZRNIY7OWjs.satisfiesVersionRange; exports.signedBigIntToBytes = _chunkYQJBIHC7js.signedBigIntToBytes; exports.stringToBytes = _chunkYQJBIHC7js.stringToBytes; exports.timeSince = _chunk4RMX5YWEjs.timeSince; exports.valueToBytes = _chunkYQJBIHC7js.valueToBytes; exports.wrapError = _chunkDMPG3H3Gjs.wrapError;
291
+
292
+ exports.AssertionError = _chunk6ZDHSOUVjs.AssertionError; exports.CAIP_ACCOUNT_ADDRESS_REGEX = _chunkU7ZUGCE7js.CAIP_ACCOUNT_ADDRESS_REGEX; exports.CAIP_ACCOUNT_ID_REGEX = _chunkU7ZUGCE7js.CAIP_ACCOUNT_ID_REGEX; exports.CAIP_CHAIN_ID_REGEX = _chunkU7ZUGCE7js.CAIP_CHAIN_ID_REGEX; exports.CAIP_NAMESPACE_REGEX = _chunkU7ZUGCE7js.CAIP_NAMESPACE_REGEX; exports.CAIP_REFERENCE_REGEX = _chunkU7ZUGCE7js.CAIP_REFERENCE_REGEX; exports.CaipAccountAddressStruct = _chunkU7ZUGCE7js.CaipAccountAddressStruct; exports.CaipAccountIdStruct = _chunkU7ZUGCE7js.CaipAccountIdStruct; exports.CaipChainIdStruct = _chunkU7ZUGCE7js.CaipChainIdStruct; exports.CaipNamespaceStruct = _chunkU7ZUGCE7js.CaipNamespaceStruct; exports.CaipReferenceStruct = _chunkU7ZUGCE7js.CaipReferenceStruct; exports.ChecksumStruct = _chunkE4C7EW4Rjs.ChecksumStruct; exports.Duration = _chunk4RMX5YWEjs.Duration; exports.ESCAPE_CHARACTERS_REGEXP = _chunkQVEKZRZ2js.ESCAPE_CHARACTERS_REGEXP; exports.FrozenMap = _chunkZ2RGWDD7js.FrozenMap; exports.FrozenSet = _chunkZ2RGWDD7js.FrozenSet; exports.HexAddressStruct = _chunkQEPVHEP7js.HexAddressStruct; exports.HexChecksumAddressStruct = _chunkQEPVHEP7js.HexChecksumAddressStruct; exports.HexStruct = _chunkQEPVHEP7js.HexStruct; exports.JsonRpcErrorStruct = _chunkOLLG4H35js.JsonRpcErrorStruct; exports.JsonRpcFailureStruct = _chunkOLLG4H35js.JsonRpcFailureStruct; exports.JsonRpcIdStruct = _chunkOLLG4H35js.JsonRpcIdStruct; exports.JsonRpcNotificationStruct = _chunkOLLG4H35js.JsonRpcNotificationStruct; exports.JsonRpcParamsStruct = _chunkOLLG4H35js.JsonRpcParamsStruct; exports.JsonRpcRequestStruct = _chunkOLLG4H35js.JsonRpcRequestStruct; exports.JsonRpcResponseStruct = _chunkOLLG4H35js.JsonRpcResponseStruct; exports.JsonRpcSuccessStruct = _chunkOLLG4H35js.JsonRpcSuccessStruct; exports.JsonRpcVersionStruct = _chunkOLLG4H35js.JsonRpcVersionStruct; exports.JsonSize = _chunkQVEKZRZ2js.JsonSize; exports.JsonStruct = _chunkOLLG4H35js.JsonStruct; exports.PendingJsonRpcResponseStruct = _chunkOLLG4H35js.PendingJsonRpcResponseStruct; exports.StrictHexStruct = _chunkQEPVHEP7js.StrictHexStruct; exports.UnsafeJsonStruct = _chunkOLLG4H35js.UnsafeJsonStruct; exports.VersionRangeStruct = _chunk4D6XQBHAjs.VersionRangeStruct; exports.VersionStruct = _chunk4D6XQBHAjs.VersionStruct; exports.add0x = _chunkQEPVHEP7js.add0x; exports.assert = _chunk6ZDHSOUVjs.assert; exports.assertExhaustive = _chunk6ZDHSOUVjs.assertExhaustive; exports.assertIsBytes = _chunkQEPVHEP7js.assertIsBytes; exports.assertIsHexString = _chunkQEPVHEP7js.assertIsHexString; exports.assertIsJsonRpcError = _chunkOLLG4H35js.assertIsJsonRpcError; exports.assertIsJsonRpcFailure = _chunkOLLG4H35js.assertIsJsonRpcFailure; exports.assertIsJsonRpcNotification = _chunkOLLG4H35js.assertIsJsonRpcNotification; exports.assertIsJsonRpcRequest = _chunkOLLG4H35js.assertIsJsonRpcRequest; exports.assertIsJsonRpcResponse = _chunkOLLG4H35js.assertIsJsonRpcResponse; exports.assertIsJsonRpcSuccess = _chunkOLLG4H35js.assertIsJsonRpcSuccess; exports.assertIsPendingJsonRpcResponse = _chunkOLLG4H35js.assertIsPendingJsonRpcResponse; exports.assertIsSemVerRange = _chunk4D6XQBHAjs.assertIsSemVerRange; exports.assertIsSemVerVersion = _chunk4D6XQBHAjs.assertIsSemVerVersion; exports.assertIsStrictHexString = _chunkQEPVHEP7js.assertIsStrictHexString; exports.assertStruct = _chunk6ZDHSOUVjs.assertStruct; exports.base64 = _chunk6NZW4WK4js.base64; exports.base64ToBytes = _chunkQEPVHEP7js.base64ToBytes; exports.bigIntToBytes = _chunkQEPVHEP7js.bigIntToBytes; exports.bigIntToHex = _chunkVFXTVNXNjs.bigIntToHex; exports.bytesToBase64 = _chunkQEPVHEP7js.bytesToBase64; exports.bytesToBigInt = _chunkQEPVHEP7js.bytesToBigInt; exports.bytesToHex = _chunkQEPVHEP7js.bytesToHex; exports.bytesToNumber = _chunkQEPVHEP7js.bytesToNumber; exports.bytesToSignedBigInt = _chunkQEPVHEP7js.bytesToSignedBigInt; exports.bytesToString = _chunkQEPVHEP7js.bytesToString; exports.calculateNumberSize = _chunkQVEKZRZ2js.calculateNumberSize; exports.calculateStringSize = _chunkQVEKZRZ2js.calculateStringSize; exports.concatBytes = _chunkQEPVHEP7js.concatBytes; exports.createBigInt = _chunkDHVKFDHQjs.createBigInt; exports.createBytes = _chunkDHVKFDHQjs.createBytes; exports.createDataView = _chunkQEPVHEP7js.createDataView; exports.createDeferredPromise = _chunk4NIRTM4Mjs.createDeferredPromise; exports.createHex = _chunkDHVKFDHQjs.createHex; exports.createModuleLogger = _chunk2LBGT4GHjs.createModuleLogger; exports.createNumber = _chunkDHVKFDHQjs.createNumber; exports.createProjectLogger = _chunk2LBGT4GHjs.createProjectLogger; exports.exactOptional = _chunkOLLG4H35js.exactOptional; exports.getChecksumAddress = _chunkQEPVHEP7js.getChecksumAddress; exports.getErrorMessage = _chunkIZC266HSjs.getErrorMessage; exports.getJsonRpcIdValidator = _chunkOLLG4H35js.getJsonRpcIdValidator; exports.getJsonSize = _chunkOLLG4H35js.getJsonSize; exports.getKnownPropertyNames = _chunkQVEKZRZ2js.getKnownPropertyNames; exports.getSafeJson = _chunkOLLG4H35js.getSafeJson; exports.gtRange = _chunk4D6XQBHAjs.gtRange; exports.gtVersion = _chunk4D6XQBHAjs.gtVersion; exports.hasProperty = _chunkQVEKZRZ2js.hasProperty; exports.hexToBigInt = _chunkVFXTVNXNjs.hexToBigInt; exports.hexToBytes = _chunkQEPVHEP7js.hexToBytes; exports.hexToNumber = _chunkVFXTVNXNjs.hexToNumber; exports.inMilliseconds = _chunk4RMX5YWEjs.inMilliseconds; exports.isASCII = _chunkQVEKZRZ2js.isASCII; exports.isBytes = _chunkQEPVHEP7js.isBytes; exports.isCaipAccountAddress = _chunkU7ZUGCE7js.isCaipAccountAddress; exports.isCaipAccountId = _chunkU7ZUGCE7js.isCaipAccountId; exports.isCaipChainId = _chunkU7ZUGCE7js.isCaipChainId; exports.isCaipNamespace = _chunkU7ZUGCE7js.isCaipNamespace; exports.isCaipReference = _chunkU7ZUGCE7js.isCaipReference; exports.isErrorWithCode = _chunkIZC266HSjs.isErrorWithCode; exports.isErrorWithMessage = _chunkIZC266HSjs.isErrorWithMessage; exports.isErrorWithStack = _chunkIZC266HSjs.isErrorWithStack; exports.isHexString = _chunkQEPVHEP7js.isHexString; exports.isJsonRpcError = _chunkOLLG4H35js.isJsonRpcError; exports.isJsonRpcFailure = _chunkOLLG4H35js.isJsonRpcFailure; exports.isJsonRpcNotification = _chunkOLLG4H35js.isJsonRpcNotification; exports.isJsonRpcRequest = _chunkOLLG4H35js.isJsonRpcRequest; exports.isJsonRpcResponse = _chunkOLLG4H35js.isJsonRpcResponse; exports.isJsonRpcSuccess = _chunkOLLG4H35js.isJsonRpcSuccess; exports.isNonEmptyArray = _chunkQVEKZRZ2js.isNonEmptyArray; exports.isNullOrUndefined = _chunkQVEKZRZ2js.isNullOrUndefined; exports.isObject = _chunkQVEKZRZ2js.isObject; exports.isPendingJsonRpcResponse = _chunkOLLG4H35js.isPendingJsonRpcResponse; exports.isPlainObject = _chunkQVEKZRZ2js.isPlainObject; exports.isStrictHexString = _chunkQEPVHEP7js.isStrictHexString; exports.isValidChecksumAddress = _chunkQEPVHEP7js.isValidChecksumAddress; exports.isValidHexAddress = _chunkQEPVHEP7js.isValidHexAddress; exports.isValidJson = _chunkOLLG4H35js.isValidJson; exports.isValidSemVerRange = _chunk4D6XQBHAjs.isValidSemVerRange; exports.isValidSemVerVersion = _chunk4D6XQBHAjs.isValidSemVerVersion; exports.jsonrpc2 = _chunkOLLG4H35js.jsonrpc2; exports.numberToBytes = _chunkQEPVHEP7js.numberToBytes; exports.numberToHex = _chunkVFXTVNXNjs.numberToHex; exports.object = _chunkOLLG4H35js.object; exports.parseCaipAccountId = _chunkU7ZUGCE7js.parseCaipAccountId; exports.parseCaipChainId = _chunkU7ZUGCE7js.parseCaipChainId; exports.remove0x = _chunkQEPVHEP7js.remove0x; exports.satisfiesVersionRange = _chunk4D6XQBHAjs.satisfiesVersionRange; exports.signedBigIntToBytes = _chunkQEPVHEP7js.signedBigIntToBytes; exports.stringToBytes = _chunkQEPVHEP7js.stringToBytes; exports.timeSince = _chunk4RMX5YWEjs.timeSince; exports.valueToBytes = _chunkQEPVHEP7js.valueToBytes; exports.wrapError = _chunkIZC266HSjs.wrapError;
289
293
  //# sourceMappingURL=index.js.map