
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
promise-success
Advanced tools
this is a encapsulation based on urllib, it only call Fulfilled when the status === 200
目标:封装公司现有请求:
请求返回200:resolve,附带经过JSON.parse()后的数据。
其他情况一律:reject,并附带JSON.parse()后的数据(如果有的话)和请求的 statusCode。
$ npm install promise-success --save
'use strict';
var koa = require('koa');
var app = koa();
var request = require('promise-success');
app.use(function *(){
try {
var result = yield request('https://www.baidu.com');
this.body = result;
} catch (e) {
this.body = e;
}
});
app.listen(8000);
FAQs
this is a encapsulation based on urllib, it only call Fulfilled when the status === 200
The npm package promise-success receives a total of 1 weekly downloads. As such, promise-success popularity was classified as not popular.
We found that promise-success demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.