$ npm install @socketregistry/object.hasownA tested zero dependency drop-in replacement of
object.hasowncomplete with TypeScript types.
socket CLI will automagically ✨
populate
overrides
and resolutions of
your package.json.
npx socket optimize
Prefer to do it yourself? Add @socketregistry/object.hasown to your
package.json.
{
"overrides": {
"object.hasown": "npm:@socketregistry/object.hasown@^1"
},
"resolutions": {
"object.hasown": "npm:@socketregistry/object.hasown@^1"
}
}
Install with your favorite package manager.
npm install @socketregistry/object.hasown
Node >= 18.20.4