
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.
Utility functions
The source code is the documentation.
import {
createDebounced,
createThrottled,
throttledWithLast,
chainPromises,
somePromisesParallel,
chainRequestAnimationFrame,
doNTimes,
chainPromiseNTimes,
timeFunction,
timePromise,
memoizeAsStrings,
createTemplateTag,
bytesLengthFromString,
} from "utilsac";
// deno
import {
createDebounced,
createThrottled,
throttledWithLast,
chainPromises,
somePromisesParallel,
chainRequestAnimationFrame,
doNTimes,
chainPromiseNTimes,
timeFunction,
timePromise,
memoizeAsStrings,
createTemplateTag,
bytesLengthFromString,
} from "https://unpkg.com/utilsac/utility.js";
import {
deepCopy,
deepCopyAdded,
deepAssign,
deepAssignAdded,
deepEqual,
deepEqualAdded,
deepDifference,
} from "utilsac/deep.js";
// deno
import {
deepCopy,
deepCopyAdded,
deepAssign,
deepAssignAdded,
deepEqual,
deepEqualAdded,
deepDifference,
} from "https://unpkg.com/utilsac/deep.js";
const personA = { email: 'example@email.com', name: { firstname: 'James', lastname: 'William' }};
const personB = { email: 'example@email.com', name: { firstname: 'James', lastname: 'William' }};
deepEqual(personA, personB); // true
import {
stringFromArrayBuffer,
arrayBufferFromBlob,
stringFromBlob,
stringFromArray,
setFromArray,
mapFromObject,
} from "utilsac/typeCast.js";
// deno
import {
deepCopy,
deepCopyAdded,
deepAssign,
deepAssignAdded,
deepEqual,
deepEqualAdded,
deepDifference,
} from "https://unpkg.com/utilsac/typeCast.js";
import {
evalGlobal,
downloadBlob,
} from "utilsac/browserUtility.js";
evalGlobal(`window.x = 2 ** 10`);
After the Promise is resolved the code has executed in global scope.
evalGlobal(`
import sin form "./x.js";
window.x = sin(Math.PI)
`, `module`);
Use optional second argument with module
to be able to use static imports
14.2.0
add somePromisesParallel, similar to chainPromises but will run up to x promises at the same time
FAQs
Utility functions
The npm package utilsac receives a total of 4 weekly downloads. As such, utilsac popularity was classified as not popular.
We found that utilsac 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.