js-waku/packages/utils/package.json

96 lines
2.3 KiB
JSON
Raw Normal View History

2022-11-02 06:03:38 +00:00
{
"name": "@waku/utils",
2024-01-10 22:27:39 +00:00
"version": "0.0.14",
"description": "Different utilities for Waku",
2022-11-02 06:03:38 +00:00
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./libp2p": {
"types": "./dist/libp2p/index.d.ts",
"import": "./dist/libp2p/index.js"
},
"./bytes": {
"types": "./dist/bytes/index.d.ts",
"import": "./dist/bytes/index.js"
2022-11-02 06:03:38 +00:00
}
},
"typesVersions": {
"*": {
"*": [
"*",
"dist/*",
"dist/*/index"
]
}
},
2022-11-02 06:03:38 +00:00
"type": "module",
"author": "Waku Team",
"homepage": "https://github.com/waku-org/js-waku/tree/master/packages/utils#readme",
2022-11-02 06:03:38 +00:00
"repository": {
"type": "git",
"url": "https://github.com/waku-org/js-waku.git"
},
"bugs": {
"url": "https://github.com/waku-org/js-waku/issues"
},
"license": "MIT OR Apache-2.0",
"keywords": [
"waku",
"decentralized",
"secure",
"communication",
"web3",
"ethereum",
"dapps",
"privacy"
],
"scripts": {
"build": "run-s build:**",
"build:esm": "tsc",
"build:bundle": "rollup --config rollup.config.js",
"fix": "run-s fix:*",
"fix:lint": "eslint src *.js --fix",
2022-11-02 06:03:38 +00:00
"check": "run-s check:*",
"check:lint": "eslint src *.js",
2022-11-02 06:03:38 +00:00
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
"check:tsc": "tsc -p tsconfig.dev.json",
"prepublish": "npm run build",
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
2024-01-02 11:00:18 +00:00
"test": "NODE_ENV=test run-s test:*",
"test:node": "NODE_ENV=test TS_NODE_PROJECT=./tsconfig.dev.json mocha"
2022-11-02 06:03:38 +00:00
},
"engines": {
2023-09-22 09:07:34 +00:00
"node": ">=18"
2022-11-02 06:03:38 +00:00
},
2022-11-02 11:25:47 +00:00
"dependencies": {
"@noble/hashes": "^1.3.2",
2024-01-10 22:27:39 +00:00
"@waku/interfaces": "0.0.21",
"chai": "^4.3.10",
"debug": "^4.3.4",
feat(static-sharding)!: allow multiple pubSubTopics (#1586) * `ProtocolCreateOptions` now has `pubSubTopic` as `pubSubTopic[]` * chore: update encoder & decoder to support `PubSubTopic` * feat(protocols): allow multiple `PubSubTopic[]` * feat(relay): allow multiple `PubSubTopic[]` * chore(tests): update for new API * chore: minor fixes * chore: make store more robust * fix(relay): correctly set types * chore(address comments): update terminology around configured pubsub topics * chore(address comments): minor refactoring * chore(relay): split `subscribe` into smaller functions for readability & modularity * chore(address comments): refactor `waitForGossipSubPeerInMesh` * chore(store): only allow to query one `pubSubTopic` * fix: `store` bug * feat(tests): add some basic tests * sharding utils * address comments * feat(relay): re-add API for `getMeshPeers` * update error message Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com> * refactor for new API * feat: simplify handling of observers (#1614) * refactor: simplify handling of observers * refactor: Remove redundant PubSubTopic from Observer * use `??` instead of `||` * update `pubsubTopic` to `pubSubTopic` * update `interval` typo * change occurence of `pubsubTopic` to `pubSubTopic` * relay: rm `getAllMeshPeers` and make `pubSubTopics` public * relay: use `push_or_init_map` and move to `utils` * fix: update API for tests * fix: relay waitForRemotePeer --------- Co-authored-by: fryorcraken <110212804+fryorcraken@users.noreply.github.com>
2023-09-27 09:58:07 +00:00
"uint8arrays": "^4.0.4"
2022-11-02 11:25:47 +00:00
},
2022-11-02 06:03:38 +00:00
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
2023-02-10 02:14:02 +00:00
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@waku/build-utils": "*",
"cspell": "^7.3.2",
2022-11-02 06:03:38 +00:00
"npm-run-all": "^4.1.5",
"rollup": "^4.6.0"
2022-11-02 06:03:38 +00:00
},
"files": [
"dist",
"bundle",
"src/**/*.ts",
2022-11-02 06:03:38 +00:00
"!**/*.spec.*",
"!**/*.json",
"CHANGELOG.md",
"LICENSE",
"README.md"
]
}