
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
The closest you can get to DEstructuring assignmeNT with good old ES5's objects and functions

The closest you can get to DEstructuring assignmeNT with good old ES5's objects and functions.
dent for arrays:
> var tuple = ['first', 'second', 'third']
> dent(tuple)
> var a = dent() // Or in a single statement: dent(tuple)()
> var b = dent()
> var c = dent()
> dent.idx
3 // Next element's index.
> [a, b, c]
[ 'first', 'second', 'third' ]
dent for objects:
> var pair = { first: 'foo', second: 'bar' }
> dent(pair)
> var a = dent.o.first // Or in a single statement: dent(pair).o.first
> var b = dent.o.second
> [a, b]
[ 'foo', 'bar' ]
Save reference to obj in dent.o. Return the dent itself.
Object passed to dent the last time.
Return the next element (with index dent.idx) and increment dent.idx by 1.
Next element's index (as would be accessed by dent()).
dent storage is temporary. Drop your object in, take it apart, but don't assume that it will sit in dent.o or dent.idx will be the same next time you check.
npm install dent
MIT
FAQs
The closest you can get to DEstructuring assignmeNT with good old ES5's objects and functions
We found that dent 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.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.