{"name":"@agoric/make-hardener","version":"0.0.8","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":"./dist/make-hardener.cjs","module":"./src/main.js","browser":"./dist/make-hardener.umd.js","unpkg":"./dist/make-hardener.umd.js","exports":{"import":"./src/main.js","require":"./dist/make-hardener.cjs","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":{"@rollup/plugin-node-resolve":"^6.1.0","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-terser":"^5.1.3","tap":"14.10.5"},"_id":"@agoric/make-hardener@0.0.8","_nodeVersion":"13.10.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-bd83IYEMQbzpprwyA10RjHIGWmWeUMdsd5EzaHwke+zLH0HyqP6UKxFLv5mqkmrMeQyOMhNgKN1hCagjRyjlxQ==","shasum":"7f9e9d6874600b2e1b0543ce9456fbf62463be2d","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.8.tgz","fileCount":8,"unpackedSize":44526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecXwECRA9TVsSAnZWagAA+NcP/2TeDb8MDfOGzZ2uL7zx\nzbmfA7zQelbvNrZafe+nPStghh8Yp4/0YMgw4VNhUAtgTh7W9Z/CHkLIMDPy\nzNu1xn0tKiQn+IrsqYpT6tx/wkzfwDZoPKxgACRt6kG7amC73F7ILJWVdBwm\nie7v7hK23zTmNgv1cP632wJhUidpqVEbrHVzh70GglD7lYwhQ72ktqIFkPMi\n9A6hGuiYo6lT/ookaVBm+E3NADUMvX33NhtgeuX4W55PaHlAAHHbmYZkIGwW\nW59Z7/EVBWnt6IRd1uwG6L+WNH5SkNmEwBogBZv045V2OtkTFQBwh0LEVG7m\n9kBXzgJdC9PdCQLQTryCAK5wuIoIPGT61HapCcZ4jXCztSXLxgGKolXwMTBI\nEYaCdF1eP6dIFnwGqeOms3cY6rkDHxi5OSrrSUHqpNt0HeFYtl+gXIEZFf3f\nkraL5Hq6ruBs5rp1PPd9wnwb1q3CuWXtnjKCNLI4jmW3WZDo7esEnzidprkh\nvCVaVZqI+8tCYoWtbFKIvgKRMxtcuw1IKi7+3J82BNsGklvHFh/TXPJ0kvqn\n8gT+MyMyv50SWntgC+aSx2ne3JWcPYZwgBuNYP1A+3DVJ/7QvamwyI7wY3ev\nyvmReX2yIaTK0er0Np1Kt2sKC4CSeFXgTxVX5nwjksOd3WDi5xg0mdUN93/d\nQ5Ek\r\n=KJ1Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFvfCSEx/MKg4f5sX6kfjKK5Yt+NE7STjjsSOyy3H3sgIgPLlkwgkqhlbRIBnPZr5TeikPONO4mFirD5XIwTG7LMU="}],"size":9216,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.8.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.8_1584495619469_0.31076124176581854"},"_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":1584495619675,"_cnpm_publish_time":1584495619675,"dist-tags":{"latest":"0.1.3"}}