{"name":"@agoric/make-hardener","version":"0.0.7","description":"Create a 'hardener' which freezes the API surface of a set of objects","author":{"name":"Agoric"},"license":"Apache-2.0","keywords":["deepFreeze","harden","Object.freeze","freeze"],"homepage":"https://github.com/Agoric/packages/make-hardener#readme","bugs":{"url":"https://github.com/Agoric/make-hardener/issues"},"repository":{"type":"git","url":"git+https://github.com/Agoric/ses-shim.git"},"directories":{"test":"test"},"type":"module","main":"./src/main.js","browser":"dist/make-hardener.umd.js","scripts":{"depcheck":"depcheck","lint":"eslint '**/*.js'","lint-fix":"eslint --fix '**/*.js'","test":"tap --no-esm --no-coverage --reporter spec 'test/**/*.test.js'","build":"rollup -c rollup.config.js"},"devDependencies":{"babel-eslint":"^10.0.3","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.0.0","eslint-config-prettier":"^6.9.0","eslint-plugin-eslint-comments":"^3.1.2","eslint-plugin-import":"^2.19.1","eslint-plugin-prettier":"^3.1.2","prettier":"^1.19.1","rollup":"1.31.0","rollup-plugin-node-resolve":"5.2.0","tap":"14.10.5"},"_id":"@agoric/make-hardener@0.0.7","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-u7hU8TFuImLtPXIjBDCQRkgnE+pmTYoARpQ7O/lI/ckdZv70WfoWD6TvygE5zzQ9xfyOQmwOnE26x3rzGH7nqg==","shasum":"43f288080aa1798ab3b75e3779cac10803d83b4d","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.7.tgz","fileCount":5,"unpackedSize":29060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJebHr3CRA9TVsSAnZWagAAPygP/2ze8TNdmRAjsUogw/rR\nDPCzmL7OQBEx7k9y5HH2fUZ7+qklQdTyf2W1jxgUynaYdaTx9B0kNjWMgXM1\nR6UMl7ErLwiTPAxbUoLTUIXofYQEGR9Rz5gFYwI3Ws4o/t6SGuheb7JkU2gU\nBg7WD15mTZko7cf//Q00Zqz8phNjNYZFN4D8Cwj1JQW3fdKYCZpYLzVIcwUU\nGG0HFfuZW7zuDnascEqeWRYF3dKr9s726OGahOaPF+vmo7ieEIw67Vz2B9JZ\nCCwRB62BwE1c99We4H5z4GFd/UPAtvkPuZaKuiHp2h8UlxxvSXd2r9a9yAsL\n9+RYMua6FiLDx4xoILiZoZe9o2jI1l6uhL/aV5PSinWmojdJ0+9aeV4xBD5W\nKWBY/qjasqbk4S1KK1qcpvPbQtwEwp6n48i/T8iAhCSEotScRiLYEoS9RbT2\nYIxcXObhntKPML0BOejdNullvMj6SrNyY8FIwuugakfGqNeXUBIxqlSnK39n\nNxHPIJVoqzYgIC8mnBXZI9xIYsXfGbxnV4w81iryMobnhWxlxmI6Wzk+HsFW\nLZKJi7w/54vUkl9PriUH4SlF02EL8n5fNotfLhxFsBaxR2LQ2ZRd9FGMN5SD\n9rwcEJXcLIPVHPrcLtSeaUQpUmjYreLc1Jpqqtwwq6MYnlRZKfhoHw/507/l\ncelW\r\n=K9bN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkbcbdPEBqX192/sctsLFmiQZsCyEqjus2xHEVKqe3qgIgQnLCn0G9OnELki71I825ME3pZH7zHzD6cg9n2jSuMx8="}],"size":8343,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.7.tgz"},"maintainers":[{"email":"erights@gmail.com","name":"erights"},{"email":"kate@agoric.com","name":"katesills"},{"email":"kris.kowal@cixar.com","name":"kriskowal"},{"email":"michael@fig.org","name":"michaelfig"},{"email":"warner-npm@lothar.com","name":"warner"}],"_npmUser":{"name":"kriskowal","email":"kris.kowal@cixar.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/make-hardener_0.0.7_1584167670669_0.24767398336794977"},"_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":1584167670849,"_cnpm_publish_time":1584167670849,"dist-tags":{"latest":"0.1.3"}}