
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Yet another convenient wrapper around fetch, for browser and node.js.
fetch is good, but not easy enoughaxios is still too big(5kb gzipped)Using npm:
$ npm i -D zero-fetch
Using cdn:
<script src="https://unpkg.com/zero-fetch/dist/index.js"></script>
Performing a GET request
import zeroFetch from 'zero-fetch'
// Make a request for a user with a given id
zeroFetch('/user?id=12345')
.then(data => console.log(data))
.catch(error => console.log(error))
// Optionally the request above could also be done as
async getUser = () => {
try {
const data = await zeroFetch('/user', {
data: {
id: 12345
}
})
console.log(data)
} catch (error) {
console.error(error)
}
}
If data is a plain Javascript object, it will be encoded automatically and sent as search parameters, or request body, based on method and requestType.
When converting data to search parameters, nested objects are encoded to be understanded by express, so that req.query is same as data.
TODO: FormData application/x-www-form-urlencoded TODO: base64 encode inner Blob
data: the data to be sent as search parameters(GET) or the request body(other method).Response body is automatically converted by proper method, based on Content-Type of response header. Supported types are:
application/json: .jsontext/plain: .textapplication/octect-stream: .blobFAQs
Yet another convenient wrapper around fetch, for browser and node.js
The npm package zero-fetch receives a total of 7 weekly downloads. As such, zero-fetch popularity was classified as not popular.
We found that zero-fetch 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.