ph-utils 0.3.2 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
package/lib/server.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { exec as execCmd, spawn } from 'child_process';
2
- import { isBlank } from './index';
2
+ import { isBlank } from './index.js';
3
3
  /**
4
4
  * 执行命令
5
5
  * @param cmd 执行的命令
package/lib/web.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * web(浏览器) 端工具类
3
3
  */
4
- import { isBlank } from './index';
4
+ import { isBlank } from './index.js';
5
5
  /**
6
6
  * 解析 Form 表单中的 input 元素的数据为 JSON 格式,key: input-name;value: input-value
7
7
  * @param form {object} Form 节点对象
package/package.json CHANGED
@@ -5,7 +5,38 @@
5
5
  "module": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "browser": "lib/index.js",
8
- "version": "0.3.2",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/index.d.ts",
11
+ "import": "./lib/index.js"
12
+ },
13
+ "./file": {
14
+ "types": "./lib/file.d.ts",
15
+ "import": "./lib/file.js"
16
+ },
17
+ "./date": {
18
+ "types": "./lib/date.d.ts",
19
+ "import": "./lib/date.js"
20
+ },
21
+ "./validator": {
22
+ "types": "./lib/validator.d.ts",
23
+ "import": "./lib/validator.js"
24
+ },
25
+ "./crypto": {
26
+ "types": "./lib/crypto.d.ts",
27
+ "import": "./lib/crypto.js"
28
+ },
29
+ "./crypto_node": {
30
+ "types": "./lib/crypto_node.d.ts",
31
+ "import": "./lib/crypto_node.js"
32
+ },
33
+ "./dom": {
34
+ "types": "./lib/dom.d.ts",
35
+ "import": "./lib/dom.js"
36
+ },
37
+ "./*": "./lib/*"
38
+ },
39
+ "version": "0.3.4",
9
40
  "type": "module",
10
41
  "repository": {
11
42
  "type": "git",
File without changes
File without changes