@jhqn/utils 0.0.1-beta.9 → 0.0.2-beta.0
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/core.d.ts +1 -0
- package/crypto.d.ts +5 -0
- package/dist/core.cjs +9 -0
- package/dist/core.d.cts +11 -0
- package/dist/core.d.mts +11 -0
- package/dist/core.d.ts +11 -0
- package/dist/core.mjs +1 -0
- package/dist/crypto.cjs +25 -0
- package/dist/crypto.d.cts +5 -0
- package/dist/crypto.d.mts +5 -0
- package/dist/crypto.d.ts +5 -0
- package/dist/crypto.mjs +5 -0
- package/dist/faker.cjs +9 -0
- package/dist/faker.d.cts +1 -0
- package/dist/faker.d.mts +1 -0
- package/dist/faker.d.ts +1 -0
- package/dist/faker.mjs +1 -0
- package/dist/index.cjs +24 -4
- package/dist/index.d.cts +9 -0
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +5 -0
- package/dist/msw.cjs +9 -0
- package/dist/msw.d.cts +1 -0
- package/dist/msw.d.mts +1 -0
- package/dist/msw.d.ts +1 -0
- package/dist/msw.mjs +1 -0
- package/dist/storage/index.cjs +9 -0
- package/dist/storage/index.d.cts +1 -0
- package/dist/storage/index.d.mts +1 -0
- package/dist/storage/index.d.ts +1 -0
- package/dist/storage/index.mjs +1 -0
- package/dist/{react.cjs → storage/react.cjs} +1 -1
- package/dist/storage/react.d.ts +1 -0
- package/dist/storage/react.mjs +1 -0
- package/dist/{vue.cjs → storage/vue.cjs} +1 -1
- package/dist/storage/vue.d.ts +1 -0
- package/dist/storage/vue.mjs +1 -0
- package/faker.d.ts +1 -0
- package/msw.d.ts +1 -0
- package/package.json +99 -19
- package/storage.d.ts +3 -0
- /package/dist/{react.d.ts → storage/react.d.cts} +0 -0
- /package/dist/{react.mjs → storage/react.d.mts} +0 -0
- /package/dist/{vue.d.ts → storage/vue.d.cts} +0 -0
- /package/dist/{vue.mjs → storage/vue.d.mts} +0 -0
package/core.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core'
|
package/crypto.d.ts
ADDED
package/dist/core.cjs
ADDED
package/dist/core.d.cts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core';
|
|
2
|
+
import '@jhqn/utils-crypto';
|
|
3
|
+
import '@jhqn/utils-crypto/aes';
|
|
4
|
+
import '@jhqn/utils-crypto/base64';
|
|
5
|
+
import '@jhqn/utils-crypto/base64url';
|
|
6
|
+
import '@jhqn/utils-crypto/md5';
|
|
7
|
+
import '@jhqn/utils-faker';
|
|
8
|
+
import '@jhqn/utils-msw';
|
|
9
|
+
import '@jhqn/utils-storage';
|
|
10
|
+
import '@jhqn/utils-storage/react';
|
|
11
|
+
import '@jhqn/utils-storage/vue';
|
package/dist/core.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core';
|
|
2
|
+
import '@jhqn/utils-crypto';
|
|
3
|
+
import '@jhqn/utils-crypto/aes';
|
|
4
|
+
import '@jhqn/utils-crypto/base64';
|
|
5
|
+
import '@jhqn/utils-crypto/base64url';
|
|
6
|
+
import '@jhqn/utils-crypto/md5';
|
|
7
|
+
import '@jhqn/utils-faker';
|
|
8
|
+
import '@jhqn/utils-msw';
|
|
9
|
+
import '@jhqn/utils-storage';
|
|
10
|
+
import '@jhqn/utils-storage/react';
|
|
11
|
+
import '@jhqn/utils-storage/vue';
|
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core';
|
|
2
|
+
import '@jhqn/utils-crypto';
|
|
3
|
+
import '@jhqn/utils-crypto/aes';
|
|
4
|
+
import '@jhqn/utils-crypto/base64';
|
|
5
|
+
import '@jhqn/utils-crypto/base64url';
|
|
6
|
+
import '@jhqn/utils-crypto/md5';
|
|
7
|
+
import '@jhqn/utils-faker';
|
|
8
|
+
import '@jhqn/utils-msw';
|
|
9
|
+
import '@jhqn/utils-storage';
|
|
10
|
+
import '@jhqn/utils-storage/react';
|
|
11
|
+
import '@jhqn/utils-storage/vue';
|
package/dist/core.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core';
|
package/dist/crypto.cjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const utilsCrypto = require('@jhqn/utils-crypto');
|
|
4
|
+
const aes = require('@jhqn/utils-crypto/aes');
|
|
5
|
+
const base64 = require('@jhqn/utils-crypto/base64');
|
|
6
|
+
const base64url = require('@jhqn/utils-crypto/base64url');
|
|
7
|
+
const md5 = require('@jhqn/utils-crypto/md5');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.keys(utilsCrypto).forEach(function (k) {
|
|
12
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
|
|
13
|
+
});
|
|
14
|
+
Object.keys(aes).forEach(function (k) {
|
|
15
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
|
|
16
|
+
});
|
|
17
|
+
Object.keys(base64).forEach(function (k) {
|
|
18
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
|
|
19
|
+
});
|
|
20
|
+
Object.keys(base64url).forEach(function (k) {
|
|
21
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
|
|
22
|
+
});
|
|
23
|
+
Object.keys(md5).forEach(function (k) {
|
|
24
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
|
|
25
|
+
});
|
package/dist/crypto.d.ts
ADDED
package/dist/crypto.mjs
ADDED
package/dist/faker.cjs
ADDED
package/dist/faker.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-faker';
|
package/dist/faker.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-faker';
|
package/dist/faker.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-faker';
|
package/dist/faker.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-faker';
|
package/dist/index.cjs
CHANGED
|
@@ -2,20 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
const utilsCore = require('@jhqn/utils-core');
|
|
4
4
|
const utilsCrypto = require('@jhqn/utils-crypto');
|
|
5
|
+
const aes = require('@jhqn/utils-crypto/aes');
|
|
6
|
+
const base64 = require('@jhqn/utils-crypto/base64');
|
|
7
|
+
const base64url = require('@jhqn/utils-crypto/base64url');
|
|
8
|
+
const md5 = require('@jhqn/utils-crypto/md5');
|
|
5
9
|
const utilsFaker = require('@jhqn/utils-faker');
|
|
10
|
+
const utilsMsw = require('@jhqn/utils-msw');
|
|
6
11
|
const utilsStorage = require('@jhqn/utils-storage');
|
|
7
12
|
|
|
8
13
|
|
|
9
14
|
|
|
10
15
|
Object.keys(utilsCore).forEach(function (k) {
|
|
11
|
-
if (k !== 'default' && !
|
|
16
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
|
|
12
17
|
});
|
|
13
18
|
Object.keys(utilsCrypto).forEach(function (k) {
|
|
14
|
-
if (k !== 'default' && !
|
|
19
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
|
|
20
|
+
});
|
|
21
|
+
Object.keys(aes).forEach(function (k) {
|
|
22
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
|
|
23
|
+
});
|
|
24
|
+
Object.keys(base64).forEach(function (k) {
|
|
25
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
|
|
26
|
+
});
|
|
27
|
+
Object.keys(base64url).forEach(function (k) {
|
|
28
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
|
|
29
|
+
});
|
|
30
|
+
Object.keys(md5).forEach(function (k) {
|
|
31
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
|
|
15
32
|
});
|
|
16
33
|
Object.keys(utilsFaker).forEach(function (k) {
|
|
17
|
-
if (k !== 'default' && !
|
|
34
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
|
|
35
|
+
});
|
|
36
|
+
Object.keys(utilsMsw).forEach(function (k) {
|
|
37
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
|
|
18
38
|
});
|
|
19
39
|
Object.keys(utilsStorage).forEach(function (k) {
|
|
20
|
-
if (k !== 'default' && !
|
|
40
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
|
|
21
41
|
});
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core';
|
|
2
|
+
export * from '@jhqn/utils-crypto';
|
|
3
|
+
export * from '@jhqn/utils-crypto/aes';
|
|
4
|
+
export * from '@jhqn/utils-crypto/base64';
|
|
5
|
+
export * from '@jhqn/utils-crypto/base64url';
|
|
6
|
+
export * from '@jhqn/utils-crypto/md5';
|
|
7
|
+
export * from '@jhqn/utils-faker';
|
|
8
|
+
export * from '@jhqn/utils-msw';
|
|
9
|
+
export * from '@jhqn/utils-storage';
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from '@jhqn/utils-core';
|
|
2
|
+
export * from '@jhqn/utils-crypto';
|
|
3
|
+
export * from '@jhqn/utils-crypto/aes';
|
|
4
|
+
export * from '@jhqn/utils-crypto/base64';
|
|
5
|
+
export * from '@jhqn/utils-crypto/base64url';
|
|
6
|
+
export * from '@jhqn/utils-crypto/md5';
|
|
7
|
+
export * from '@jhqn/utils-faker';
|
|
8
|
+
export * from '@jhqn/utils-msw';
|
|
9
|
+
export * from '@jhqn/utils-storage';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from '@jhqn/utils-core';
|
|
2
2
|
export * from '@jhqn/utils-crypto';
|
|
3
|
+
export * from '@jhqn/utils-crypto/aes';
|
|
4
|
+
export * from '@jhqn/utils-crypto/base64';
|
|
5
|
+
export * from '@jhqn/utils-crypto/base64url';
|
|
6
|
+
export * from '@jhqn/utils-crypto/md5';
|
|
3
7
|
export * from '@jhqn/utils-faker';
|
|
8
|
+
export * from '@jhqn/utils-msw';
|
|
4
9
|
export * from '@jhqn/utils-storage';
|
|
5
|
-
import '@jhqn/utils-storage/vue';
|
|
6
|
-
import '@jhqn/utils-storage/react';
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export * from '@jhqn/utils-core';
|
|
2
2
|
export * from '@jhqn/utils-crypto';
|
|
3
|
+
export * from '@jhqn/utils-crypto/aes';
|
|
4
|
+
export * from '@jhqn/utils-crypto/base64';
|
|
5
|
+
export * from '@jhqn/utils-crypto/base64url';
|
|
6
|
+
export * from '@jhqn/utils-crypto/md5';
|
|
3
7
|
export * from '@jhqn/utils-faker';
|
|
8
|
+
export * from '@jhqn/utils-msw';
|
|
4
9
|
export * from '@jhqn/utils-storage';
|
package/dist/msw.cjs
ADDED
package/dist/msw.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-msw';
|
package/dist/msw.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-msw';
|
package/dist/msw.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-msw';
|
package/dist/msw.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-msw';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage';
|
|
@@ -5,5 +5,5 @@ const react = require('@jhqn/utils-storage/react');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.keys(react).forEach(function (k) {
|
|
8
|
-
if (k !== 'default' && !
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
|
|
9
9
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage/react';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage/vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-storage/vue';
|
package/faker.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-faker'
|
package/msw.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@jhqn/utils-msw'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhqn/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2-beta.0",
|
|
5
5
|
"author": "jade-gjz <jiangang.zhang@jaderd.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/jaderd-jh/utils/tree/main/packages/utils#readme",
|
|
@@ -20,37 +20,117 @@
|
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
"import": {
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"require": {
|
|
28
|
+
"types": "./dist/index.d.cts",
|
|
29
|
+
"default": "./dist/index.cjs"
|
|
30
|
+
}
|
|
26
31
|
},
|
|
27
|
-
"./
|
|
28
|
-
"types": "./dist/
|
|
29
|
-
"import":
|
|
30
|
-
|
|
32
|
+
"./core": {
|
|
33
|
+
"types": "./dist/core.d.ts",
|
|
34
|
+
"import": {
|
|
35
|
+
"types": "./dist/core.d.mts",
|
|
36
|
+
"default": "./dist/core.mjs"
|
|
37
|
+
},
|
|
38
|
+
"require": {
|
|
39
|
+
"types": "./dist/core.d.cts",
|
|
40
|
+
"default": "./dist/core.cjs"
|
|
41
|
+
}
|
|
31
42
|
},
|
|
32
|
-
"./
|
|
33
|
-
"types": "./dist/
|
|
34
|
-
"import":
|
|
35
|
-
|
|
43
|
+
"./crypto": {
|
|
44
|
+
"types": "./dist/crypto.d.ts",
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/crypto.d.mts",
|
|
47
|
+
"default": "./dist/crypto.mjs"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/crypto.d.cts",
|
|
51
|
+
"default": "./dist/crypto.cjs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./faker": {
|
|
55
|
+
"types": "./dist/faker.d.ts",
|
|
56
|
+
"import": {
|
|
57
|
+
"types": "./dist/faker.d.mts",
|
|
58
|
+
"default": "./dist/faker.mjs"
|
|
59
|
+
},
|
|
60
|
+
"require": {
|
|
61
|
+
"types": "./dist/faker.d.cts",
|
|
62
|
+
"default": "./dist/faker.cjs"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"./msw": {
|
|
66
|
+
"types": "./dist/msw.d.ts",
|
|
67
|
+
"import": {
|
|
68
|
+
"types": "./dist/msw.d.mts",
|
|
69
|
+
"default": "./dist/msw.mjs"
|
|
70
|
+
},
|
|
71
|
+
"require": {
|
|
72
|
+
"types": "./dist/msw.d.cts",
|
|
73
|
+
"default": "./dist/msw.cjs"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"./storage": {
|
|
77
|
+
"types": "./dist/storage/index.d.ts",
|
|
78
|
+
"import": {
|
|
79
|
+
"types": "./dist/storage/index.d.mts",
|
|
80
|
+
"default": "./dist/storage/index.mjs"
|
|
81
|
+
},
|
|
82
|
+
"require": {
|
|
83
|
+
"types": "./dist/storage/index.d.cts",
|
|
84
|
+
"default": "./dist/storage/index.cjs"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"./storage/react": {
|
|
88
|
+
"types": "./dist/storage/react.d.ts",
|
|
89
|
+
"import": {
|
|
90
|
+
"types": "./dist/storage/react.d.mts",
|
|
91
|
+
"default": "./dist/storage/react.mjs"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/storage/react.d.cts",
|
|
95
|
+
"default": "./dist/storage/react.cjs"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"./storage/vue": {
|
|
99
|
+
"types": "./dist/storage/vue.d.ts",
|
|
100
|
+
"import": {
|
|
101
|
+
"types": "./dist/storage/vue.d.mts",
|
|
102
|
+
"default": "./dist/storage/vue.mjs"
|
|
103
|
+
},
|
|
104
|
+
"require": {
|
|
105
|
+
"types": "./dist/storage/vue.d.cts",
|
|
106
|
+
"default": "./dist/storage/vue.cjs"
|
|
107
|
+
}
|
|
36
108
|
},
|
|
37
109
|
"./*": {
|
|
38
110
|
"types": "./dist/*.d.ts",
|
|
39
|
-
"import":
|
|
40
|
-
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/*.d.mts",
|
|
113
|
+
"default": "./dist/*.mjs"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/*.d.cts",
|
|
117
|
+
"default": "./dist/*.cjs"
|
|
118
|
+
}
|
|
41
119
|
}
|
|
42
120
|
},
|
|
43
121
|
"main": "dist/index.cjs",
|
|
44
122
|
"module": "dist/index.mjs",
|
|
45
123
|
"types": "dist/index.d.ts",
|
|
46
124
|
"files": [
|
|
47
|
-
"dist"
|
|
125
|
+
"dist",
|
|
126
|
+
"*.d.ts"
|
|
48
127
|
],
|
|
49
128
|
"dependencies": {
|
|
50
|
-
"@jhqn/utils-core": "0.0.
|
|
51
|
-
"@jhqn/utils-
|
|
52
|
-
"@jhqn/utils-
|
|
53
|
-
"@jhqn/utils-
|
|
129
|
+
"@jhqn/utils-core": "0.0.2-beta.0",
|
|
130
|
+
"@jhqn/utils-msw": "0.0.2-beta.0",
|
|
131
|
+
"@jhqn/utils-storage": "0.0.2-beta.0",
|
|
132
|
+
"@jhqn/utils-crypto": "0.0.2-beta.0",
|
|
133
|
+
"@jhqn/utils-faker": "0.0.2-beta.0"
|
|
54
134
|
},
|
|
55
135
|
"scripts": {
|
|
56
136
|
"test": "vitest",
|
package/storage.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|