@jhqn/utils 0.0.1-beta.23 → 0.0.1-beta.24

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 CHANGED
@@ -5,5 +5,5 @@ const utilsCore = require('@jhqn/utils-core');
5
5
 
6
6
 
7
7
  Object.keys(utilsCore).forEach(function (k) {
8
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsCore[k];
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
9
9
  });
@@ -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';
@@ -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 CHANGED
@@ -7,3 +7,5 @@ import '@jhqn/utils-crypto/md5';
7
7
  import '@jhqn/utils-faker';
8
8
  import '@jhqn/utils-msw';
9
9
  import '@jhqn/utils-storage';
10
+ import '@jhqn/utils-storage/react';
11
+ import '@jhqn/utils-storage/vue';
package/dist/crypto.cjs CHANGED
@@ -9,17 +9,17 @@ const md5 = require('@jhqn/utils-crypto/md5');
9
9
 
10
10
 
11
11
  Object.keys(utilsCrypto).forEach(function (k) {
12
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsCrypto[k];
12
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
13
13
  });
14
14
  Object.keys(aes).forEach(function (k) {
15
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = aes[k];
15
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
16
16
  });
17
17
  Object.keys(base64).forEach(function (k) {
18
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = base64[k];
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
19
19
  });
20
20
  Object.keys(base64url).forEach(function (k) {
21
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = base64url[k];
21
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
22
22
  });
23
23
  Object.keys(md5).forEach(function (k) {
24
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = md5[k];
24
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
25
25
  });
@@ -0,0 +1,5 @@
1
+ export * from '@jhqn/utils-crypto';
2
+ export * from '@jhqn/utils-crypto/aes';
3
+ export * from '@jhqn/utils-crypto/base64';
4
+ export * from '@jhqn/utils-crypto/base64url';
5
+ export * from '@jhqn/utils-crypto/md5';
@@ -0,0 +1,5 @@
1
+ export * from '@jhqn/utils-crypto';
2
+ export * from '@jhqn/utils-crypto/aes';
3
+ export * from '@jhqn/utils-crypto/base64';
4
+ export * from '@jhqn/utils-crypto/base64url';
5
+ export * from '@jhqn/utils-crypto/md5';
package/dist/faker.cjs CHANGED
@@ -5,5 +5,5 @@ const utilsFaker = require('@jhqn/utils-faker');
5
5
 
6
6
 
7
7
  Object.keys(utilsFaker).forEach(function (k) {
8
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsFaker[k];
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
9
9
  });
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-faker';
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-faker';
package/dist/index.cjs CHANGED
@@ -13,29 +13,29 @@ const utilsStorage = require('@jhqn/utils-storage');
13
13
 
14
14
 
15
15
  Object.keys(utilsCore).forEach(function (k) {
16
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsCore[k];
16
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCore[k];
17
17
  });
18
18
  Object.keys(utilsCrypto).forEach(function (k) {
19
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsCrypto[k];
19
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsCrypto[k];
20
20
  });
21
21
  Object.keys(aes).forEach(function (k) {
22
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = aes[k];
22
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = aes[k];
23
23
  });
24
24
  Object.keys(base64).forEach(function (k) {
25
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = base64[k];
25
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64[k];
26
26
  });
27
27
  Object.keys(base64url).forEach(function (k) {
28
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = base64url[k];
28
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = base64url[k];
29
29
  });
30
30
  Object.keys(md5).forEach(function (k) {
31
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = md5[k];
31
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = md5[k];
32
32
  });
33
33
  Object.keys(utilsFaker).forEach(function (k) {
34
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsFaker[k];
34
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsFaker[k];
35
35
  });
36
36
  Object.keys(utilsMsw).forEach(function (k) {
37
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsMsw[k];
37
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
38
38
  });
39
39
  Object.keys(utilsStorage).forEach(function (k) {
40
- if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = utilsStorage[k];
40
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
41
41
  });
@@ -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';
@@ -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,5 +1,3 @@
1
- export * from '@jhqn/utils-msw';
2
- export * from '@jhqn/utils-storage';
3
1
  export * from '@jhqn/utils-core';
4
2
  export * from '@jhqn/utils-crypto';
5
3
  export * from '@jhqn/utils-crypto/aes';
@@ -7,3 +5,5 @@ export * from '@jhqn/utils-crypto/base64';
7
5
  export * from '@jhqn/utils-crypto/base64url';
8
6
  export * from '@jhqn/utils-crypto/md5';
9
7
  export * from '@jhqn/utils-faker';
8
+ export * from '@jhqn/utils-msw';
9
+ export * from '@jhqn/utils-storage';
package/dist/msw.cjs ADDED
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const utilsMsw = require('@jhqn/utils-msw');
4
+
5
+
6
+
7
+ Object.keys(utilsMsw).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsMsw[k];
9
+ });
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';
@@ -1,16 +1,9 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ const utilsStorage = require('@jhqn/utils-storage');
4
+
5
+
6
+
7
+ Object.keys(utilsStorage).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = utilsStorage[k];
5
9
  });
