{"name":"@libp2p/peer-map","version":"1.0.1","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.0.0"},"devDependencies":{"@libp2p/peer-id":"^1.1.3","@libp2p/peer-id-factory":"^1.0.5","aegir":"^36.1.3"},"gitHead":"c5966315dbfc8e5829d3fc5eeebc2f2916f88c47","_id":"@libp2p/peer-map@1.0.1","_nodeVersion":"16.14.0","_npmVersion":"7.24.2","dist":{"integrity":"sha512-p9e7aKoTpLX6TIuswXMRcw7c4NkEje4Up3ruDBBeJWT3OmViAxfyiEQvWz9QNaglf2lpGO7Hm18ljym+TbPBhw==","shasum":"ed99744f068830e20fc62ce87b98a2a4db8f0f47","tarball":"http://registry-npm.ywwl.com/@libp2p/peer-map/download/@libp2p/peer-map-1.0.1.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\nwsFzBAEBCAAGBQJiD0WjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo65Q//UCMpWbnW3fZGrBaM8P+7L4J8fbLlddwPlzpFCK6hXCkIX3lv\r\nmPMPbmB5t3cjVz26CpqIvwmF0C1Ho6nBK7nEJM9bt6l1O3jFM+XpmHibmjha\r\nKe/SeloVTSTAges+8CFhiRNUkimqWzQPV/BMo74Yd9nqR30qqCds96CFSyu1\r\n5rHm/omNHPhe5JQipDtFyy39i8dYOk1kHBMj6W2YAYkSAFlOIWpOsGw3kT6f\r\n6qdIU/07VivV/loVfx4qfU6pMvQbVCXgaHTQJOGdG+gDATMzDowBuSn8ldUg\r\nCMt0RAzkr6LHAXOqk6jobmzE2V42OQx8RBdOjm3VQTid1Fj0ED3gvpx+k5BC\r\n14rmu/K5RIWb5PFhRHavq6SXSAkFSsnaGIEmOxRlvk2qdUoVLCAgox4sNa6G\r\n2mY7/HOp8wdb5IKd7HVvtr8ljQtQr2Z8sWZQobD0KKFy6hW4Mny1MmB2Qs+o\r\njHZ0DeaxWtuegRHzLJTdMH2D5fHmPF7jiievQJoUTX85EZj8Cxt1gvOaOVwm\r\ntaPZcil6M0dHZEv1CgTXnFxcO+OGuS/fDEHSF8G88NlSVrgqyFMVqTCj2REG\r\n4SKkzxvvJLqlFQhUMV99xV3jyFSsetqI4VFjWT/uIxvV8qfELDEuyCk32FJh\r\nlHoJdHbG8Nb7ahvERWTDJBBiLHfwTonsbPc=\r\n=qkpW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8XMCaGmsNrCYLoUhU6el8eDptqaKQoCNeib12kviTQAiEAomLclaOygDlD0bctrF6pEQUVHvMIOhK5OMt8+ITcazA="}],"size":3320,"noattachment":false,"key":"/@libp2p/peer-map/-/@libp2p/peer-map-1.0.1.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.1_1645168035159_0.6390124280766498"},"_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":1645168035333,"_cnpm_publish_time":1645168035333,"dist-tags":{"latest":"1.0.3"}}