{"name":"@libp2p/peer-map","version":"1.0.2","description":"Stores values against a peer id","license":"Apache-2.0 OR MIT","homepage":"https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-map#readme","repository":{"type":"git","url":"git+https://github.com/libp2p/js-libp2p-interfaces.git"},"bugs":{"url":"https://github.com/libp2p/js-libp2p-interfaces/issues"},"keywords":["IPFS"],"engines":{"node":">=16.0.0","npm":">=7.0.0"},"type":"module","types":"./dist/src/index.d.ts","exports":{".":{"import":"./dist/src/index.js"}},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"}},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits","releaseRules":[{"breaking":true,"release":"major"},{"revert":true,"release":"patch"},{"type":"feat","release":"minor"},{"type":"fix","release":"patch"},{"type":"chore","release":"patch"},{"type":"docs","release":"patch"},{"type":"test","release":"patch"},{"scope":"no-release","release":false}]}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits","presetConfig":{"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"chore","section":"Trivial Changes"},{"type":"docs","section":"Trivial Changes"},{"type":"test","section":"Tests"}]}}],"@semantic-release/changelog","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"scripts":{"lint":"aegir lint","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","build":"tsc","pretest":"npm run build","test":"aegir test -f ./dist/test/*.js -f ./dist/test/**/*.js","test:chrome":"npm run test -- -t browser","test:chrome-webworker":"npm run test -- -t webworker","test:firefox":"npm run test -- -t browser -- --browser firefox","test:firefox-webworker":"npm run test -- -t webworker -- --browser firefox","test:node":"npm run test -- -t node --cov","test:electron-main":"npm run test -- -t electron-main"},"dependencies":{"@libp2p/interfaces":"^1.3.6"},"devDependencies":{"@libp2p/peer-id":"^1.1.3","@libp2p/peer-id-factory":"^1.0.5","aegir":"^36.1.3"},"gitHead":"a7f12ed481ba9eeed76b19d9318449de674f8415","_id":"@libp2p/peer-map@1.0.2","_nodeVersion":"16.14.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-9p5LUN+a+jJ12v7f0qrkEfoeauUKmegVg4gNbtnU45d/6zm2P00Ia30SYYxxW+L5094R5Ykc2NLrgjC1+NZOBQ==","shasum":"968e2b5f32f44a1152f8e8c56fb8d7b26be45922","tarball":"http://registry-npm.ywwl.com/@libp2p/peer-map/download/@libp2p/peer-map-1.0.2.tgz","fileCount":8,"unpackedSize":11172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiG0svACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg8g/+JeTRCiR7ekhrW7yvMEKoRvsznXIyQP0kLy7panrv18KXMQTr\r\nG1sJuMrj1Bt3yQq795c+XPOfHKK4FoF8wBSvU27dRH/wTKtCocBRGc/gtXuD\r\npprrM9Rnoirso0DzjHqA1WlrIk9KDMLrkDypPhxjzDvSjubtquzDwGvjb/PW\r\n0gUvz13rHBVzfobYMuypEmgV3vh5A0jM+7ahmJjHW7Olb1Klnf0Gkxxz+gML\r\nn/WbYKm4+dxn50pNN9q03ItxVL5lp9BIemS+YGlOktx2XFRDi8OWXIOVsSi2\r\njyrrYwbAtrjYSeAQhAZAjqp5NUFCeEzH3wyF8ISFDfTBKPz5xkn33/UXl/6e\r\nOe5ttSMF+7w7I48qcya34m7E1YxP33uthmRjFJHyGpQCdJM7srGbHcgkmhz2\r\ndoJlhbnaxmkxV3E/KMObG0d8mijYZtDZPWHpW7KwwvgIMKxPQoFCmNsiiSi+\r\nNsNT9pqVYmPueLgLMh/z55a8uYguswGwstPhOna1CtWe7Fp89XRydMqyOgsA\r\niFBMMp38Imdcsp1KgJtFhfzAT+8TFBLvfSmapzA8n8rqFbmt5GPTfNhtiMIV\r\naWymQNRF0tvvTYwT4RnOd1aAZj/q58uju10vndm795qF0qIFQFFsL6Js7/yu\r\nK0wuiU4TAgHKAwfhoMZ4mAT14hGv+xWAf70=\r\n=FxGO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvYtAkUGHabZgUoHAIvZcoKQ2dMms1tFkNstsANSfnCAIhAML4dzuwSnx1yTM1+og5e2fHav5QSDFn48X6F6MPNF/S"}],"size":3322,"noattachment":false,"key":"/@libp2p/peer-map/-/@libp2p/peer-map-1.0.2.tgz"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"daviddias","email":"mail@daviddias.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/peer-map_1.0.2_1645955886901_0.016829752133886267"},"_hasShrinkwrap":false,"readme":"# libp2p-peer-map <!-- omit in toc -->\n\n> store values against peer ids\n\n## Table of Contents <!-- omit in toc -->\n\n- [Description](#description)\n- [Example](#example)\n- [Installation](#installation)\n- [License](#license)\n  - [Contribution](#contribution)\n\n## Description\n\n We can't use PeerIds as map keys because map keys are compared using same-value-zero equality, so this is just a map that stringifies the PeerIds before storing them.\n\n PeerIds cache stringified versions of themselves so this should be a cheap operation.\n\n## Example\n\n```JavaScript\nimport { peerMap } from '@libp2p/peer-map'\n\nconst map = peerMap<string>()\n\nmap.set(peerId, 'value')\n```\n\n## Installation\n\n```console\n$ npm i @libp2p/peer-map\n```\n\n## License\n\nLicensed under either of\n\n * Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / http://www.apache.org/licenses/LICENSE-2.0)\n * MIT ([LICENSE-MIT](LICENSE-MIT) / http://opensource.org/licenses/MIT)\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","publish_time":1645955887043,"_cnpm_publish_time":1645955887043,"dist-tags":{"latest":"1.0.3"}}