Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@notabene/nodejs
Advanced tools
A JavaScript library for the Notabene API. It helps you to easily manage transactions managed through the Notabene platform.
npm install @notabene/nodejs
const Notabene = require("@notabene/nodejs");
const client = new Notabene({
baseURL: "https://api-demo.notabene.id",
auth0_audience: "https://api-demo.notabene.id",
auth0_url: "https://notabene-eu.eu.auth0.com/oauth/token",
clientId: "{CLIENT_ID}", // Add your own client ID
clientSecret: "{CLIENT_SECRET}", // Add your own client secret
});
You can use the SDK against any environment (production, demo, localhost) by setting the baseURL
. The auth0_audience
variable will depend on the Auth0 Application configuration.
const Notabene = require("@notabene/nodejs");
const client = new Notabene({
baseURL: "http://localhost:3000",
auth0_audience: "http://localhost:3000",
auth0_url: "https://notabene-eu.eu.auth0.com/oauth/token",
clientId: "{CLIENT_ID}", // Add your own client ID
clientSecret: "{CLIENT_SECRET}", // Add your own client secret
});
await client.transaction.create({
assset: "ETH",
amount: 1.2,
originatorVASPdid: "did:ethr:0x6e80b82341bdf19ee43fd2fe21aca662b127e64a",
});
await client.transaction.approve("088adcf5-0693-48bf-9de4-5279ed61e0a0");
await client.transaction.cancel("088adcf5-0693-48bf-9de4-5279ed61e0a0");
await client.transaction.confirm("088adcf5-0693-48bf-9de4-5279ed61e0a0");
await client.transaction.reject("088adcf5-0693-48bf-9de4-5279ed61e0a0");
await client.transaction.accept("088adcf5-0693-48bf-9de4-5279ed61e0a0");
await client.transaction.decline("088adcf5-0693-48bf-9de4-5279ed61e0a0");
await client.transaction.redirect(
"088adcf5-0693-48bf-9de4-5279ed61e0a0",
"did:ethr:0x842ed6cfea0dd3cb9ab707df2d86c229321b331"
);
FAQs
Client for Notabene's API
The npm package @notabene/nodejs receives a total of 0 weekly downloads. As such, @notabene/nodejs popularity was classified as not popular.
We found that @notabene/nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.