{"name":"@agoric/make-hardener","version":"0.0.3","description":"Create a 'hardener' which freezes the API surface of a set of objects","main":"index.js","scripts":{"test":"node test/test.js","pretty-fix":"prettier --write '**/*.{js,jsx}'","lint":"eslint '**/*.{js,jsx}'","pretty-check":"prettier --check '**/*.{js,jsx}'","lint-fix":"eslint --fix '**/*.{js,jsx}'","lint-check":"eslint '**/*.{js,jsx}'"},"repository":{"type":"git","url":"git+https://github.com/Agoric/MakeHardener.git"},"author":{"name":"Agoric"},"license":"Apache-2.0","bugs":{"url":"https://github.com/Agoric/MakeHardener/issues"},"homepage":"https://github.com/Agoric/MakeHardener#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","husky":"^1.3.1","lint-staged":"^8.1.3","prettier":"1.16.4","tape":"^4.9.2"},"lint-staged":{"*.js":["prettier --write","eslint","git add"],"*.md":["prettier --write","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"directories":{"test":"test"},"keywords":["integer","int","overflow"],"gitHead":"d7d0a897da9064e60a2bb4237ab821efbd26b326","_id":"@agoric/make-hardener@0.0.3","_nodeVersion":"11.9.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-lRdDB/1/YwZSuNLOh7XeFjjGfpDcWQ5Hv6bjUz9mGkT1UKxj8pwOF/n1h8cDspH2/DwuFhOj9shLHNhK6pBf3A==","shasum":"246db774b91d9b931fc715fd37e4aa18f14df173","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.3.tgz","fileCount":8,"unpackedSize":23061,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbGtcCRA9TVsSAnZWagAAkCcP/0ylwABVTpPbR2WHoSTh\nBVHH4oXqNvoPgndi9mSjkLMZRuS78M0C+QbynNKiEykb8fHURQoqxobcRel/\nafnHjPsnHFJNGILjQEtiOZxj1yKDxOfrtkgL+NbDcIu+2BWk8d6QJQckPkmX\noJRmGpjUeXS6l+9dqikt+k5S/85q7R2HErDWl4MNfpJdnqDwMqUYvYv3En+7\n/1RJPbJZWghG6BwRxJby0Favbh8QYHx23Z0A3wsHvNCAHtR+KJxC3kdISBqU\nOHOf3FDbPAf6N4ZscsAgZl2UsrQuLiaYAyn99Rsn6GQmhWLkdQq4MpGJlg3c\nQ9TWH1BNFB8w69r5Q2ygBaB64a/FpNepjaxxKXr8EwTu8p356+bd2KzPKTzD\nZk9GedwqMwKE5H25LUGNHH0lDRhqVcC4+oPr0pGKyOT/MfrG25wREzGFLj1h\nFnXmuYyb2ynmOisIf7lAEuMiPn0PNrnMbi85VNbub0khc2brAGzzBo/eckXE\nrnRoOkoYYwmjvqqYjWXZtX54orkAuVZJmAIASCf/KOiUAVN+/80+MA50SxVR\nTK+dahye08fCXqCKvc2euPqZok/9pyBgR8XIQ9iFP5cpkK6Z7q+t0MLHkZbA\n6KNUycUmZETb6W1QExvF7Jz6BnUmnI377cpgU3awNX3iR5wBqn5qBpGz3eq9\nkbsH\r\n=YUOD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyk/uCcwRGWGk1HDZ9mpDv87KaTIaqMpi/U1tx3RMXkAIhALDuj3kv1EvjU/+aYXUhr0p+27CXh+A4bhaMH30dGgI9"}],"size":8088,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.3.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.3_1550609243241_0.8767424931518173"},"_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":1550609243392,"_cnpm_publish_time":1550609243392,"dist-tags":{"latest":"0.1.3"}}