@xyo-network/xl1-rpc 1.16.17 → 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/neutral/index.mjs
CHANGED
|
@@ -114,7 +114,7 @@ var rpcMethodHandlersFromSigner = /* @__PURE__ */ __name((signer) => {
|
|
|
114
114
|
}, "rpcMethodHandlersFromSigner");
|
|
115
115
|
|
|
116
116
|
// src/transport/HttpRpcTransport.ts
|
|
117
|
-
import {
|
|
117
|
+
import { axiosJsonConfig } from "@xylabs/axios";
|
|
118
118
|
import { isError, isUndefinedOrNull } from "@xylabs/sdk-js";
|
|
119
119
|
import { Axios, isAxiosError } from "axios";
|
|
120
120
|
import { v4 } from "uuid";
|
|
@@ -1793,7 +1793,7 @@ var HttpRpcTransport = class {
|
|
|
1793
1793
|
if (params) {
|
|
1794
1794
|
body.params = schemas[method].params.to.parse(params);
|
|
1795
1795
|
}
|
|
1796
|
-
const res = await new Axios(
|
|
1796
|
+
const res = await new Axios(axiosJsonConfig()).post(url, body);
|
|
1797
1797
|
const json = res.data;
|
|
1798
1798
|
if (isUndefinedOrNull(json) || json.error) {
|
|
1799
1799
|
throw new Error(json.error.message);
|