Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@biscuit-auth/biscuit-wasm
Advanced tools
This library wraps the Rust implementation of Biscuit tokens in WebAssembly, for usage in NodeJS and browsers.
It provides both EcmaScript and CommonJS modules, along with TypeScript type definitions.
Add this dependency to your package.json
:
{
"dependencies": {
"@biscuit-auth/biscuit-wasm": "0.4.0-beta1"
}
}
see the example code in examples/node
The node
executable must be started with the --experimental-wasm-modules
flag.
Due to some wasm-side dependencies, to work in Node, biscuit-wasm requires that this be added to the application:
import { webcrypto } from 'node:crypto'
globalThis.crypto = webcrypto
This is no longer necessary starting with node 19.
see the example code in examples/frontend
Importing a WebAssembly library with a bundler can take a bit of configuration. We have a working example with Webpack, and would welcome example configuration for other bundlers:
const path = require('path');
module.exports = {
entry: './index.js',
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist'),
},
experiments: {
asyncWebAssembly: true
}
};
Licensed under the Apache 2.0 License.
Copyright 2021 Geoffroy Couprie
0.4.0
3.1.0
(#36) (Clément Delafargue)FAQs
WebAssembly wrapper for Biscuit authorization tokens
The npm package @biscuit-auth/biscuit-wasm receives a total of 113 weekly downloads. As such, @biscuit-auth/biscuit-wasm popularity was classified as not popular.
We found that @biscuit-auth/biscuit-wasm 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.