{"name":"@agoric/make-hardener","version":"0.1.0","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 --config 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.1.0","_nodeVersion":"13.12.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2nyT18UcAzwxw/C0Kf2fp5oI9BLf8YD9MmTvbHD0/FvjsK4FwnfGAk7P8f+eE9KgRoyfH8lqcnVO5ltwJrtmbw==","shasum":"59539b611228ad8e9652cf6cc80925fdcd97ee9a","tarball":"http://registry-npm.ywwl.com/@agoric/make-hardener/download/@agoric/make-hardener-0.1.0.tgz","fileCount":8,"unpackedSize":44630,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDOcPCRA9TVsSAnZWagAAEngP/iNACZqwLABxnkak0IPu\n1dxkq0NUKHkDduJI6ytqzFK9jcRLqzm9xCbAGzJ3LO7sbyC/7iHirtLypi0M\nNaZCaZA+cWjkyDHIfGMIPaiNdInULKwUnphGYDKy9P9bT7WdZoFnclwx8jTY\nRRrozA+IgXx/mdASWQziUp6gjycWnc+0jJkPmy10dUoSn7zq6to6rFphrskT\npqBjLSOWNg8xZNxKtsdF31VDdF/h0dm15TaGUR8nOblHM0GytYLIK/C6pNti\namOlcdTA8wsLIPfT+VWdnfaCkiDwtNXTuNd/PF3NnOMnMthEIs9eRHDSzCgY\nqF2eUnIKiYDG1jINjWVotlq7tQx1A/VbBy61V4/dn9P+afayxI2MTrvX18s/\nvrqgLrds8SJUlagyT8kGA7J7pNnWRDrjGjUU3oVlN991yLJtTlz9bMC0jfsT\nL4O+fpa/hwh6G4oEmqO98FfDW1w9QnTiGrRjEvgTOb0zJZR0Zl1mPlTtwNO1\nEYlETdZwZtvCmL1lA7bneyk8r2kiNwT7KDGaSM5Iso2Hob5d93Z+YmuU7mCP\nEabF+g5XA/IRG+dSEoJcY7ibqJkPuAGuHo5CEMZak2XNbUpVpN8qetrWNBgV\nCJgVn41hJ/wPvkiFNbhuHDt+9Rsp0rpRRqlmDsmjXeYjKQCg0qG0IuGqQm7M\nZcYX\r\n=GuNm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDJHHehTNQ0vcQq9+cJmkrilsWTYxUPxzq+hXz+Ao7yAIhAMmsPslSHvhnPoi8h/XkeFyj85w76bSBJrXJ5I62HIjd"}],"size":9264,"noattachment":false,"key":"/@agoric/make-hardener/-/@agoric/make-hardener-0.1.0.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.1.0_1594681103340_0.2994688206708829"},"_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":1594681103432,"_cnpm_publish_time":1594681103432,"dist-tags":{"latest":"0.1.3"}}