Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@equinor/fusion-framework-module-http
Advanced tools
Module for configuring and providing http clients
Module for configuring and providing http clients
const configure = (config) => {
config.http.configureClient(
'bar',
'https://somewhere-test.com'
);
}
const configure = (config) => {
config.http.configureClient(
'bar',
{
baseUri: 'https://foo.bar',
defaultScopes: ['foobar/.default']
}
);
}
const configure = async(config) => {
config.http.configureClient(
'bar',
(client): => {
client.uri = 'https://foo.bar'
client.defaultScopes: ['foobar/.default']
}
);
}
const client = modules.http.createClient('foo');
const selector = (response: Response): Promise<FooBar> => response.json();
// stream
client.fetch('/api/admin', {selector, scopes: ['foobar/.admin']}).subscribe(x => console.log(x));
// async
client.fetchAsync('/api', {selector}).then(console.log);
const client = modules.http.createClient('foo');
const logger = console.debug;
client.requestHandler.add((x: Request) => logger(x));
client.responseHandler.add((x: Request) => logger(x));
FAQs
> __The Fusion Framework HTTP Module provides a streamlined and powerful HTTP client for making requests to APIs.__ > > The module supports both asynchronous (Promise-based) and observable (RxJS-based) execution methods, allowing you to choose the approac
We found that @equinor/fusion-framework-module-http demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.