@dolomite-exchange/zap-sdk 0.3.28 → 0.3.30

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.
@@ -1 +1,2 @@
1
- export declare const AxiosClient: any;
1
+ import * as axios from 'axios';
2
+ export declare const AxiosClient: axios.AxiosStatic;
@@ -1,8 +1,29 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.AxiosClient = void 0;
4
- /* eslint-disable */
5
- var AxiosBrowser = require('axios/dist/browser/axios.cjs');
6
- var AxiosNode = require('axios/dist/node/axios.cjs');
7
- exports.AxiosClient = typeof window !== 'undefined' ? AxiosBrowser : AxiosNode;
27
+ var axios = __importStar(require("axios"));
28
+ exports.AxiosClient = axios.default;
8
29
  //# sourceMappingURL=AxiosClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AxiosClient.js","sourceRoot":"","sources":["../../../src/clients/AxiosClient.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,IAAM,YAAY,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC7D,IAAM,SAAS,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAE1C,QAAA,WAAW,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC"}
1
+ {"version":3,"file":"AxiosClient.js","sourceRoot":"","sources":["../../../src/clients/AxiosClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAElB,QAAA,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolomite-exchange/zap-sdk",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "SDK for zapping any asset to any asset on Dolomite.",
5
5
  "scripts": {
6
6
  "test": "NODE_ENV=test jest --runInBand",
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
- const AxiosBrowser = require('axios/dist/browser/axios.cjs');
3
- const AxiosNode = require('axios/dist/node/axios.cjs');
1
+ import * as axios from 'axios';
4
2
 
5
- export const AxiosClient = typeof window !== 'undefined' ? AxiosBrowser : AxiosNode;
3
+ export const AxiosClient = axios.default;
@@ -76,7 +76,7 @@ export default class ParaswapAggregator extends AggregatorClient {
76
76
  onlyParams: 'false',
77
77
  }).toString();
78
78
 
79
- // const result = await AxiosClient.post(this.useProxy
79
+ // const result = await axios.post(this.useProxy
80
80
  // ? `${PROXY_API_URL}/assemble?${transactionsQueryParams}`
81
81
  // : `${API_URL}/transactions/${this.network}?${transactionsQueryParams}`, {
82
82