
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.
cascade-client
Advanced tools
fetcher是表示一个获取数据的接口,它实现fetch(fields) 方法
它的实现有:
import {LocalFetcher} from 'cascade-client'
var fetcher = new LocalFetcher({
// type
User: {
// category
query: { // return value
name: 'Jay'
}
}
});
var fetcher = new (require('cascade-fetcher-dpapp'))('https://a.dper.com/shd/query');
var fetcher = new (require('cascade-fetcher-http'))('https://a.dper.com/shd/query');
decorator会对传入的fetcher附加一些功能 他的实现有:
var Combiner = import {Combiner} from 'cascade-client';
var cascade = new Combiner(fetcher, {
wait: 100 // 合并100ms内的请求
})
var ErrorRejector = import 'ErrorRejector' from 'cascade-client';
var cascade = new ErrorRejector(fetcher);
var Cacher = import {Cacher} from 'cascade-client';
var cascade = new Cacher(fetcher, {
fields: [{type: 'User'}]
})
import {Cascade, LocalFetcher, Combiner} from 'cascade-client';
import Fetcher from 'cascade-fetcher-http'
let cascade = location.href.indexOf('localhost') !== -1 ? new LocalFetcher({
User: {
query: {
name: 'Jay'
}
}
}) : new Combiner(new Fetcher('https://a.dper.com/shd/query'));
// query 方法返回一个promise
cascade.fetch([{type:'User'}]).then(function(data) {
console.log(data)
})
FAQs
## fetcher
The npm package cascade-client receives a total of 0 weekly downloads. As such, cascade-client popularity was classified as not popular.
We found that cascade-client 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.