
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.
Small lib HTTP client for the browser, Promise based and cancelable.
npm install http-conn
import HttpConnector from 'http-conn'
const http = new HttpConnector({
// [optional] set default timeout of request, in milliseconds
timeout: 5000,
// [optional] set default headers
headers: {},
// [optional] middleware from request
onRequest(config) {
config.headers.Authorization = 'mytoken'
},
// [optional] middleware from response
onResponse(response) {
let newResponse = {
...response,
outher: true
}
return newResponse
},
// [optional] middleware from error
onError(error) {
console.log(error)
}
})
// Basic request
http.get('http://httpbin.org/get?arg=one')
.then(result => {
console.log(result)
})
.catch(error => {
console.error(error)
})
http.post('http://httpbin.org/post', { field: 'value' })
.then(result => {
console.log(result)
})
// Custom timeout
await http.get('http://httpbin.org/get', {timeout: 10000})
// Using cache
await http.get('http://httpbin.org/get', {cache: 60000}) // one minutes of cache
// Cancelable request
let { request, cancel } = http.get('http://172.164.102.88/', null, true)
request.catch(error => {
console.log(error)
})
// Download
await http.get('http://httpbin.org/image/jpeg', {download: 'filename'})
setTimeout(cancel, 3000)
FAQs
Small lib HTTP client for the browser, Promise based and cancelable.
We found that http-conn 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.