wapi-client 0.8.1 → 0.8.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/api/http-client.browser.cjs +4 -538
- package/dist/api/http-client.browser.js +4 -548
- package/dist/api/http-client.cjs +4 -14
- package/dist/api/http-client.js +2 -2
- package/dist/api/ws-client.cjs +1 -1
- package/dist/api/ws-client.js +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.js +1 -1
- package/dist/lib/isomorphic/node/fetch.cjs +6732 -0
- package/dist/lib/isomorphic/node/fetch.d.ts +2 -0
- package/dist/lib/isomorphic/node/fetch.js +6731 -0
- package/dist/lib/isomorphic/web/fetch.browser.cjs +26 -0
- package/dist/lib/isomorphic/web/fetch.browser.js +6 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/wapi-client-web.iife.js +6 -7
- package/dist/wapi-client.iife.js +6 -7
- package/package.json +2 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/lib/isomorphic/web/fetch.ts
|
|
20
|
+
var fetch_exports = {};
|
|
21
|
+
__export(fetch_exports, {
|
|
22
|
+
fetch: () => realFetch
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(fetch_exports);
|
|
25
|
+
var global = typeof globalThis !== "undefined" && globalThis || typeof self !== "undefined" && self || typeof global !== "undefined" && global;
|
|
26
|
+
var realFetch = global.fetch;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8808,6 +8808,7 @@ export * from 'wapi-client/fns/update-wallet/update-wallet.enums';
|
|
|
8808
8808
|
export * from 'wapi-client/fns/update-wallet/update-wallet';
|
|
8809
8809
|
export * from 'wapi-client/lib/isomorphic/node/get-random-hex';
|
|
8810
8810
|
export * from 'wapi-client/lib/utils';
|
|
8811
|
+
export * from 'wapi-client/lib/isomorphic/node/fetch';
|
|
8811
8812
|
export * from 'wapi-client/api/http-client';
|
|
8812
8813
|
export * from 'wapi-client/txs/import-actions/import-actions.guards';
|
|
8813
8814
|
export * from 'wapi-client/txs/authentication-check/authentication-check.enums';
|
|
@@ -9002,6 +9003,10 @@ declare module 'wapi-client/lib/utils' {
|
|
|
9002
9003
|
export function isFutureDate(dateString: string): boolean;
|
|
9003
9004
|
export function isDateTime(str: string): boolean;
|
|
9004
9005
|
}
|
|
9006
|
+
declare module 'wapi-client/lib/isomorphic/node/fetch' {
|
|
9007
|
+
const fetchFn: (url: Parameters<typeof fetch>[0], options: Parameters<typeof fetch>[1]) => Promise<Response>;
|
|
9008
|
+
export { fetchFn as fetch };
|
|
9009
|
+
}
|
|
9005
9010
|
declare module 'wapi-client/api/http-client' {
|
|
9006
9011
|
import { WapiHttpConnectionOptions } from 'wapi-client/api/index';
|
|
9007
9012
|
import { JSONRPCRequest, JSONRPCResponse } from 'wapi-client/api/jsonrpc/jsonrpc.enums';
|