
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).
The little algebra of callbacks.
This package exports functions for composing callbacks. You can read about the idea in my Medium post about composable callbacks.
$ npm install --save callgebra
On Node 12 and up, this module can be loaded directly with import
or
require
. On Node versions below 12, require
or the esm-loader can
be used.
import {of, callback} from 'callgebra';
callback (console.log) (of (42));
You can load the EcmaScript module from various content delivery networks:
There's a UMD file included in the NPM package, also available via jsDelivr: https://cdn.jsdelivr.net/npm/callgebra@2.1.0/dist/umd.js
This file adds flutureProject
to the global scope, or use CommonJS/AMD
when available.
const {of, callback} = require ('callgebra');
callback (console.log) (of (42));
type Callback a b = (b -> a) -> a
of :: a -> Callback b a
Creates a callback for a given return value.
chain :: (a -> Callback c b) -> Callback c a -> Callback c b
Sequence two callback-accepting functions.
map :: (a -> b) -> Callback c a -> Callback c b
Modify the return value of a callback.
ap :: Callback c (a -> b) -> Callback c a -> Callback c b
Apply the function returned by one callback to the value returned by another.
callback :: (a -> b) -> Callback b a -> b
Given a function and a Callback, runs the Callback using the function.
FAQs
The little algebra of callbacks
The npm package callgebra receives a total of 32 weekly downloads. As such, callgebra popularity was classified as not popular.
We found that callgebra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.