@rainte/js 0.0.36 → 0.0.37
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/index.js +2178 -2219
- package/dist/index.umd.cjs +8 -8
- package/dist/types/lib/index.d.ts +4 -3
- package/dist/types/src/array/index.d.ts +2 -0
- package/dist/types/src/blob/index.d.ts +3 -0
- package/dist/types/src/{db → database}/index.d.ts +1 -6
- package/dist/types/src/date/index.d.ts +0 -13
- package/dist/types/src/hash/index.d.ts +0 -6
- package/dist/types/src/http/index.d.ts +0 -7
- package/dist/types/src/json/index.d.ts +0 -5
- package/dist/types/src/storage/index.d.ts +1 -5
- package/dist/types/src/system/index.d.ts +3 -0
- package/dist/types/src/url/index.d.ts +1 -7
- package/index.d.ts +3 -3
- package/package.json +3 -3
- package/dist/types/src/fast/index.d.ts +0 -12
- package/dist/types/src/file/index.d.ts +0 -9
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
export * as array from '../src/array';
|
|
2
|
+
export * as blob from '../src/blob';
|
|
3
|
+
export * as database from '../src/database';
|
|
1
4
|
export * as date from '../src/date';
|
|
2
|
-
export * as db from '../src/db';
|
|
3
|
-
export * as fast from '../src/fast';
|
|
4
|
-
export * as file from '../src/file';
|
|
5
5
|
export * as hash from '../src/hash';
|
|
6
6
|
export * as http from '../src/http';
|
|
7
7
|
export * as json from '../src/json';
|
|
8
8
|
export * as storage from '../src/storage';
|
|
9
|
+
export * as system from '../src/system';
|
|
9
10
|
export * as url from '../src/url';
|
|
@@ -10,9 +10,4 @@ export declare class SubDexie extends Dexie {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const db: SubDexie;
|
|
12
12
|
export declare const get: (key: string, value?: boolean) => import("dexie").PromiseExtended<any>;
|
|
13
|
-
export declare const set: (key: string, value: any) => Promise<
|
|
14
|
-
declare const _default: {
|
|
15
|
-
get: (key: string, value?: boolean) => import("dexie").PromiseExtended<any>;
|
|
16
|
-
set: (key: string, value: any) => Promise<void>;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
13
|
+
export declare const set: (key: string, value: any) => Promise<any>;
|
|
@@ -9,16 +9,3 @@ export declare const FORMAT: {
|
|
|
9
9
|
HOUR: string;
|
|
10
10
|
MINUTE: string;
|
|
11
11
|
};
|
|
12
|
-
declare const _default: {
|
|
13
|
-
dayjs: typeof dayjs;
|
|
14
|
-
FORMAT: {
|
|
15
|
-
DATETIME: string;
|
|
16
|
-
DATE: string;
|
|
17
|
-
TIME: string;
|
|
18
|
-
YEAR: string;
|
|
19
|
-
MONTH: string;
|
|
20
|
-
HOUR: string;
|
|
21
|
-
MINUTE: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
export declare const SHA256: (input: unknown, toJson?: Boolean) => Promise<string>;
|
|
2
2
|
export declare const random: () => number;
|
|
3
3
|
export declare const id: () => string;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
SHA256: (input: unknown, toJson?: Boolean) => Promise<string>;
|
|
6
|
-
random: () => number;
|
|
7
|
-
id: () => string;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
@@ -4,10 +4,3 @@ export declare const get: (url: string, params?: ObjectProps) => Promise<import(
|
|
|
4
4
|
export declare const post: (url: string, data?: ObjectProps) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
5
|
export declare const download: (config: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
6
|
export declare const request: (config: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
get: (url: string, params?: ObjectProps) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
-
post: (url: string, data?: ObjectProps) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
-
download: (config: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
-
request: (config: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { Options } from 'jsan';
|
|
2
2
|
export declare const stringify: (value?: unknown, replacer?: (key: string, value: unknown) => unknown | Array<number | string> | null, space?: string | number, _options?: Options | boolean) => string;
|
|
3
3
|
export declare const parse: (text: string, reviver?: (key: string, value: unknown) => unknown) => any;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
stringify: (value?: unknown, replacer?: (key: string, value: unknown) => unknown | Array<number | string> | null, space?: string | number, _options?: Options | boolean) => string;
|
|
6
|
-
parse: (text: string, reviver?: (key: string, value: unknown) => unknown) => any;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
export declare const search: () => URLSearchParams;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const params: () => ObjectProps;
|
|
3
3
|
export declare const open: (url?: string | URL, target?: string, features?: string) => void;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
search: () => URLSearchParams;
|
|
6
|
-
all: () => ObjectProps;
|
|
7
|
-
open: (url?: string | URL, target?: string, features?: string) => void;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
type ObjectProps = Record<string, any>
|
|
2
|
-
type ProviderProps = { children: ReactNode }
|
|
3
|
-
type FunctionProps = (...args: any[]) => any
|
|
1
|
+
type ObjectProps = Record<string, any>
|
|
2
|
+
type ProviderProps = { children: ReactNode }
|
|
3
|
+
type FunctionProps = (...args: any[]) => any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainte/js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/jsan": "^3.1.5",
|
|
35
|
-
"@types/node": "^22.13.
|
|
35
|
+
"@types/node": "^22.13.13",
|
|
36
36
|
"typescript": "^5.8.2",
|
|
37
|
-
"vite": "^6.2.
|
|
37
|
+
"vite": "^6.2.3"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const flattenTree: (tree: any[], prop?: string) => any;
|
|
2
|
-
export declare const findByValue: (list: any[], value: any, prop?: string) => any;
|
|
3
|
-
export declare const sleep: (ms: number) => Promise<unknown>;
|
|
4
|
-
export declare const log: (message: any, type?: string) => void;
|
|
5
|
-
export declare const fail: (message: string) => never;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
findByValue: (list: any[], value: any, prop?: string) => any;
|
|
8
|
-
sleep: (ms: number) => Promise<unknown>;
|
|
9
|
-
log: (message: any, type?: string) => void;
|
|
10
|
-
fail: (message: string) => never;
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const toBase64: (blob: Blob) => Promise<string>;
|
|
2
|
-
export declare const toBlob: (base64: string) => Blob;
|
|
3
|
-
export declare const download: (filename: string, obj: Blob | MediaSource) => void;
|
|
4
|
-
declare const _default: {
|
|
5
|
-
toBase64: (blob: Blob) => Promise<string>;
|
|
6
|
-
toBlob: (base64: string) => Blob;
|
|
7
|
-
download: (filename: string, obj: Blob | MediaSource) => void;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|