
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.
@hon2a/use-object-memo
Advanced tools
Memoizes object data, providing a reference that gets updated only when the data changes.
Memoizes object data, providing a reference that gets updated only when the data changes.
Memoize object data to use e.g. as dependencies in subsequent useEffect
calls.
This is useful e.g. in hooks that accept options as object.
import { useEffect } from 'react'
import { useObjectMemo } from '@hon2a/use-object-memo'
export function useThisCoolHook(options) {
const optionsMemo = useObjectMemo(options)
useEffect(() => {
// … perform some effect that should really only be performed when the options change
}, [optionsMemo])
}
Install dependencies using:
npm install
After you modify sources, run the following (or set up your IDE to do it for you):
npm run format
npm run lint
npm test
and fix the errors, if there are any.
Publishing is done in two steps:
npm version <patch|minor|major>
git push --follow-tags
npm publish --access public
FAQs
Memoizes object data, providing a reference that gets updated only when the data changes.
We found that @hon2a/use-object-memo 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.