sim-node-lib 0.0.56 → 0.0.58

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.
@@ -7,4 +7,5 @@ export declare class AxiosModel {
7
7
  constructor(method: string, headers?: Record<string, string | number | boolean> | undefined, params?: object | undefined, data?: object | undefined, responseType?: ResponseType | undefined);
8
8
  }
9
9
  declare type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream';
10
+ export declare type Method = 'get' | 'delete' | 'head' | 'options' | 'post' | 'put' | 'patch' | 'purge' | 'link' | 'unlink';
10
11
  export {};
@@ -1,4 +1,5 @@
1
1
  import { AxiosResponse, ResponseType } from 'axios';
2
+ import { Method } from '../Models/AxiosModel';
2
3
  export declare class AxiosService {
3
4
  url: string;
4
5
  constructor(url: string);
@@ -7,6 +8,5 @@ export declare class AxiosService {
7
8
  post(params?: object, data?: object): Promise<AxiosResponse<any, any>>;
8
9
  put(params?: object, data?: object): Promise<AxiosResponse<any, any>>;
9
10
  delete(params?: object, data?: object): Promise<AxiosResponse<any, any>>;
10
- byPass(method: Method, params?: object, data?: object): Promise<AxiosResponse<any, any>>;
11
+ byPass(method: Method, data?: object, params?: object): Promise<AxiosResponse<any, any>>;
11
12
  }
12
- export declare type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
@@ -95,7 +95,7 @@ class AxiosService {
95
95
  });
96
96
  });
97
97
  }
98
- byPass(method, params, data) {
98
+ byPass(method, data, params) {
99
99
  return __awaiter(this, void 0, void 0, function* () {
100
100
  let content = {
101
101
  method: method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",