@cityofzion/bs-multichain 3.1.13 → 3.1.14

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.
@@ -123,7 +123,7 @@ class SimpleSwapApi {
123
123
  amount,
124
124
  userRefundAddress: refundAddress,
125
125
  addressTo: address,
126
- extraIdTo: extraIdToReceive?.trim() ?? null,
126
+ extraIdTo: extraIdToReceive?.trim() || null,
127
127
  });
128
128
  return {
129
129
  id: result.id,
@@ -143,9 +143,8 @@ class SimpleSwapOrchestrator {
143
143
  !__classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_tokenToUse_get).value.hash ||
144
144
  __classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_tokenToUse_get).value.decimals === undefined ||
145
145
  isNaN(__classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_tokenToUse_get).value.decimals) ||
146
- (__classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_tokenToReceive_get).value.hasExtraId &&
147
- (!__classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_extraIdToReceive_get).valid || !__classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_extraIdToReceive_get).value?.trim()))) {
148
- throw new blockchain_service_1.BSError('Not all required fields are set', 'MISSING_REQUIRED_FIELDS');
146
+ (__classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_tokenToReceive_get).value.hasExtraId && __classPrivateFieldGet(this, _SimpleSwapOrchestrator_instances, "a", _SimpleSwapOrchestrator_extraIdToReceive_get).valid === false)) {
147
+ throw new blockchain_service_1.BSError('Invalid fields', 'INVALID_FIELDS');
149
148
  }
150
149
  const response = {
151
150
  id: '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-multichain",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
4
4
  "repository": "https://github.com/CityOfZion/blockchain-services",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "Coz",
@@ -13,7 +13,7 @@
13
13
  "@walletconnect/utils": "~2.21.9",
14
14
  "@walletconnect/jsonrpc-utils": "~1.0.8",
15
15
  "axios": "~1.15.0",
16
- "@cityofzion/blockchain-service": "3.1.13"
16
+ "@cityofzion/blockchain-service": "3.1.14"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/node": "~24.5.2",
@@ -23,13 +23,13 @@
23
23
  "typed-emitter": "~2.1.0",
24
24
  "typescript": "~5.9.2",
25
25
  "vitest": "~4.0.18",
26
- "@cityofzion/bs-bitcoin": "3.1.13",
27
- "@cityofzion/bs-ethereum": "3.1.13",
28
- "@cityofzion/bs-neo3": "3.1.13",
29
- "@cityofzion/bs-neox": "3.1.13",
30
- "@cityofzion/bs-stellar": "3.1.13",
31
- "@cityofzion/bs-solana": "3.1.13",
32
- "@cityofzion/bs-neo-legacy": "3.1.13"
26
+ "@cityofzion/bs-ethereum": "3.1.14",
27
+ "@cityofzion/bs-neo3": "3.1.14",
28
+ "@cityofzion/bs-bitcoin": "3.1.14",
29
+ "@cityofzion/bs-neox": "3.1.14",
30
+ "@cityofzion/bs-neo-legacy": "3.1.14",
31
+ "@cityofzion/bs-stellar": "3.1.14",
32
+ "@cityofzion/bs-solana": "3.1.14"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rm -rf ./dist && rm -f *.tgz && npm run typecheck && tsc --project tsconfig.build.json",