Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
[![npm badge][11]][1]
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
var isWeakRef = require('is-weakref');
assert(!isWeakRef(function () {}));
assert(!isWeakRef(null));
assert(!isWeakRef(function* () { yield 42; return Infinity; });
assert(!isWeakRef(Symbol('foo')));
assert(!isWeakRef(1n));
assert(!isWeakRef(Object(1n)));
assert(!isWeakRef(new Set()));
assert(!isWeakRef(new WeakSet()));
assert(!isWeakRef(new Map()));
assert(!isWeakRef(new WeakMap()));
assert(isWeakRef(new WeakRef({})));
class MyWeakRef extends WeakRef {}
assert(isWeakRef(new MyWeakRef({})));
Simply clone the repo, npm install
, and run npm test
v1.1.0 - 2024-12-13
npmignore
to autogenerate an npmignore file 34494a3
78cb11d
f4ceaf5
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, object-inspect
, tape
24fccf5
b27c6e9
@ljharb/eslint-config
, auto-changelog
, npmignore
, object-inspect
, tape
30fe836
@ljharb/eslint-config
, aud
, object-inspect
, tape
0185ba7
call-bound
directly 641d87c
engines.node
8543506
aud
with npm audit
883c75c
call-bind
805de0e
call-bind
6a7ee43
object-inspect
d3d6a99
sideEffects
flag 2b13054
54cb0bc
FAQs
Is this value a JS WeakRef? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
The npm package is-weakref receives a total of 13,770,382 weekly downloads. As such, is-weakref popularity was classified as popular.
We found that is-weakref 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.