{"name":"@agoric/make-hardener","version":"0.0.4","description":"Create a 'hardener' which freezes the API surface of a set of objects","main":"index-commonjs.js","module":"index.js","scripts":{"test":"rollup index.js --file index-commonjs.js --format cjs && 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}'","create-cjs":"rollup index.js --file index-commonjs.js --format cjs"},"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","rollup":"^1.2.2","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":"abd04ccf5fc4d05de231539207f8045c4dcfcf7c","_id":"@agoric/make-hardener@0.0.4","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"warner","email":"warner-npm@lothar.com"},"dist":{"integrity":"sha512-0k/wGkIVQO3IY7p/H/5OS3BIXsRK9Qb7nHnqyvj6hzvSyumwgPp8e4rz5QaVWSen43TGJl+zQn4mW9ZZShT1aw==","shasum":"9b5d6692bc2fbbac2fff0a6682959ac5e69c582d","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.4.tgz","fileCount":10,"unpackedSize":28820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbZq6CRA9TVsSAnZWagAAYusP/0v0hSw/sFf9xzh523oD\nBKRiqbKxO4Yowmvky2ygMnFypfmrUcyhpwGkxdF2rixEsyuSizWcLX1lO46b\nU5FdI/kaucK103L+FngFFtpUXrkOa43r30BorlUa290AQvZzY315TKzegdiB\na/uMQyt2Yyt72dUsHjOHnyl4koeDCJCGbLUoQ2MXjf1p1XubfQmS/g4G+r70\nzfg5KrB+14H3SB9yX6YxDFYz2Biqhrl2gljxcI0VVQhGWPt5S414H+R6/Zp9\no28yz5WIyT3nNSyQ0xYhiyaf/p20CMqW7f68qs/0uX104PSS8RypT6jlKadb\nvF/7SPsAYGHwyjBs9x+bd3uwLFW/VWmEp8kj2WCU0yUeWrySe8TVUh+uD1j4\nlcl0LpgKrr3vSBxE3wBVAVc279MjmLkyowvVZX6yE+OU9WQQXTP/I3lI97oT\npNPtj+onS0Em05KCLZ54nn/a+ob/m0U6Np4yH0rxc0S7GtkwxYwEB30mwjrz\nEha7iva8lE7KrH/nOQnGKJFasyPt3GgpTSnOgtGpdndLctcE6JGiH0CSC3uv\n3yywJsmAxPKYhiMTm/Y08Z/0y8+nBGjAB3biGPbqZa9hmhEL5AeJjki0sp/X\nd+ghi6WgHohhqU8twzNvwNngYa8XlPp8A4uhmR+ev+dwYTLpRIaNz1cKx54O\nbur2\r\n=x/yU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG9g3FD3X1km8C/qt8QJQtdoNdRo8dqnpQLUdpXC8cYBAiAZJTPBv2QCCPoN1aQ/GCFn3+HWZwZBE89IGh34MRNY9w=="}],"size":8419,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.4.tgz"},"maintainers":[{"name":"erights","email":"erights@gmail.com"},{"name":"katesills","email":"kate@agoric.com"},{"name":"warner","email":"warner-npm@lothar.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-hardener_0.0.4_1550686905782_0.9873376460841632"},"_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":1550686905948,"_cnpm_publish_time":1550686905948,"dist-tags":{"latest":"0.1.3"}}