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.
nextjs-edgee
Advanced tools
NextEdgee
is a React component that injects the Edgee SDK script into the application.
It also sets up listeners to track page navigations via history.pushState
and history.replaceState
to automatically call the edgee.page
method, ensuring page views are tracked during SPA navigations.
using npm:
npm install nextjs-edgee
using yarn:
yarn add nextjs-edgee
import using:
import NextEdgee from 'nextjs-edgee';
app/layout.js
for app
folder structureFor rendering add <NextEdgee />
to your return()
inside the <body></body>
of RootLayout()
:
import NextEdgee from 'nextjs-edgee';
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
<NextEdgee src={"https://yourdomain.com/_edgee/sdk.js"} />
{children}
</body>
</html>
);
}
pages/_app.js
for pages
folder structureFor rendering add <NextEdgee />
to your return()
in MyApp()
:
import NextEdgee from 'nextjs-edgee';
export default function MyApp({ Component, pageProps }) {
return (
<>
<NextEdgee src="https://yourdomain.com/_edgee/sdk.js" />
<Component {...pageProps} />;
</>
);
}
For rendering add <NextEdgee />
to your return()
inside the component in App()
in your App.js:
import NextEdgee from 'nextjsedgee';
const App = () => {
return (
<div>
<Router>
<NextEdgee src="https://yourdomain.com/_edgee/sdk.js" />
<Routes>
{/* Your Routes Here */}
</Routes>
</Router>
</div>
)
}
export default App;
FAQs
The Edgee SDK for React applications
The npm package nextjs-edgee receives a total of 0 weekly downloads. As such, nextjs-edgee popularity was classified as not popular.
We found that nextjs-edgee 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.