@xyo-network/xl1-rpc 1.16.18 → 1.16.19
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/neutral/index.mjs +2 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index-node.mjs +2 -2
- package/dist/node/index-node.mjs.map +1 -1
- package/package.json +8 -8
- package/src/transport/HttpRpcTransport.ts +2 -2
- package/src/types/ErrorCodes.ts +1 -1
- package/src/types/schema/common/TransactionBoundWitness.ts +1 -1
package/dist/node/index-node.mjs
CHANGED
|
@@ -1806,7 +1806,7 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
|
|
|
1806
1806
|
}, "rpcEngineFromConnection");
|
|
1807
1807
|
|
|
1808
1808
|
// src/transport/HttpRpcTransport.ts
|
|
1809
|
-
import {
|
|
1809
|
+
import { axiosJsonConfig } from "@xylabs/axios";
|
|
1810
1810
|
import { isError, isUndefinedOrNull } from "@xylabs/sdk-js";
|
|
1811
1811
|
import { Axios, isAxiosError } from "axios";
|
|
1812
1812
|
import { v4 } from "uuid";
|
|
@@ -1834,7 +1834,7 @@ var HttpRpcTransport = class {
|
|
|
1834
1834
|
if (params) {
|
|
1835
1835
|
body.params = schemas[method].params.to.parse(params);
|
|
1836
1836
|
}
|
|
1837
|
-
const res = await new Axios(
|
|
1837
|
+
const res = await new Axios(axiosJsonConfig()).post(url, body);
|
|
1838
1838
|
const json = res.data;
|
|
1839
1839
|
if (isUndefinedOrNull(json) || json.error) {
|
|
1840
1840
|
throw new Error(json.error.message);
|