
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).
@braid.org/diamond-types-node
Advanced tools
This is a javascript + WASM wrapper around diamond types.
Note the API is still in flux and will change.
This library is published as two separate modules: diamond-types-web
and diamond-types-node
.
TODO: Fill me in!
Example usage:
// Nodejs version:
const {Doc, Branch, OpLog} = require('diamond-types-node')
// console.log(new Doc().getRemoteVersion())
let oplog = new OpLog("seph")
oplog.ins(0, "hi there")
let oplog2 = oplog.clone()
let v = oplog.getLocalVersion()
console.log('v', v, oplog.localToRemoteVersion(v))
oplog.del(1, 2)
let patch = oplog.getPatchSince(v)
console.log('patch', patch)
let result_v = oplog2.addFromBytes(patch)
console.log('mergebytes returned', result_v)
console.log(oplog.getOps())
console.log(oplog2.getOps())
console.log(oplog2.localToRemoteVersion([2, 3]))
$ wasm-pack build --target nodejs
See example.js for a simple usage example. Note the API is in flux and will change.
ISC
FAQs
Javascript wrapper for diamond-types
The npm package @braid.org/diamond-types-node receives a total of 11 weekly downloads. As such, @braid.org/diamond-types-node popularity was classified as not popular.
We found that @braid.org/diamond-types-node 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
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.