Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@devtea2027/omnis-possimus-minus-asperiores
Advanced tools
Advanced HTTP requests in node.js and browsers, using Servie.
npm install @devtea2027/omnis-possimus-minus-asperiores --save
import { fetch } from "@devtea2027/omnis-possimus-minus-asperiores";
const res = await fetch("http://example.com");
const data = await res.text();
Popsicle is a universal package, meaning node.js and browsers are supported without any configuration. This means the primary endpoint requires some
dom
types in TypeScript. When in a node.js or browser only environments prefer importing@devtea2027/omnis-possimus-minus-asperiores/dist/{node,browser}
instead.
Popsicle re-exports Request
, Response
, Headers
and AbortController
from servie
. The fetch
function accepts the same arguments as Request
and returns a promise that resolves to Response
. You can use the Signal
event emitter (from AbortController#signal
) to listen to request life cycle events.
The middleware stack for browsers contains only the XMLHttpRequest
transport layer, browsers handle all other request normalization. This means a smaller and faster package for browsers.
The middleware stack for node.js includes normalization to act similar to browsers:
User-Agent
(Learn more)gzip
, deflate
and brotli
(Learn more)Important: If you are doing anything non-trivial with Popsicle, please override the
User-Agent
and respectrobots.txt
.
import { fetch, AbortController } from "@devtea2027/omnis-possimus-minus-asperiores";
const controller = new AbortController();
setTimeout(() => controller.abort(), 500);
const res = fetch("http://example.com", {
signal: controller.signal,
});
Transports can return an error. The built-in codes are documented below:
Build the functionality you require by composing middleware functions and using toFetch
. See src/node.ts
for an example.
See Throwback for more information:
type Plugin = (
req: Request,
next: () => Promise<Response>,
) => Promise<Response>;
This project is written using TypeScript and publishes the types to NPM alongside the package.
$http
serviceMIT
FAQs
Unknown package
The npm package @devtea2027/omnis-possimus-minus-asperiores receives a total of 0 weekly downloads. As such, @devtea2027/omnis-possimus-minus-asperiores popularity was classified as not popular.
We found that @devtea2027/omnis-possimus-minus-asperiores demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.