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.d.ts +3 -1
- package/app.js +2 -4907
- package/app.js.gz +0 -0
- package/cache/index.d.ts +15 -0
- package/fetch/index.d.ts +5 -0
- package/main.d.ts +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +1 -0
- package/index.d.ts +0 -3
- /package/{proxy → fetch/proxy}/index.d.ts +0 -0
- /package/{proxy → fetch/proxy}/production.d.ts +0 -0
- /package/{proxy → fetch/proxy}/test.d.ts +0 -0
- /package/{refreshToken.d.ts → fetch/refreshToken.d.ts} +0 -0
package/app.js.gz
CHANGED
|
Binary file
|
package/cache/index.d.ts
ADDED
|
@@ -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;
|
package/fetch/index.d.ts
ADDED
|
@@ -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
package/types/index.d.ts
CHANGED
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
|