openx-js-sdk 0.0.1 → 0.0.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/app.js.gz CHANGED
Binary file
@@ -0,0 +1,15 @@
1
+ declare class FIFO<K, V> {
2
+ private queue;
3
+ private maxSize;
4
+ private key;
5
+ constructor(maxSize?: number, key?: string);
6
+ setValue(key: K, value: V): void;
7
+ isEmpty(): boolean;
8
+ size(): number;
9
+ clear(): void;
10
+ getValue(key: K): V | undefined;
11
+ private saveToLocalStorage;
12
+ private parseQueue;
13
+ }
14
+ declare const fifoInstance: FIFO<string, any>;
15
+ export default fifoInstance;
@@ -0,0 +1,5 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { getRefreshToken } from './refreshToken';
3
+ declare const getAction: <T = any>(url: string, data?: Record<string, any>, config?: AxiosRequestConfig) => Promise<T>;
4
+ declare const postAction: <T = any>(url: string, data?: Record<string, any>, config?: AxiosRequestConfig) => Promise<T>;
5
+ export { getAction, postAction, getRefreshToken };
package/main.d.ts CHANGED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openx-js-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "main": "./app.js",
5
5
  "scripts": {
6
6
  "serve": "set NODE_ENV=development&& webpack-dev-server --config build/webpack.dev.js --env=development",
package/types/index.d.ts CHANGED
@@ -3,5 +3,6 @@ export interface ConfigOptions {
3
3
  env?: string;
4
4
  platForm?: string;
5
5
  proxy?: any;
6
+ timeout?: number;
6
7
  response?: (...args: any[]) => void;
7
8
  }
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- export declare const getAction: <T = any>(url: string, data?: Record<string, any>, config?: AxiosRequestConfig) => Promise<T>;
3
- export declare const postAction: <T = any>(url: string, data?: Record<string, any>, config?: AxiosRequestConfig) => Promise<T>;
File without changes
File without changes
File without changes
File without changes