
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
bitnet-checkout-core
Advanced tools
Client library for interacting with the Bitnet Websocket Gateway
Bitnet Checkout Core is a client library for interacting with the Bitnet Websocket Gateway. This library enables you to create a fully customized checkout experience.
npm install bitnet-checkout-core --save
var BitnetCheckoutCore = require('bitnet-checkout-core');
// Pass in the environment, TEST or LIVE
var co = new BitnetCheckoutCore('TEST');
// Set the invoice ID, as retrieved from the *Bitnet RESTful API (see below for a link)
co.setInvoiceId('91c82239-1d93-4c29-8427-fe10a50e2907');
// See below for a full list of Lifecycle Hooks
co.onInvoiceFullyPaid(function(invoice) {
console.log(invoice);
});
// This will initiate the connection of the websocket
co.connect();
// ...
// This will disconnect the websocket
co.disconnect();
* You can find the Bitnet RESTful API here (referenced in the comment above).
You can hook into several points throughout the lifecycle of an invoices state. You've already seen one
in the 'usage' example above, onInvoiceFullyPaid
. Here is a full list of the available lifecycle hooks:
onInvoiceFullyPaid(callback)
onInvoiceOverpaid(callback)
onInvoiceUnderpaid(callback)
onInvoiceUnpaid(callback)
onInvoiceExpiredUnderpaid(callback)
onInvoiceExpiredUnpaid(callback)
onInvoiceError(callback)
$ npm i -g webpack
$ npm build
$ npm test
FAQs
Client library for interacting with the Bitnet Websocket Gateway
The npm package bitnet-checkout-core receives a total of 0 weekly downloads. As such, bitnet-checkout-core popularity was classified as not popular.
We found that bitnet-checkout-core demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.