
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@localized/core
Advanced tools
This package is not intended for usage, instead it exposes functions common to all @localized
packages.
Open the necessary file and just add your function! (TypeScript)
Example:
// array.ts
export function tail() {
return function<A>(array: A[]) {
return array.slice(1);
}
}
As you can see, the function should take no arguments and return another function doing the necessary operations.
Create the new file, add all the functions you need then go in main.ts
, import it (naming it fileName
or concurrentFileName
or sequentialFileName
based on type) and export it:
// foo.ts
export function lots() {
return function (...f: (...args: any[]) => any) {
for (let funct of f) {
console.log(funct());
}
}
}
// sequential/foo.ts
export function lots() {
return async function (...f: (...args: any[]) => Promise<any>) {
for (let funct of f) {
console.log(await funct());
}
}
}
// main.ts
import * as foo from './foo';
import * as sequentialFoo from './sequential/foo';
export = {
// ...
foo
// ...
sequential: {
// ...
foo: sequentialFoo
// ...
}
}
Run npm test
and push.
MIT
FAQs
Core for @localized pacakges
We found that @localized/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.