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
Advanced tools
Everything a Fusion app needs to communicate with the core.
$ yarn add @equinor/fusion
$ npm install @equinor/fusion --save
import React, { useRef } from "react";
import { render } from "react-dom";
import {
AuthContainer,
createApiClients
createResourceCollections,
FusionContext,
HttpClient,
ServiceResolver,
} from "@equinor/fusion";
const authContainer = new AuthContainer();
if(!authContainer.registerApp("{client-id}", ["http://api.url.com"])) {
authContainer.login("{client-id}");
return;
}
const serviceResolver: ServiceResolver = {
getDataProxyUrl: () => "http://api.url.com",
};
const resourceCollections = createResourceCollections(serviceResolver);
const httpClient = new HttpClient(authContainer);
const apiClients = createApiClients(httpClient, resourceCollections);
const rootRef = useRef(null);
const overlayRef = useRef(null);
const Root = () => (
<FusionContext.Provider value={{
auth: { container: authContainer },
http: {
resourceCollections,
apiClients,
},
refs: {
root: rootRef,
overlay: overlayRef,
}
}}>
<div id="fusion-root" ref={rootRef}>
</div>
<div id="overlay-container" ref={overlayRef}>
</div>
</FusionContext.Provider>
);
render(<Root />, document.getElementById("app"));
FAQs
Everything a Fusion app needs to communicate with the core
The npm package @equinor/fusion receives a total of 996 weekly downloads. As such, @equinor/fusion popularity was classified as not popular.
We found that @equinor/fusion demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.