ph-utils 0.3.3 → 0.3.4

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/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
@@ -30,9 +30,13 @@
30
30
  "types": "./lib/crypto_node.d.ts",
31
31
  "import": "./lib/crypto_node.js"
32
32
  },
33
+ "./dom": {
34
+ "types": "./lib/dom.d.ts",
35
+ "import": "./lib/dom.js"
36
+ },
33
37
  "./*": "./lib/*"
34
38
  },
35
- "version": "0.3.3",
39
+ "version": "0.3.4",
36
40
  "type": "module",
37
41
  "repository": {
38
42
  "type": "git",