
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
digger-network
Advanced tools
The contract / request and reply modules for digger
A simple object that represents a HTTP request in JSON
var network = require('digger-network');
var req = network.request({
method:'get',
url:'/some/url'
})
req.setHeader('x-some-thing', '3434');
An object representing a HTTP response - you can pass a function to be called when it has replied
var network = require('digger-network');
var res = network.response(function(){
console.log('statuscode: ' + res.statusCode);
console.log('body: ' + res.body);
})
Or you can construct a response from raw JSON
var network = require('digger-network');
var res = network.response({
statusCode:200,
headers:{
'content-type':'text/plain'
},
body:'hello digger'
}
A contract is an array of requests to be run as a batch either in series (a pipe contract) or in parallel (a merge contract).
Contracts are produced by running queries on digger containers - they are handled by the digger-contracts module
A contract representing posting data to 2 different places
var network = require('digger-network');
var contract = network.contract({
method:'post',
url:'/reception',
headers:{
'content-type':'digger/contract',
'x-contract-type':'merge'
},
body:[{
method:'post',
url:'/some/database/path',
body:'hello database 1'
},{
method:'post',
url:'/some/other/path',
body:'hello database 2'
}]
}
})
MIT
FAQs
The contract / request and reply modules for digger
We found that digger-network 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.