@jhqn/utils 0.0.3-beta.8 → 0.0.3
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/core.cjs +7 -0
- package/dist/crypto.cjs +35 -0
- package/dist/faker.cjs +7 -0
- package/dist/index.cjs +63 -0
- package/dist/msw.cjs +7 -0
- package/dist/storage/index.cjs +7 -0
- package/dist/storage/react.cjs +7 -0
- package/dist/storage/vue.cjs +7 -0
- package/package.json +6 -6
package/dist/core.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const utilsCore = require('@jhqn/utils-core');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(utilsCore, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: utilsCore['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(utilsCore).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
|
|
9
16
|
});
|
package/dist/crypto.cjs
CHANGED
|
@@ -8,18 +8,53 @@ const md5 = require('@jhqn/utils-crypto/md5');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
Object.prototype.hasOwnProperty.call(utilsCrypto, '__proto__') &&
|
|
12
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
13
|
+
Object.defineProperty(exports, '__proto__', {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
value: utilsCrypto['__proto__']
|
|
16
|
+
});
|
|
17
|
+
|
|
11
18
|
Object.keys(utilsCrypto).forEach(function (k) {
|
|
12
19
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
|
|
13
20
|
});
|
|
21
|
+
Object.prototype.hasOwnProperty.call(aes, '__proto__') &&
|
|
22
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
23
|
+
Object.defineProperty(exports, '__proto__', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
value: aes['__proto__']
|
|
26
|
+
});
|
|
27
|
+
|
|
14
28
|
Object.keys(aes).forEach(function (k) {
|
|
15
29
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
|
|
16
30
|
});
|
|
31
|
+
Object.prototype.hasOwnProperty.call(base64, '__proto__') &&
|
|
32
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
33
|
+
Object.defineProperty(exports, '__proto__', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
value: base64['__proto__']
|
|
36
|
+
});
|
|
37
|
+
|
|
17
38
|
Object.keys(base64).forEach(function (k) {
|
|
18
39
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
|
|
19
40
|
});
|
|
41
|
+
Object.prototype.hasOwnProperty.call(base64url, '__proto__') &&
|
|
42
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
43
|
+
Object.defineProperty(exports, '__proto__', {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
value: base64url['__proto__']
|
|
46
|
+
});
|
|
47
|
+
|
|
20
48
|
Object.keys(base64url).forEach(function (k) {
|
|
21
49
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
|
|
22
50
|
});
|
|
51
|
+
Object.prototype.hasOwnProperty.call(md5, '__proto__') &&
|
|
52
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
53
|
+
Object.defineProperty(exports, '__proto__', {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
value: md5['__proto__']
|
|
56
|
+
});
|
|
57
|
+
|
|
23
58
|
Object.keys(md5).forEach(function (k) {
|
|
24
59
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
|
|
25
60
|
});
|
package/dist/faker.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const utilsFaker = require('@jhqn/utils-faker');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(utilsFaker, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: utilsFaker['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(utilsFaker).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
|
|
9
16
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -12,30 +12,93 @@ const utilsStorage = require('@jhqn/utils-storage');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
Object.prototype.hasOwnProperty.call(utilsCore, '__proto__') &&
|
|
16
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
17
|
+
Object.defineProperty(exports, '__proto__', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
value: utilsCore['__proto__']
|
|
20
|
+
});
|
|
21
|
+
|
|
15
22
|
Object.keys(utilsCore).forEach(function (k) {
|
|
16
23
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
|
|
17
24
|
});
|
|
25
|
+
Object.prototype.hasOwnProperty.call(utilsCrypto, '__proto__') &&
|
|
26
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
27
|
+
Object.defineProperty(exports, '__proto__', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
value: utilsCrypto['__proto__']
|
|
30
|
+
});
|
|
31
|
+
|
|
18
32
|
Object.keys(utilsCrypto).forEach(function (k) {
|
|
19
33
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
|
|
20
34
|
});
|
|
35
|
+
Object.prototype.hasOwnProperty.call(aes, '__proto__') &&
|
|
36
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
37
|
+
Object.defineProperty(exports, '__proto__', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
value: aes['__proto__']
|
|
40
|
+
});
|
|
41
|
+
|
|
21
42
|
Object.keys(aes).forEach(function (k) {
|
|
22
43
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
|
|
23
44
|
});
|
|
45
|
+
Object.prototype.hasOwnProperty.call(base64, '__proto__') &&
|
|
46
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
47
|
+
Object.defineProperty(exports, '__proto__', {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
value: base64['__proto__']
|
|
50
|
+
});
|
|
51
|
+
|
|
24
52
|
Object.keys(base64).forEach(function (k) {
|
|
25
53
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
|
|
26
54
|
});
|
|
55
|
+
Object.prototype.hasOwnProperty.call(base64url, '__proto__') &&
|
|
56
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
57
|
+
Object.defineProperty(exports, '__proto__', {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
value: base64url['__proto__']
|
|
60
|
+
});
|
|
61
|
+
|
|
27
62
|
Object.keys(base64url).forEach(function (k) {
|
|
28
63
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
|
|
29
64
|
});
|
|
65
|
+
Object.prototype.hasOwnProperty.call(md5, '__proto__') &&
|
|
66
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
67
|
+
Object.defineProperty(exports, '__proto__', {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
value: md5['__proto__']
|
|
70
|
+
});
|
|
71
|
+
|
|
30
72
|
Object.keys(md5).forEach(function (k) {
|
|
31
73
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
|
|
32
74
|
});
|
|
75
|
+
Object.prototype.hasOwnProperty.call(utilsFaker, '__proto__') &&
|
|
76
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
77
|
+
Object.defineProperty(exports, '__proto__', {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
value: utilsFaker['__proto__']
|
|
80
|
+
});
|
|
81
|
+
|
|
33
82
|
Object.keys(utilsFaker).forEach(function (k) {
|
|
34
83
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
|
|
35
84
|
});
|
|
85
|
+
Object.prototype.hasOwnProperty.call(utilsMsw, '__proto__') &&
|
|
86
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
87
|
+
Object.defineProperty(exports, '__proto__', {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
value: utilsMsw['__proto__']
|
|
90
|
+
});
|
|
91
|
+
|
|
36
92
|
Object.keys(utilsMsw).forEach(function (k) {
|
|
37
93
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
|
|
38
94
|
});
|
|
95
|
+
Object.prototype.hasOwnProperty.call(utilsStorage, '__proto__') &&
|
|
96
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
97
|
+
Object.defineProperty(exports, '__proto__', {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
value: utilsStorage['__proto__']
|
|
100
|
+
});
|
|
101
|
+
|
|
39
102
|
Object.keys(utilsStorage).forEach(function (k) {
|
|
40
103
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
|
|
41
104
|
});
|
package/dist/msw.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const utilsMsw = require('@jhqn/utils-msw');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(utilsMsw, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: utilsMsw['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(utilsMsw).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
|
|
9
16
|
});
|
package/dist/storage/index.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const utilsStorage = require('@jhqn/utils-storage');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(utilsStorage, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: utilsStorage['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(utilsStorage).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
|
|
9
16
|
});
|
package/dist/storage/react.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const react = require('@jhqn/utils-storage/react');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: react['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(react).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
|
|
9
16
|
});
|
package/dist/storage/vue.cjs
CHANGED
|
@@ -4,6 +4,13 @@ const vue = require('@jhqn/utils-storage/vue');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
Object.prototype.hasOwnProperty.call(vue, '__proto__') &&
|
|
8
|
+
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
9
|
+
Object.defineProperty(exports, '__proto__', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
value: vue['__proto__']
|
|
12
|
+
});
|
|
13
|
+
|
|
7
14
|
Object.keys(vue).forEach(function (k) {
|
|
8
15
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = vue[k];
|
|
9
16
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jhqn/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.3
|
|
4
|
+
"version": "0.0.3",
|
|
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",
|
|
@@ -126,11 +126,11 @@
|
|
|
126
126
|
"dist"
|
|
127
127
|
],
|
|
128
128
|
"dependencies": {
|
|
129
|
-
"@jhqn/utils-
|
|
130
|
-
"@jhqn/utils-
|
|
131
|
-
"@jhqn/utils-
|
|
132
|
-
"@jhqn/utils-
|
|
133
|
-
"@jhqn/utils-storage": "0.0.3
|
|
129
|
+
"@jhqn/utils-core": "0.0.3",
|
|
130
|
+
"@jhqn/utils-crypto": "0.0.3",
|
|
131
|
+
"@jhqn/utils-msw": "0.0.3",
|
|
132
|
+
"@jhqn/utils-faker": "0.0.3",
|
|
133
|
+
"@jhqn/utils-storage": "0.0.3"
|
|
134
134
|
},
|
|
135
135
|
"scripts": {
|
|
136
136
|
"test": "vitest",
|