@paraspell/sdk 10.0.1 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -475,7 +475,7 @@ function _unsupportedIterableToArray(r, a) {
475
475
 
476
476
  var checkAndConvertToNumberOrBigInt = function checkAndConvertToNumberOrBigInt(input) {
477
477
  if (!/^-?\d+$/.test(input)) {
478
- throw new Error('Invalid integer string');
478
+ throw new sdkCore.InvalidParameterError('Invalid integer string');
479
479
  }
480
480
  var bigIntValue = BigInt(input);
481
481
  if (bigIntValue >= Number.MIN_SAFE_INTEGER && bigIntValue <= Number.MAX_SAFE_INTEGER) {
package/dist/index.mjs CHANGED
@@ -474,7 +474,7 @@ function _unsupportedIterableToArray(r, a) {
474
474
 
475
475
  var checkAndConvertToNumberOrBigInt = function checkAndConvertToNumberOrBigInt(input) {
476
476
  if (!/^-?\d+$/.test(input)) {
477
- throw new Error('Invalid integer string');
477
+ throw new InvalidParameterError('Invalid integer string');
478
478
  }
479
479
  var bigIntValue = BigInt(input);
480
480
  if (bigIntValue >= Number.MIN_SAFE_INTEGER && bigIntValue <= Number.MAX_SAFE_INTEGER) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paraspell/sdk",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "SDK for ParaSpell XCM/XCMP tool for developers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "ethers": "^6.13.7",
28
28
  "quick-lru": "^7.0.1",
29
29
  "viem": "^2.28.1",
30
- "@paraspell/sdk-core": "10.0.1"
30
+ "@paraspell/sdk-core": "10.0.2"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "polkadot-api": ">= 1.10.2 < 2"