{ "name": "@libp2p/gossipsub", "version": "17.2.2", "description": "A typescript implementation of gossipsub", "files": [ "src", "dist", "!dist/test", "!**/*.tsbuildinfo" ], "type": "module", "types": "dist/src/index.d.ts", "exports": { ".": { "types": "./dist/src/index.d.ts", "import": "./dist/src/index.js", "module-sync": "./dist/src/index.js" }, "./message": { "types": "./dist/src/message/index.d.ts", "import": "./dist/src/message/index.js", "module-sync": "./dist/src/message/index.js" }, "./metrics": { "types": "./dist/src/metrics.d.ts", "import": "./dist/src/metrics.js", "module-sync": "./dist/src/metrics.js" }, "./score": { "types": "./dist/src/score/index.d.ts", "import": "./dist/src/score/index.js", "module-sync": "./dist/src/score/index.js" }, "./types": { "types": "./dist/src/types.d.ts", "import": "./dist/src/types.js", "module-sync": "./dist/src/types.js" } }, "typesVersions": { "*": { "*": [ "*", "dist/src/*", "dist/src/*/index" ] } }, "scripts": { "clean": "aegir clean", "lint": "aegir lint", "dep-check": "aegir dep-check", "doc-check": "aegir doc-check", "build": "aegir build", "generate": "protons ./src/message/rpc.proto", "benchmark": "npm run benchmark:files -- 'dist/test/benchmark/**/*.test.js' -- --exit", "benchmark:files": "NODE_OPTIONS='--max-old-space-size=4096' aegir test -t node --timeout 0 -f", "test": "aegir test -f dist/test/*.spec.js", "test:node": "aegir test -t node -f dist/test/*.spec.js -f dist/test/unit/*.spec.js -f dist/test/e2e/*.spec.js", "test:chrome": "aegir test -f dist/test/*.spec.js -t browser", "test:chrome-webworker": "aegir test -f dist/test/*.spec.js -t webworker", "test:firefox": "aegir test -f dist/test/*.spec.js -t browser -- --browser firefox", "test:firefox-webworker": "aegir test -f dist/test/*.spec.js -t webworker -- --browser firefox", "test:webkit": "aegir test -f dist/test/*.spec.js -t browser -- --browser webkit", "test:electron-main": "aegir test -f dist/test/*.spec.js -t electron-main" }, "repository": { "type": "git", "url": "git+https://github.com/libp2p/js-libp2p.git" }, "keywords": [ "libp2p", "pubsub", "gossip" ], "author": "Cayman Nava", "license": "Apache-2.0 OR MIT", "bugs": { "url": "https://github.com/libp2p/js-libp2p/issues" }, "publishConfig": { "access": "public", "provenance": true }, "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/gossipsub#readme", "dependencies": { "@libp2p/crypto": "^5.2.0", "@libp2p/interface": "^3.4.0", "@libp2p/interface-internal": "^3.2.3", "@libp2p/peer-id": "^6.0.18", "@libp2p/utils": "^7.4.6", "@multiformats/multiaddr": "^13.0.3", "denque": "^2.1.0", "it-length-prefixed": "^11.0.1", "it-pipe": "^3.0.1", "it-pushable": "^3.2.3", "multiformats": "^14.0.0", "protons-runtime": "^7.0.0", "uint8arraylist": "^3.0.2", "uint8arrays": "^6.1.1" }, "devDependencies": { "@chainsafe/as-sha256": "^1.2.0", "@libp2p/floodsub": "^11.1.2", "@libp2p/logger": "^6.2.16", "@libp2p/peer-store": "^12.0.33", "@types/benchmark": "^2.1.5", "@types/sinon": "^22.0.0", "abortable-iterator": "^5.1.0", "aegir": "^48.1.1", "benchmark": "^2.1.4", "datastore-core": "^12.0.1", "delay": "^7.0.0", "it-all": "^3.0.9", "mkdirp": "^3.0.1", "p-defer": "^4.0.1", "p-event": "^8.0.1", "p-retry": "^9.0.0", "p-wait-for": "^6.0.0", "protons": "^9.0.1", "sinon": "^22.0.0", "sinon-ts": "^2.0.0", "time-cache": "^0.3.0" }, "engines": { "npm": ">=8.7.0" }, "eslintConfig": { "extends": "ipfs", "ignorePatterns": [ "src/message/rpc*", "!.aegir.js" ] }, "contributors": [ "Cayman ", "Vasco Santos ", "Mikerah ", "Tuyen Nguyen ", "Alex Potsides ", "Marin Petrunić ", "Lion - dapplion <35266934+dapplion@users.noreply.github.com>", "Gregory Markou <16929357+GregTheGreek@users.noreply.github.com>", "Alan Shaw ", "Tuyen ", "Jacob Heun ", "Patrick Michot ", "chainsafe ", "Hugo Dias ", "Franck Royer ", "ChainSafe " ], "sideEffects": false }