@ps-aux/api-client-axios 0.0.8-rc-4 → 0.0.8-rc-6

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/browser.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { PromiseHttpClient } from './commonExports';
3
- export declare const createHttpClient: (axios: AxiosInstance, urlConverter?: import("@ps-aux/api-client-common").UrlConverter) => PromiseHttpClient;
2
+ import { PromiseHttpClient, UrlConverter } from './commonExports';
3
+ export declare const createHttpClient: (axios: AxiosInstance, urlConverter?: UrlConverter) => PromiseHttpClient;
4
4
  export * from './commonExports';
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { PromiseHttpClient } from './commonExports';
3
- export declare const createHttpClient: (axios: AxiosInstance, urlConverter?: import("@ps-aux/api-client-common").UrlConverter) => PromiseHttpClient;
2
+ import { PromiseHttpClient, UrlConverter } from './commonExports';
3
+ export declare const createHttpClient: (axios: AxiosInstance, urlConverter?: UrlConverter) => PromiseHttpClient;
4
4
  export * from './commonExports';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ps-aux/api-client-axios",
3
- "version": "0.0.8-rc-4",
3
+ "version": "0.0.8-rc-6",
4
4
  "main": "dist/node.js",
5
5
  "module": "dist/node.esm.js",
6
6
  "browser": "dist/browser.esm.js",
@@ -16,7 +16,8 @@
16
16
  "flat": "5.0.2",
17
17
  "form-data": "^4.0.0",
18
18
  "qs": "^6.11.2",
19
- "rambda": "^8.5.0"
19
+ "rambda": "^8.5.0",
20
+ "@ps-aux/api-client-common": "^0.0.1"
20
21
  },
21
22
  "devDependencies": {
22
23
  "@types/flat": "^5.0.4",
package/src/browser.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { AxiosInstance } from 'axios'
2
2
  import { createHttpClient as create, noOpUrlConverter } from './AxiosOpenApiHttpClient'
3
3
  import { BrowserPlatFormHelper } from './platform/browser'
4
- import { PromiseHttpClient } from './commonExports'
4
+ import { PromiseHttpClient, UrlConverter } from './commonExports'
5
5
 
6
6
 
7
- export const createHttpClient = (axios: AxiosInstance, urlConverter = noOpUrlConverter()): PromiseHttpClient => {
7
+ export const createHttpClient = (axios: AxiosInstance, urlConverter: UrlConverter = noOpUrlConverter()): PromiseHttpClient => {
8
8
  return create(axios, new BrowserPlatFormHelper(), urlConverter)
9
9
  }
10
10
 
package/src/node.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AxiosInstance } from 'axios'
2
2
  import { createHttpClient as create, noOpUrlConverter } from './AxiosOpenApiHttpClient'
3
3
  import { NodePlatFormHelper } from './platform/node'
4
- import { PromiseHttpClient } from './commonExports'
4
+ import { PromiseHttpClient, UrlConverter } from './commonExports'
5
5
 
6
- export const createHttpClient = (axios: AxiosInstance, urlConverter = noOpUrlConverter()): PromiseHttpClient => {
6
+ export const createHttpClient = (axios: AxiosInstance, urlConverter: UrlConverter = noOpUrlConverter()): PromiseHttpClient => {
7
7
  return create(axios, new NodePlatFormHelper(), urlConverter)
8
8
  }
9
9
 
@@ -1 +0,0 @@
1
- export { BrowserPlatFormHelper as Platform } from './browser'