
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
A JS utility library in FP style
npm install cali
the library can be imported by AMD, CommonJS or ES6 loaders, or as the global variable 'cali'
// ES6
import * as cali from 'cali';
// CommonJS
var cali = require('cali');
takes a function and returns a function that's automatically curried
let curriedSum = curry((a,b,c) => a + b + c);
curriedSum(1)(2)(3) === 6; // true
takes a value and returns it
let obj = {};
identity(obj) === obj; // true
composes functions, executes each sequentially starting from the right most function
compose(a => a * 2, a => a + 1)(5) === 12
maps over a collection, automatically curried
map(a => a * 2)([1,2,3]) // [2,4,6]
general functor
let functor = new Functor(1);
functor.fmap(a => a * 2) // Functor(2)
function functor
let functor = new Functor(a => a + 1);
let f = functor.fmap(a => a * 2) // f is equivalent to 'compose(a => a + 1, a => a * 2)'
f(2) === (2 + 1) * 2
applicative functor
let applicative = new Applicative(a => a + 1);
applicative.ap(new Applicative(2)) // Applicative(3)
a container may have a value or nothing
Just(2).bind(x => Just(2 * x)) // Just(4)
Just(2).bind(x => Nothing).bind(x => Just(x)) // Nothing
FAQs
Cali is an AI agent that helps you build React Native apps. It takes all the utilities and functions of a React Native CLI and exposes them as tools to an LLM.
The npm package cali receives a total of 8 weekly downloads. As such, cali popularity was classified as not popular.
We found that cali 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.