{"name":"@agoric/make-hardener","version":"0.0.9","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":{"prepublish":"yarn clean && yarn build","clean":"rm -rf dist","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.9","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-50QDXpaKfR36g0YWlQ/UwmkcwzPk5+SNP+QIe6057Nhxnkk+aue8brU3GXqwuoCTIHPbqcty4FN3nZeOxr5fMA==","shasum":"6c352c80d0b23c0fbe072c2b4ab36b6e861e5cd7","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.0.9.tgz","fileCount":8,"unpackedSize":44600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeli/CCRA9TVsSAnZWagAAy3gP/3fAWQFG/GlByYXMR1z+\n7jA6ItFNl2AdSIsMjPkAEzeP1Awsl56f4K9l6SkNDR6x0aERGZx4mmT/Kpuo\nVrTInltzCKEQBP0qSncT3pXFejNQWkBzRBt/4wPzcQccwGCXjZJ/fyn+CvIB\nmjhDfzBIiaqj18BmEEqJ6ifmkQETdIOf9wUVr/lAxVz5F+xWdM9ruULrvdZz\ngp1bio/yj6ePnCS56Fvgv+9XlszlzLZFngI+vziKTlgVxMTeqdv8670PIBvI\n65l45HY2DWTktgCW8NW6jLREcdxpD7GVzsyystC9EBbJzmo3rziv6NRwnTv4\nGCHL8QfQgsmKAX9PfJOb4XF7tIMo5DoYwtGrkJti6ebVztllO0Nv1X7yiUc1\njkEfchU+txeC/+WcaFATyOvmZkxmRNx2bA0jiDOkWKMkW/4FJ5pKlmNPDPYz\n8Ol22tprKATvVw1t5+9AtQJP0b6EwhiYQs145rh5NO+fuF/XF03X5NW61aCe\nYh1u2G26nH1TJyfZFkmqTKpjmkMHng1mwy+Ei1R/fX8QkdIOPIdyk/QuTaXL\nF3c681E7Q+3ERSzjo7i4eZNNbISO0vDrYjE/DzYMw5rL9y9l1CgIJesMfWas\n3QHKPder74vEsTJpoeSamdoNWctiGttJQF0T1WJOCfec0DjF6Uv24NeTiTSM\np91a\r\n=W37M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQC3UNIoqqrQKKGjYGNvQ/0bAokM6ZmpUmqWSGLTVUFAIhAN6pWutmjG/a0TTjMuHUn9eeE1FcUln/R5xQ05lEY5zK"}],"size":9251,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.0.9.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.9_1586900929716_0.70694546115794"},"_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":1586900929907,"_cnpm_publish_time":1586900929907,"dist-tags":{"latest":"0.1.3"}}