{"name":"@agoric/make-hardener","version":"0.0.5","description":"Create a 'hardener' which freezes the API surface of a set of objects","main":"dist/make-hardener.cjs.js","module":"dist/make-hardener.esm.js","browser":"dist/make-hardener.umd.js","scripts":{"test":"node -r esm test/test.js","build":"rollup -c","lint-fix":"eslint --fix '**/*.{js,jsx}'","lint-check":"eslint '**/*.{js,jsx}'"},"repository":{"type":"git","url":"git+https://github.com/Agoric/make-hardener.git"},"author":{"name":"Agoric"},"license":"Apache-2.0","bugs":{"url":"https://github.com/Agoric/make-hardener/issues"},"homepage":"https://github.com/Agoric/make-hardener#readme","dependencies":{},"devDependencies":{"eslint":"^5.3.0","eslint-config-airbnb":"^17.1.0","eslint-config-prettier":"^4.0.0","eslint-plugin-import":"^2.16.0","eslint-plugin-jsx-a11y":"^6.2.1","eslint-plugin-prettier":"^3.0.1","eslint-plugin-react":"^7.12.4","esm":"^3.2.7","prettier":"1.16.4","rollup":"^1.2.2","tape":"^4.9.2"},"directories":{"test":"test"},"keywords":["deepFreeze","harden","Object.freeze","freeze"],"gitHead":"03cda5987b4596984b5d143e643656910de7243d","_id":"@agoric/make-hardener@0.0.5","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-q7RxEfcDUyeUsYxjTfmSsbg4a7IJycjM2moTqYymI6qAxBZJoMwMD621SbOWHk9RboBVzXeUAT1XNIHyVRjvKw==","shasum":"7c59f74bf233c68708586d1729ece18fc0fa5f50","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.5.tgz","fileCount":6,"unpackedSize":30375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgWoLCRA9TVsSAnZWagAAMAMP/2/q4j+A5837q6VP4ZYs\noO4pjMR9sCP1jbv1slHXlv+cJsu1pIgKARt7Y3XraR4O2eu31dquaXCiazcG\nR6z8zCUraTu9nEY733RR3rWn+1nFrlpG5WB5i9qi0PsPo4oJZRo0vcUyk3/3\nehQsS3jndOq3MY3baayw3USmbYCjeEyJBJ0o8cVfjXU4KgPVFvXlBTtaqRfN\nWk+FaljVnk7421OxpOcxJe8wAEZ0GYZFGs0rd3PEpLTJWni8tMLsA+a9EbOa\nU9PRfr6CX7U7cgH2MZOAfFdcStKp6VcbYYy4Ea8YOFeIZwBjuZ3WP0jSTGQi\nJhDvyQLJfzP5hBJnF+F1nbjJrmaAeex4Rqa+NAM+FXiBwHCxvwhqgZ+9dXWF\nFXsrL+5HfdniTX9ttpf2RpGvREi5zU3s9lv0VhXxnbUq21Xg2/kpEY/ne2t6\n/yLFV+rOwLRwELmw9Lq1ucKsgaQLrNDRzk091Nsmzcd0DJZ1R+cFsCyzEm44\nclcXS7S7M0DzyAoc9EvQTVIVe5OCwfn5UjwmZ4WX5Rd8Qr/MDiAOlS4GsADB\ng3rrW51vSy0QZoRcrPfwQaHkLsuq6HqEWn8sDYtnPxcnlHJ7+MapksirX079\nVBB6F2lfbQhjkVD5cneTI2IMC9O0UyFVh7QlNwIS+aUjClKcGWpRANC1XB4B\n+FS5\r\n=1mtm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHe0INCRl1JfiJ9jiWR9hLpYH7onObe/wPpS9pi1GVwAIhAJPFJAE7Ojd/2aXaLBZraEyHHt/6rLxspakj8urq9kUX"}],"size":7691,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.5.tgz"},"maintainers":[{"name":"erights","email":"erights@gmail.com"},{"name":"katesills","email":"kate@agoric.com"},{"name":"warner","email":"warner-npm@lothar.com"}],"_npmUser":{"name":"katesills","email":"kate@agoric.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-hardener_0.0.5_1551985162717_0.9803070864075425"},"_hasShrinkwrap":false,"deprecated":"The `ses` package provides `harden` after `lockdown`. Do not use `@agoric/make-hardener` directly.","readme":"# MakeHardener\n\n[![Build Status][circleci-svg]][circleci-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\nBuild a defensible API surface around an object by freezing all reachable properties.\n\n## How to use\n\n> Note: If you're writing an application, you probably don't want to use this package directly. You'll want to use the `harden()` function provided in [SES](https://github.com/Agoric/SES) to perform an all-encompassing \"deep freeze\" on your objects. Alternatively, if you want to test your code before using it in SES, you can import the [@agoric/harden package](https://github.com/Agoric/Harden). Note that without SES, `harden()` is insecure, and should be used for testing purposes only.\n\n## Why do we need to \"harden\" objects?\n\nPlease see the [harden()](https://github.com/Agoric/Harden) package for more documentation.\n\n## Creating a custom harden() Function\n\nThis package (`@agoric/make-hardener`) provides a `makeHardener()` which can be used to build your own `harden()` function. When you call `makeHardener()`, you give it an iterable of stopping points (the \"fringe\"), and the recursive property walk will stop its search when it runs into the fringe. The resulting `harden()` will throw an exception if anything it freezes has a prototype that is not already in the fringe, or was frozen during the same call (and thus added to the fringe).\n\n[circleci-svg]: https://circleci.com/gh/Agoric/make-hardener.svg?style=svg\n[circleci-url]: https://circleci.com/gh/Agoric/make-hardener\n[deps-svg]: https://david-dm.org/Agoric/make-hardener.svg\n[deps-url]: https://david-dm.org/Agoric/make-hardener\n[dev-deps-svg]: https://david-dm.org/Agoric/make-hardener/dev-status.svg\n[dev-deps-url]: https://david-dm.org/Agoric/make-hardener?type=dev\n[license-image]: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n[license-url]: LICENSE\n","publish_time":1551985162830,"_cnpm_publish_time":1551985162830,"dist-tags":{"latest":"0.1.3"}}