{"name":"@agoric/make-hardener","version":"0.0.2","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":"30c83e6b3a54162b6e8e4ba943dce2c256923542","_id":"@agoric/make-hardener@0.0.2","_nodeVersion":"11.9.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-q5fMC9l96RUC8qZrYxMz8qV6t7Z293eJ3W0O8AO74n8V2PgOT80N6MRU5McbZyM05dknAEomGaSVGsV7PV/YgQ==","shasum":"4015a7369d2219a4b8d3699753d85119898106a4","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.2.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\nwsFcBAEBCAAQBQJcZfCFCRA9TVsSAnZWagAAj2AP/j8+boXWzVzWAjHO/pqo\nCHlUWWaqPygIigdabsgCFf4uu+qyi8t2lwYObPY9IHKEggQBZ4FtFrXsYU2o\nMwEAGeMGZhyBACmTvJlqAVn3u3jHhI3kZIlKz/LcObBp/Kd+iYeZ1nNNIdt0\nEJSWElyYGDltIMepHQjbuOFbiLAruN2a7KZw0mdahGkLVY6x3wO7F+ZjO8/w\nDnY7xrrH6ATT/NwEg5leVFBFVR/i9U2/Vv55og7WNnRXnLSBEwhzQQFBl/Xq\ng1xibSHIVWJj85KfYi4ZBySsVYOWY9TyKUmr7bijzuRzXsS+JJ1wZ+9X7m0g\ncMdFSeFusqjlIWZybVSm4j5/FUPwHhNTMCMNxhJfrdCi1tW1gH8DwU3rm0rG\nhjvfYiqg9uUkY//VgcHn6VMvbuLD7U0zCRx06e3dA/Q4UD3dv7W4Oeh0m3PO\niXleRieMmDqELbEufr8N3sCyjkvoTqxKr2tR5PGpn4BK/d5Khv7llyP5jZZ2\nR+UgBTLn9HOtgK2pQp/k8synYCADMLYeGA+TyYRtFXyjnoe6IaWW4QYcYsM/\nGfNr6Hj1XWWxX0P/ArqUXhej0JPNM9PO9v7sWT1Ec37fNMmnxHhl2lYi3J3O\nt9veqquer219KcMPRN856wwRuImgN4B3BHy3bb96kB0fol5KSNXO+MHuKL9X\nm4Tr\r\n=jwWd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnJUO5PNY+sMddXoX1XSby+6RSDG9PwOwARbcWWquGoAiEAxdvk8mA7NAjmdI0pe4AMzbhvgAkydLk93skgnqKSDYg="}],"size":9187,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.2.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.2_1550184581039_0.5317854308821692"},"_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":1550184581253,"_cnpm_publish_time":1550184581253,"dist-tags":{"latest":"0.1.3"}}