
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@webkrafters/auto-immutable
Advanced tools
Auto Immutable JS is a self enforcing immutable class. Its internal data are private and readonly.
It provides Consumer instances through which it can be read and updated.
@webkrafters/auto-immutable
Alternate: auto-immutable.js
npm install --save @webkrafters/auto-immutable
Please see Full documentation before using. Recommended.
/* my-immutable.ts */
import AutoImmutable from '@webkrafters/auto-immutable';
const initValue = { a: { b: { c: 24 } } };
const aImmutable = new AutoImmutable( initValue );
export default aImmutable;
/* read-my-immutable.ts */
import myImmutable from './my-immutable';
const consumer = myImmutable.connect();
const objectPaths = [ 'a.b.c', 'a.b' ];
const data : AccessorResponse = consumer.get( ...objectPaths );
// => data = {
// 'a.b': { c: 24 },
// 'a.b.c': 24
// }
consumer.disconnect();
myImmutable.close();
MIT
FAQs
Auto Immutable - self enforcing immutable data structure
We found that @webkrafters/auto-immutable demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.