{"name":"internal-slot","version":"1.1.0","description":"ES spec-like internal slots","main":"index.js","scripts":{"prepack":"npmignore --auto --commentLines=autogenerated","prepublishOnly":"safe-publish-latest","prepublish":"not-in-publish || npm run prepublishOnly","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"","pretest":"npm run lint","lint":"eslint --ext=js,mjs .","postlint":"tsc && attw -P","tests-only":"nyc tape 'test/**/*.js'","test":"npm run tests-only","posttest":"npx npm@'>= 10.2' audit --production"},"repository":{"type":"git","url":"git+https://github.com/ljharb/internal-slot.git"},"keywords":["internal","slot","internal slot","ecmascript","es","spec","private","data","private data","weakmap"],"author":{"name":"Jordan Harband","email":"ljharb@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ljharb/internal-slot/issues"},"homepage":"https://github.com/ljharb/internal-slot#readme","engines":{"node":">= 0.4"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@ljharb/eslint-config":"^21.1.1","@ljharb/tsconfig":"^0.2.2","@types/for-each":"^0.3.3","@types/object-inspect":"^1.13.0","@types/tape":"^5.6.5","auto-changelog":"^2.5.0","encoding":"^0.1.13","eslint":"=8.8.0","for-each":"^0.3.3","in-publish":"^2.0.1","npmignore":"^0.3.1","nyc":"^10.3.2","object-inspect":"^1.13.3","safe-publish-latest":"^2.0.0","tape":"^5.9.0","typescript":"next"},"dependencies":{"es-errors":"^1.3.0","hasown":"^2.0.2","side-channel":"^1.1.0"},"auto-changelog":{"output":"CHANGELOG.md","unreleased":false,"commitLimit":false,"backfillLimit":false},"publishConfig":{"ignore":[".github/workflows"]},"_id":"internal-slot@1.1.0","gitHead":"7e8e584fb6b3389ff6305fcbbb213622d75cf0d9","types":"./index.d.ts","_nodeVersion":"23.4.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==","shasum":"1eac91762947d2f7056bc838d93e13b2e9604961","tarball":"http://registry-npm.ywwl.com/internal-slot/download/internal-slot-1.1.0.tgz","fileCount":13,"unpackedSize":23009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7LudoLEihjXPcPbXbEmECgaq3MoZr11MuwboIDrjneQIgBxASCWwFPsDPKLGio2GMSub/WC9J7PxBISTXvUilFcI="}],"size":7836,"noattachment":false,"key":"/internal-slot/-/internal-slot-1.1.0.tgz"},"_npmUser":{"name":"ljharb","email":"ljharb@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/internal-slot_1.1.0_1734105749396_0.3045510233914843"},"_hasShrinkwrap":false,"readme":"# internal-slot <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![github actions][actions-image]][actions-url]\n[![coverage][codecov-image]][codecov-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nTruly private storage, akin to the JS spec’s concept of internal slots.\n\nUses a WeakMap when available; a Map when not; and a regular object in even older engines. Performance and garbage collection behavior will reflect the environment’s capabilities accordingly.\n\n## Example\n\n```js\nvar SLOT = require('internal-slot');\nvar assert = require('assert');\n\nvar o = {};\n\nassert.throws(function () { SLOT.assert(o, 'foo'); });\n\nassert.equal(SLOT.has(o, 'foo'), false);\nassert.equal(SLOT.get(o, 'foo'), undefined);\n\nSLOT.set(o, 'foo', 42);\n\nassert.equal(SLOT.has(o, 'foo'), true);\nassert.equal(SLOT.get(o, 'foo'), 42);\n\nassert.doesNotThrow(function () { SLOT.assert(o, 'foo'); });\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n## Security\n\nPlease email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.\n\n[package-url]: https://npmjs.org/package/internal-slot\n[npm-version-svg]: https://versionbadg.es/ljharb/internal-slot.svg\n[deps-svg]: https://david-dm.org/ljharb/internal-slot.svg\n[deps-url]: https://david-dm.org/ljharb/internal-slot\n[dev-deps-svg]: https://david-dm.org/ljharb/internal-slot/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/internal-slot#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/internal-slot.png?downloads=true&stars=true\n[license-image]: https://img.shields.io/npm/l/internal-slot.svg\n[license-url]: LICENSE\n[downloads-image]: https://img.shields.io/npm/dm/internal-slot.svg\n[downloads-url]: https://npm-stat.com/charts.html?package=internal-slot\n[codecov-image]: https://codecov.io/gh/ljharb/internal-slot/branch/main/graphs/badge.svg\n[codecov-url]: https://app.codecov.io/gh/ljharb/internal-slot/\n[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/internal-slot\n[actions-url]: https://github.com/ljharb/internal-slot/actions\n","publish_time":1734105749590,"maintainers":[{"name":"ljharb","email":"ljharb@gmail.com"}],"_cnpm_publish_time":1734105749590,"dist-tags":{"latest":"1.1.0"}}