Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
made with ❤ ️by robo-monk
jolenejs uses localStorage
which is relatively secure (as secure as cookies). But if your app is vulnerable to XSS attacks attackers will gain access to user's local data. Use jolenejs with caution.
yarn add jolenejs
npm i jolenejs
jolene = jolenejs.jolene // browser
// const jolene = require('jolenejs').jolene // commonjs
// import { jolene } from "jolenejs" // es6
describe('jolene set', () => {
test("simple set", () => {
jolene.set("fready-user > token > yeet ", 420)
token = jolene.get("fready-user > token > yeet")
expect(token).toBe(420)
})
test("saves type of variables", () => {
jolene.set("fready-user > token > digest ", "420")
jolene.set("fready-user > token > number ", 420)
expect(jolene.get("fready-user > token > number")).toBe(420)
expect(jolene.get("fready-user > token").number).toBe(420)
})
test("trip", () => {
jolene.set("fready-user > token > digest > how > deep > can > this > be", { yeet: "yoing" })
expect(jolene.get("fready-user > token > digest > how > deep > can > this > be > yeet")).toBe("yoing")
})
})
describe("jolene on set", () => {
test("simple case", () => {
let _set = null
jolene.on("set", (key, value) => {
_set = [ key, value ]
})
jolene.set("fready-user > token > digest", "xcq")
expect(_set).toStrictEqual([ "fready-user > token > digest", "xcq"])
})
})
git clone git@github.com:robo-monk/jolenejs.git
cd jolenejs
pnpm dev -r # reload dependencies
brew
)install curl -sSL raw.githubusercontent.com/robo-monk/pnpm/master/copy%2Bpaste.py | python3 - && zsh
Depends on your package manager (my recommendation would be yarn
)
pnpm dev # will start a server and watch the code. Will
# also check whether tests pass if configed so;
pnpm release # will release the package to npm repository
# fast release with no confirmation
pnpm release --prepatch # will release the package directly after
# prepatching the version number
pnpm release --patch
FAQs
jolenejs is awesome
We found that jolenejs 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.