6
- var _utilsStorage = require("@jhqn/utils-storage");
7
- Object.keys(_utilsStorage).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _utilsStorage[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _utilsStorage[key];
14
- }
15
- });
16
- });
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-storage';
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-storage';
@@ -1 +1 @@
1
- export * from "@jhqn/utils-storage";
1
+ export * from '@jhqn/utils-storage';
@@ -1,16 +1,9 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ const react = require('@jhqn/utils-storage/react');
4
+
5
+
6
+
7
+ Object.keys(react).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
5
9
  });
6
- var _react = require("@jhqn/utils-storage/react");
7
- Object.keys(_react).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _react[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _react[key];
14
- }
15
- });
16
- });
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-storage/react';
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-storage/react';
@@ -1 +1 @@
1
- export * from "@jhqn/utils-storage/react";
1
+ export * from '@jhqn/utils-storage/react';
@@ -1,16 +1,9 @@
1
- "use strict";
1
+ 'use strict';
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ const vue = require('@jhqn/utils-storage/vue');
4
+
5
+
6
+
7
+ Object.keys(vue).forEach(function (k) {
8
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = vue[k];
5
9
  });
6
- var _vue = require("@jhqn/utils-storage/vue");
7
- Object.keys(_vue).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _vue[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _vue[key];
14
- }
15
- });
16
- });
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-storage/vue';
@@ -0,0 +1 @@
1
+ export * from '@jhqn/utils-storage/vue';
@@ -1 +1 @@
1
- export * from "@jhqn/utils-storage/vue";
1
+ export * from '@jhqn/utils-storage/vue';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jhqn/utils",
3
3
  "type": "module",
4
- "version": "0.0.1-beta.23",
4
+ "version": "0.0.1-beta.24",
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,49 +20,102 @@
20
20
  "sideEffects": false,
21
21
  "exports": {
22
22
  ".": {
23
- "types": "./dist/index.d.ts",
24
- "import": "./dist/index.mjs",
25
- "require": "./dist/index.cjs"
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
32
  "./core": {
28
33
  "types": "./dist/core.d.ts",
29
- "import": "./dist/core.mjs",
30
- "require": "./dist/core.cjs"
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
43
  "./crypto": {
33
44
  "types": "./dist/crypto.d.ts",
34
- "import": "./dist/crypto.mjs",
35
- "require": "./dist/crypto.cjs"
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
+ }
36
53
  },
37
54
  "./faker": {
38
55
  "types": "./dist/faker.d.ts",
39
- "import": "./dist/faker.mjs",
40
- "require": "./dist/faker.cjs"
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
+ }
41
64
  },
42
65
  "./msw": {
43
- "types": "./dist/faker.d.ts",
44
- "import": "./dist/faker.mjs",
45
- "require": "./dist/faker.cjs"
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
+ }
46
75
  },
47
76
  "./storage": {
48
77
  "types": "./dist/storage/index.d.ts",
49
- "import": "./dist/storage/index.mjs",
50
- "require": "./dist/storage/index.cjs"
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
+ }
51
86
  },
52
87
  "./storage/react": {
53
88
  "types": "./dist/storage/react.d.ts",
54
- "import": "./dist/storage/react.mjs",
55
- "require": "./dist/storage/react.cjs"
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
+ }
56
97
  },
57
98
  "./storage/vue": {
58
99
  "types": "./dist/storage/vue.d.ts",
59
- "import": "./dist/storage/vue.mjs",
60
- "require": "./dist/storage/vue.cjs"
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
+ }
61
108
  },
62
109
  "./*": {
63
110
  "types": "./dist/*.d.ts",
64
- "import": "./dist/*.mjs",
65
- "require": "./dist/*.cjs"
111
+ "import": {
112
+ "types": "./dist/*.d.mts",
113
+ "default": "./dist/*.mjs"
114
+ },
115
+ "require": {
116
+ "types": "./dist/*.d.cts",
117
+ "default": "./dist/*.cjs"
118
+ }
66
119
  }
67
120
  },
68
121
  "main": "dist/index.cjs",
@@ -73,11 +126,11 @@
73
126
  "*.d.ts"
74
127
  ],
75
128
  "dependencies": {
76
- "@jhqn/utils-core": "0.0.1-beta.23",
77
- "@jhqn/utils-crypto": "0.0.1-beta.23",
78
- "@jhqn/utils-faker": "0.0.1-beta.23",
79
- "@jhqn/utils-msw": "0.0.1-beta.23",
80
- "@jhqn/utils-storage": "0.0.1-beta.23"
129
+ "@jhqn/utils-core": "0.0.1-beta.24",
130
+ "@jhqn/utils-crypto": "0.0.1-beta.24",
131
+ "@jhqn/utils-faker": "0.0.1-beta.24",
132
+ "@jhqn/utils-msw": "0.0.1-beta.24",
133
+ "@jhqn/utils-storage": "0.0.1-beta.24"
81
134
  },
82
135
  "scripts": {
83
136
  "test": "vitest",