{"name":"@agoric/make-hardener","version":"0.0.1","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":"2d84f56d7db3e3f1492cc891cee1e772f57d62d2","_id":"@agoric/make-hardener@0.0.1","_nodeVersion":"11.9.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-bQPSLHBM5Wx57bpiXmoV7NJe+lBv95Z0zTeOdoEJyv1JakKqBD0I4ByM2eK9oJkEU3TGIxoi/eaQG1I9tq/YzQ==","shasum":"6d42564e17a8087f9d2a1273192d398becfb1de0","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.1.tgz","fileCount":8,"unpackedSize":25846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcZe1SCRA9TVsSAnZWagAAkPAP/0eIOsZQ/1G3nqDsaU3/\nRMCoHQqcHwCJ171SxUXOgHrJZNbKPTbY7nFaj0jcScfZVHogUFrQ/Yx9MFWz\n5geXOEP15lQbzGWTlxdAuy4zYodtiAChuiSe8RKN8mFKkCVVN1ODFLOz5BaQ\nNic+RnecI8umuYG2zmAEy0yPDdSTzAkL3hOAZ4P5bea8NBvYoyioJSjF5Q9k\npZYUi4gRqxvYMfxEDI4NnjPlRgxnYAjIXFkmAm8yBHFIAByitCOq6nhEwM9/\n5gUp8wYT2SBToGy7PtQUlO25d0lSy+VoX8dwBP/1sRrWckPH5ZR6Op+xEZ2t\nrv0e3Iwq+p8KClizTIF2RWt5vAUGaSUwU1cetgW0KjBDA+HzTPPOvJ0c1pV6\n/PxxzW49qiTU/Vhuq15j4Ggv9I6Y0RJ/hPlrZl2I1Gez02zWSlpxfU/IZ4XL\nMG8eq97a/slWVIQOG14TxQHDdw1whhH7GW9SiJFMPTTlwsz8kV+3agMr4OkQ\nFmfpyC9PFbM/7/nt/5GzIbSwoBCCQhVViQaL9853NSPiZ/pSGZDySN0ROZfP\nlcLLf9ilt6KDAXJ2ouMxWf8jJpxjhQFGef+4vcjutjG0t4F6C9uVlkckTo5L\nENODJlU2ugc9Vd++Y56pLMlZOYLoj0+z6SLgEPGqPk8fq0LjIJ/PIHGjD7+W\nyvNz\r\n=cmic\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4vqLxkRWFupgdB9XUVwV0qSGAfu0650cAR9XrGwsTDAiEAkw+bto/YtZx+y6JcAbm9Q6PrPCytuPIDG/ltfCEFuOY="}],"size":9189,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.1.tgz"},"maintainers":[{"name":"katesills","email":"kate@agoric.com"},{"name":"warner","email":"warner-npm@lothar.com"},{"name":"erights","email":"erights@gmail.com"}],"_npmUser":{"name":"katesills","email":"kate@agoric.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-hardener_0.0.1_1550183761928_0.4463179693198853"},"_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":1550183762121,"_cnpm_publish_time":1550183762121,"dist-tags":{"latest":"0.1.3"}}