@piprail/sdk 1.14.0 → 1.15.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.
- package/CHANGELOG.md +40 -0
- package/README.md +27 -754
- package/dist/{algorand-OIHGJN5S.cjs → algorand-EJ3S2V7E.cjs} +17 -17
- package/dist/{algorand-7EUZYL2Z.js → algorand-F3OYB534.js} +1 -1
- package/dist/{aptos-WDWZOU25.cjs → aptos-GJGIZHNI.cjs} +16 -16
- package/dist/{aptos-CDEYDDM5.js → aptos-SUXOVP7B.js} +1 -1
- package/dist/{chunk-H3A4KWLJ.js → chunk-ILPABTI2.js} +6 -0
- package/dist/{chunk-FTKVCP6K.cjs → chunk-PA6YD3HL.cjs} +17 -11
- package/dist/index.cjs +493 -115
- package/dist/index.d.cts +264 -12
- package/dist/index.d.ts +264 -12
- package/dist/index.js +403 -25
- package/dist/{near-DT6LRIKB.js → near-LM7S3WUD.js} +1 -1
- package/dist/{near-FUH3VAXT.cjs → near-ZJLZE26R.cjs} +19 -19
- package/dist/{solana-QUVXPKBZ.cjs → solana-MPPE6K24.cjs} +14 -14
- package/dist/{solana-3TRYD4QB.js → solana-WDKWWF33.js} +1 -1
- package/dist/{stellar-IK3UML6O.js → stellar-FIJPQZVW.js} +1 -1
- package/dist/{stellar-APZEBFAD.cjs → stellar-XHLLNHQP.cjs} +21 -21
- package/dist/{sui-L7BQNJWO.cjs → sui-6CVLEXLA.cjs} +17 -17
- package/dist/{sui-VSE63WQM.js → sui-B7AVN7NK.js} +1 -1
- package/dist/{ton-QHGQLJX2.js → ton-CHJ26BVA.js} +1 -1
- package/dist/{ton-5DLKKOFE.cjs → ton-RNEFN25G.cjs} +14 -14
- package/dist/{tron-2N2GA62O.js → tron-DD3JDROV.js} +1 -1
- package/dist/{tron-HHIT6WKY.cjs → tron-TKJHNFGM.cjs} +24 -24
- package/dist/{xrpl-2GZMDYW5.js → xrpl-GTUPP6SK.js} +1 -1
- package/dist/{xrpl-USEG4AHX.cjs → xrpl-XN2NBNGI.cjs} +21 -21
- package/package.json +1 -5
- package/CHAINS.md +0 -179
- package/DISCOVERY.md +0 -420
- package/ERRORS.md +0 -269
- package/STANDARDS.md +0 -128
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkPA6YD3HLcjs = require('./chunk-PA6YD3HL.cjs');
|
|
11
11
|
|
|
12
12
|
// src/drivers/algorand/index.ts
|
|
13
13
|
var _algosdk = require('algosdk'); var _algosdk2 = _interopRequireDefault(_algosdk);
|
|
@@ -55,13 +55,13 @@ async function payAlgorand(params) {
|
|
|
55
55
|
} catch (err) {
|
|
56
56
|
const mapped = mapAlgorandError(err, accept.payTo);
|
|
57
57
|
if (mapped) throw mapped;
|
|
58
|
-
throw _nullishCoalesce(
|
|
58
|
+
throw _nullishCoalesce(_chunkPA6YD3HLcjs.toInsufficientFundsError.call(void 0, err), () => ( err));
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
function mapAlgorandError(err, payTo) {
|
|
62
62
|
const m = err instanceof Error ? err.message : String(err);
|
|
63
63
|
if (/must optin/i.test(m) || /missing from/i.test(m) && m.includes(payTo)) {
|
|
64
|
-
return new (0,
|
|
64
|
+
return new (0, _chunkPA6YD3HLcjs.RecipientNotReadyError)(
|
|
65
65
|
`Algorand recipient ${payTo} hasn't opted into this asset \u2014 it must opt in (a 0-amount asset transfer to itself) before it can receive. (Algorand: ${firstLine(m)})`,
|
|
66
66
|
{ cause: err }
|
|
67
67
|
);
|
|
@@ -69,7 +69,7 @@ function mapAlgorandError(err, payTo) {
|
|
|
69
69
|
if (/overspend|below min|min(imum)? balance|tried to spend|balance \d+ below|asset \d+ missing from|insufficient|underflow/i.test(
|
|
70
70
|
m
|
|
71
71
|
)) {
|
|
72
|
-
return new (0,
|
|
72
|
+
return new (0, _chunkPA6YD3HLcjs.InsufficientFundsError)(
|
|
73
73
|
`Algorand payment failed: the sender can't cover it \u2014 token balance, ALGO for fees, the 0.1-ALGO minimum balance, or a missing asset opt-in on the sender. (Algorand: ${firstLine(m)})`,
|
|
74
74
|
{ cause: err }
|
|
75
75
|
);
|
|
@@ -157,22 +157,22 @@ function rpcFailed(nonce) {
|
|
|
157
157
|
|
|
158
158
|
function assertAlgorandWallet(wallet, network) {
|
|
159
159
|
if (typeof wallet !== "object" || wallet === null) {
|
|
160
|
-
throw new (0,
|
|
160
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
161
161
|
`chain ${network} is Algorand; wallet must be { mnemonic } (25 words) or { account }.`
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
if ("privateKey" in wallet || "walletClient" in wallet) {
|
|
165
|
-
throw new (0,
|
|
165
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
166
166
|
`chain ${network} is Algorand; an EVM/Aptos wallet can't be used \u2014 pass { mnemonic } (25 words) or { account }.`
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
if ("secretKey" in wallet || "signer" in wallet || "secret" in wallet || "keypair" in wallet || "keyPair" in wallet || "seed" in wallet || "accountId" in wallet) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
171
171
|
`chain ${network} is Algorand; that looks like another family's wallet \u2014 pass { mnemonic } (25 words) or { account }.`
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
if (!("mnemonic" in wallet) && !("account" in wallet)) {
|
|
175
|
-
throw new (0,
|
|
175
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
176
176
|
`chain ${network} is Algorand; wallet must be { mnemonic } (25 words) or { account }.`
|
|
177
177
|
);
|
|
178
178
|
}
|
|
@@ -187,13 +187,13 @@ function resolveAlgorandWallet(config) {
|
|
|
187
187
|
const { addr, sk } = _algosdk2.default.mnemonicToSecretKey(config.mnemonic);
|
|
188
188
|
return { addr: addr.toString(), sk };
|
|
189
189
|
} catch (cause) {
|
|
190
|
-
throw new (0,
|
|
190
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
191
191
|
"Algorand wallet { mnemonic } is not a valid 25-word Algorand mnemonic.",
|
|
192
192
|
{ cause }
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
throw new (0,
|
|
196
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)("Algorand wallet needs { mnemonic } (25 words) or { account }.");
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
// src/drivers/algorand/index.ts
|
|
@@ -248,16 +248,16 @@ function makeAlgorandNetwork(preset, algodUrl) {
|
|
|
248
248
|
const info = preset.tokens[token.toUpperCase()];
|
|
249
249
|
if (!info) {
|
|
250
250
|
const known = Object.keys(preset.tokens).join(", ") || "(none built in)";
|
|
251
|
-
throw new (0,
|
|
251
|
+
throw new (0, _chunkPA6YD3HLcjs.UnknownTokenError)(
|
|
252
252
|
`token "${token}" isn't built in for Algorand (known: ${known}). Pass { assetId, decimals } for a custom ASA, or use 'native'.`
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
255
|
return { asset: algorandAssetId(info.assetId), decimals: info.decimals, symbol: info.symbol };
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
_chunkPA6YD3HLcjs.rejectForeignToken.call(void 0, token, "algorand", network);
|
|
258
258
|
const t = token;
|
|
259
259
|
if (typeof t.assetId !== "number" || typeof t.decimals !== "number") {
|
|
260
|
-
throw new (0,
|
|
260
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
261
261
|
`chain ${network} is Algorand; a custom token must be { assetId, decimals }.`
|
|
262
262
|
);
|
|
263
263
|
}
|
|
@@ -278,12 +278,12 @@ function makeAlgorandNetwork(preset, algodUrl) {
|
|
|
278
278
|
},
|
|
279
279
|
assertValidPayTo(payTo) {
|
|
280
280
|
if (payTo.startsWith("0x")) {
|
|
281
|
-
throw new (0,
|
|
281
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
282
282
|
`chain ${network} is Algorand, but payTo "${payTo}" looks like an EVM address.`
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
285
|
if (!_algosdk2.default.isValidAddress(payTo)) {
|
|
286
|
-
throw new (0,
|
|
286
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
287
287
|
`chain ${network} is Algorand, but payTo "${payTo}" is not a valid Algorand address.`
|
|
288
288
|
);
|
|
289
289
|
}
|
|
@@ -300,13 +300,13 @@ function makeAlgorandNetwork(preset, algodUrl) {
|
|
|
300
300
|
const info = await _algosdk2.default.waitForConfirmation(algod, ref, 10);
|
|
301
301
|
return { height: String(_nullishCoalesce(info.confirmedRound, () => ( 0))) };
|
|
302
302
|
} catch (err) {
|
|
303
|
-
throw new (0,
|
|
303
|
+
throw new (0, _chunkPA6YD3HLcjs.ConfirmationTimeoutError)(`Algorand tx ${ref} did not confirm in time.`, {
|
|
304
304
|
cause: err
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
308
|
async estimateCost() {
|
|
309
|
-
return
|
|
309
|
+
return _chunkPA6YD3HLcjs.nativeCost.call(void 0, {
|
|
310
310
|
symbol: ALGO_SYMBOL,
|
|
311
311
|
decimals: ALGO_DECIMALS,
|
|
312
312
|
fee: 1000n,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkPA6YD3HLcjs = require('./chunk-PA6YD3HL.cjs');
|
|
10
10
|
|
|
11
11
|
// src/drivers/aptos/index.ts
|
|
12
12
|
var _tssdk = require('@aptos-labs/ts-sdk');
|
|
@@ -55,14 +55,14 @@ async function payAptos(params) {
|
|
|
55
55
|
const res = await client.signSubmit({ signer, transaction });
|
|
56
56
|
return res.hash;
|
|
57
57
|
} catch (err) {
|
|
58
|
-
if (err instanceof
|
|
58
|
+
if (err instanceof _chunkPA6YD3HLcjs.InsufficientFundsError) throw err;
|
|
59
59
|
if (isAptosAffordability(err)) {
|
|
60
|
-
throw new (0,
|
|
60
|
+
throw new (0, _chunkPA6YD3HLcjs.InsufficientFundsError)(
|
|
61
61
|
err instanceof Error ? err.message : "Insufficient APT/token balance for the payment.",
|
|
62
62
|
{ cause: err }
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
|
-
throw _nullishCoalesce(
|
|
65
|
+
throw _nullishCoalesce(_chunkPA6YD3HLcjs.toInsufficientFundsError.call(void 0, err), () => ( err));
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
function isAptosAffordability(err) {
|
|
@@ -146,22 +146,22 @@ function txNotFound(hash) {
|
|
|
146
146
|
|
|
147
147
|
function assertAptosWallet(wallet, network) {
|
|
148
148
|
if (typeof wallet !== "object" || wallet === null) {
|
|
149
|
-
throw new (0,
|
|
149
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
150
150
|
`chain ${network} is Aptos; wallet must be { privateKey } (ed25519-priv-0x\u2026) or { account }.`
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
if ("walletClient" in wallet) {
|
|
154
|
-
throw new (0,
|
|
154
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
155
155
|
`chain ${network} is Aptos; a viem { walletClient } can't be used \u2014 pass { privateKey } (ed25519-priv-0x\u2026) or { account }.`
|
|
156
156
|
);
|
|
157
157
|
}
|
|
158
158
|
if ("secretKey" in wallet || "signer" in wallet || "mnemonic" in wallet || "keypair" in wallet || "keyPair" in wallet || "secret" in wallet || "seed" in wallet || "accountId" in wallet) {
|
|
159
|
-
throw new (0,
|
|
159
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
160
160
|
`chain ${network} is Aptos; that looks like another family's wallet \u2014 pass { privateKey } (ed25519-priv-0x\u2026) or { account }.`
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
163
|
if (!("privateKey" in wallet) && !("account" in wallet)) {
|
|
164
|
-
throw new (0,
|
|
164
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
165
165
|
`chain ${network} is Aptos; wallet must be { privateKey } (ed25519-priv-0x\u2026) or { account }.`
|
|
166
166
|
);
|
|
167
167
|
}
|
|
@@ -173,13 +173,13 @@ function resolveAptosAccount(config) {
|
|
|
173
173
|
try {
|
|
174
174
|
return _tssdk.Account.fromPrivateKey({ privateKey: new (0, _tssdk.Ed25519PrivateKey)(config.privateKey) });
|
|
175
175
|
} catch (cause) {
|
|
176
|
-
throw new (0,
|
|
176
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
177
177
|
"Aptos wallet { privateKey } is not a valid ed25519 secret (ed25519-priv-0x\u2026 or 0x\u2026 hex).",
|
|
178
178
|
{ cause }
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
throw new (0,
|
|
182
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)("Aptos wallet needs { privateKey } (ed25519-priv-0x\u2026) or { account }.");
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
// src/drivers/aptos/index.ts
|
|
@@ -251,16 +251,16 @@ function makeAptosNetwork(preset, rpcUrl) {
|
|
|
251
251
|
const info = preset.tokens[token.toUpperCase()];
|
|
252
252
|
if (!info) {
|
|
253
253
|
const known = Object.keys(preset.tokens).join(", ") || "(none built in)";
|
|
254
|
-
throw new (0,
|
|
254
|
+
throw new (0, _chunkPA6YD3HLcjs.UnknownTokenError)(
|
|
255
255
|
`token "${token}" isn't built in for Aptos (known: ${known}). Pass { metadata, decimals } for a custom Fungible Asset, or use 'native'.`
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
return { asset: info.metadata, decimals: info.decimals, symbol: info.symbol };
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
_chunkPA6YD3HLcjs.rejectForeignToken.call(void 0, token, "aptos", network);
|
|
261
261
|
const t = token;
|
|
262
262
|
if (!t.metadata || typeof t.decimals !== "number") {
|
|
263
|
-
throw new (0,
|
|
263
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
264
264
|
`chain ${network} is Aptos; a custom token must be { metadata, decimals }.`
|
|
265
265
|
);
|
|
266
266
|
}
|
|
@@ -287,7 +287,7 @@ function makeAptosNetwork(preset, rpcUrl) {
|
|
|
287
287
|
valid = false;
|
|
288
288
|
}
|
|
289
289
|
if (!valid || evmLike) {
|
|
290
|
-
throw new (0,
|
|
290
|
+
throw new (0, _chunkPA6YD3HLcjs.WrongFamilyError)(
|
|
291
291
|
`chain ${network} is Aptos, but payTo "${payTo}" is not a valid Aptos address (0x + 32 bytes).`
|
|
292
292
|
);
|
|
293
293
|
}
|
|
@@ -309,11 +309,11 @@ function makeAptosNetwork(preset, rpcUrl) {
|
|
|
309
309
|
const tx = await aptos.waitForTransaction({ transactionHash: ref });
|
|
310
310
|
return { height: String(_nullishCoalesce(tx.version, () => ( "0"))) };
|
|
311
311
|
} catch (err) {
|
|
312
|
-
throw new (0,
|
|
312
|
+
throw new (0, _chunkPA6YD3HLcjs.ConfirmationTimeoutError)(`Aptos tx ${ref} did not finalize in time.`, { cause: err });
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
async estimateCost() {
|
|
316
|
-
return
|
|
316
|
+
return _chunkPA6YD3HLcjs.nativeCost.call(void 0, {
|
|
317
317
|
symbol: APT_SYMBOL,
|
|
318
318
|
decimals: APT_DECIMALS,
|
|
319
319
|
fee: 100000n,
|
|
@@ -53,6 +53,12 @@ var MaxRetriesExceededError = class extends PipRailError {
|
|
|
53
53
|
};
|
|
54
54
|
var PaymentDeclinedError = class extends PipRailError {
|
|
55
55
|
code = "PAYMENT_DECLINED";
|
|
56
|
+
/** Why it was declined, as a typed enum (a hint; `.code` is the reliable channel). */
|
|
57
|
+
reasonCode;
|
|
58
|
+
constructor(message, options) {
|
|
59
|
+
super(message, options);
|
|
60
|
+
this.reasonCode = options?.reasonCode;
|
|
61
|
+
}
|
|
56
62
|
};
|
|
57
63
|
var ConfirmationTimeoutError = class extends PipRailError {
|
|
58
64
|
code = "CONFIRMATION_TIMEOUT";
|
|
@@ -51,37 +51,43 @@ var MaxRetriesExceededError = (_class5 = class extends PipRailError {
|
|
|
51
51
|
this.ref = _optionalChain([options, 'optionalAccess', _2 => _2.ref]);
|
|
52
52
|
}
|
|
53
53
|
}, _class5);
|
|
54
|
-
var PaymentDeclinedError = (_class6 = class extends PipRailError {
|
|
54
|
+
var PaymentDeclinedError = (_class6 = class extends PipRailError {
|
|
55
55
|
__init6() {this.code = "PAYMENT_DECLINED"}
|
|
56
|
+
/** Why it was declined, as a typed enum (a hint; `.code` is the reliable channel). */
|
|
57
|
+
|
|
58
|
+
constructor(message, options) {
|
|
59
|
+
super(message, options);_class6.prototype.__init6.call(this);;
|
|
60
|
+
this.reasonCode = _optionalChain([options, 'optionalAccess', _3 => _3.reasonCode]);
|
|
61
|
+
}
|
|
56
62
|
}, _class6);
|
|
57
|
-
var ConfirmationTimeoutError = (_class7 = class extends PipRailError {constructor(...
|
|
63
|
+
var ConfirmationTimeoutError = (_class7 = class extends PipRailError {constructor(...args4) { super(...args4); _class7.prototype.__init7.call(this); }
|
|
58
64
|
__init7() {this.code = "CONFIRMATION_TIMEOUT"}
|
|
59
65
|
}, _class7);
|
|
60
|
-
var SettlementError = (_class8 = class extends PipRailError {constructor(...
|
|
66
|
+
var SettlementError = (_class8 = class extends PipRailError {constructor(...args5) { super(...args5); _class8.prototype.__init8.call(this); }
|
|
61
67
|
__init8() {this.code = "SETTLEMENT_FAILED"}
|
|
62
68
|
}, _class8);
|
|
63
|
-
var InvalidEnvelopeError = (_class9 = class extends PipRailError {constructor(...
|
|
69
|
+
var InvalidEnvelopeError = (_class9 = class extends PipRailError {constructor(...args6) { super(...args6); _class9.prototype.__init9.call(this); }
|
|
64
70
|
__init9() {this.code = "INVALID_ENVELOPE"}
|
|
65
71
|
}, _class9);
|
|
66
|
-
var NoCompatibleAcceptError = (_class10 = class extends PipRailError {constructor(...
|
|
72
|
+
var NoCompatibleAcceptError = (_class10 = class extends PipRailError {constructor(...args7) { super(...args7); _class10.prototype.__init10.call(this); }
|
|
67
73
|
__init10() {this.code = "NO_COMPATIBLE_ACCEPT"}
|
|
68
74
|
}, _class10);
|
|
69
|
-
var UnsupportedSchemeError = (_class11 = class extends PipRailError {constructor(...
|
|
75
|
+
var UnsupportedSchemeError = (_class11 = class extends PipRailError {constructor(...args8) { super(...args8); _class11.prototype.__init11.call(this); }
|
|
70
76
|
__init11() {this.code = "UNSUPPORTED_SCHEME"}
|
|
71
77
|
}, _class11);
|
|
72
|
-
var NonReplayableBodyError = (_class12 = class extends PipRailError {constructor(...
|
|
78
|
+
var NonReplayableBodyError = (_class12 = class extends PipRailError {constructor(...args9) { super(...args9); _class12.prototype.__init12.call(this); }
|
|
73
79
|
__init12() {this.code = "NON_REPLAYABLE_BODY"}
|
|
74
80
|
}, _class12);
|
|
75
|
-
var WrongFamilyError = (_class13 = class extends PipRailError {constructor(...
|
|
81
|
+
var WrongFamilyError = (_class13 = class extends PipRailError {constructor(...args10) { super(...args10); _class13.prototype.__init13.call(this); }
|
|
76
82
|
__init13() {this.code = "WRONG_FAMILY"}
|
|
77
83
|
}, _class13);
|
|
78
|
-
var UnknownTokenError = (_class14 = class extends PipRailError {constructor(...
|
|
84
|
+
var UnknownTokenError = (_class14 = class extends PipRailError {constructor(...args11) { super(...args11); _class14.prototype.__init14.call(this); }
|
|
79
85
|
__init14() {this.code = "UNKNOWN_TOKEN"}
|
|
80
86
|
}, _class14);
|
|
81
|
-
var MissingDriverError = (_class15 = class extends PipRailError {constructor(...
|
|
87
|
+
var MissingDriverError = (_class15 = class extends PipRailError {constructor(...args12) { super(...args12); _class15.prototype.__init15.call(this); }
|
|
82
88
|
__init15() {this.code = "MISSING_DRIVER"}
|
|
83
89
|
}, _class15);
|
|
84
|
-
var UnsupportedNetworkError = (_class16 = class extends PipRailError {constructor(...
|
|
90
|
+
var UnsupportedNetworkError = (_class16 = class extends PipRailError {constructor(...args13) { super(...args13); _class16.prototype.__init16.call(this); }
|
|
85
91
|
__init16() {this.code = "UNSUPPORTED_NETWORK"}
|
|
86
92
|
}, _class16);
|
|
87
93
|
|