mirror of https://github.com/waku-org/js-waku.git
chore: build core package
This commit is contained in:
parent
25dfe9d969
commit
21e5e41b0a
|
@ -17,10 +17,6 @@
|
||||||
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
|
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
|
||||||
"import": "./dist/lib/predefined_bootstrap_nodes.js"
|
"import": "./dist/lib/predefined_bootstrap_nodes.js"
|
||||||
},
|
},
|
||||||
"./lib/utils": {
|
|
||||||
"types": "./dist/lib/utils.d.ts",
|
|
||||||
"import": "./dist/lib/utils.js"
|
|
||||||
},
|
|
||||||
"./lib/wait_for_remote_peer": {
|
"./lib/wait_for_remote_peer": {
|
||||||
"types": "./dist/lib/wait_for_remote_peer.d.ts",
|
"types": "./dist/lib/wait_for_remote_peer.d.ts",
|
||||||
"import": "./dist/lib/wait_for_remote_peer.js"
|
"import": "./dist/lib/wait_for_remote_peer.js"
|
||||||
|
@ -98,6 +94,7 @@
|
||||||
"node": ">=16"
|
"node": ">=16"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@waku/byte-utils": "*",
|
||||||
"@chainsafe/libp2p-gossipsub": "^4.1.1",
|
"@chainsafe/libp2p-gossipsub": "^4.1.1",
|
||||||
"@chainsafe/libp2p-noise": "^8.0.1",
|
"@chainsafe/libp2p-noise": "^8.0.1",
|
||||||
"@ethersproject/rlp": "^5.5.0",
|
"@ethersproject/rlp": "^5.5.0",
|
||||||
|
|
|
@ -7,7 +7,6 @@ export default {
|
||||||
index: "dist/index.js",
|
index: "dist/index.js",
|
||||||
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
|
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
|
||||||
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
||||||
"lib/utils": "dist/lib/utils.js",
|
|
||||||
"lib/wait_for_remote_peer": "dist/lib/wait_for_remote_peer.js",
|
"lib/wait_for_remote_peer": "dist/lib/wait_for_remote_peer.js",
|
||||||
"lib/waku_message/version_0": "dist/lib/waku_message/version_0.js",
|
"lib/waku_message/version_0": "dist/lib/waku_message/version_0.js",
|
||||||
"lib/waku_message/version_1": "dist/lib/waku_message/version_1.js",
|
"lib/waku_message/version_1": "dist/lib/waku_message/version_1.js",
|
||||||
|
|
|
@ -6,10 +6,6 @@ export {
|
||||||
getPublicKey,
|
getPublicKey,
|
||||||
} from "./lib/crypto";
|
} from "./lib/crypto";
|
||||||
|
|
||||||
export * as enr from "./lib/enr";
|
|
||||||
|
|
||||||
export * as utils from "./lib/utils";
|
|
||||||
|
|
||||||
export * as proto_message from "./proto/message";
|
export * as proto_message from "./proto/message";
|
||||||
export * as proto_topic_only_message from "./proto/topic_only_message";
|
export * as proto_topic_only_message from "./proto/topic_only_message";
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import nodeCrypto from "crypto";
|
import nodeCrypto from "crypto";
|
||||||
|
|
||||||
import * as secp from "@noble/secp256k1";
|
import * as secp from "@noble/secp256k1";
|
||||||
|
import { concat } from "@waku/byte-utils";
|
||||||
import sha3 from "js-sha3";
|
import sha3 from "js-sha3";
|
||||||
|
|
||||||
import { concat } from "./utils";
|
|
||||||
import { Asymmetric, Symmetric } from "./waku_message/constants";
|
import { Asymmetric, Symmetric } from "./waku_message/constants";
|
||||||
|
|
||||||
declare const self: Record<string, any> | undefined;
|
declare const self: Record<string, any> | undefined;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as secp from "@noble/secp256k1";
|
import * as secp from "@noble/secp256k1";
|
||||||
|
import { concat, hexToBytes } from "@waku/byte-utils";
|
||||||
|
|
||||||
import { getSubtle, randomBytes, sha256 } from "../crypto";
|
import { getSubtle, randomBytes, sha256 } from "../crypto";
|
||||||
import { concat, hexToBytes } from "../utils";
|
|
||||||
/**
|
/**
|
||||||
* HKDF as implemented in go-ethereum.
|
* HKDF as implemented in go-ethereum.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import * as secp from "@noble/secp256k1";
|
import * as secp from "@noble/secp256k1";
|
||||||
|
import { concat, hexToBytes } from "@waku/byte-utils";
|
||||||
import type { Decoder, Encoder, Message, ProtoMessage } from "@waku/interfaces";
|
import type { Decoder, Encoder, Message, ProtoMessage } from "@waku/interfaces";
|
||||||
import debug from "debug";
|
import debug from "debug";
|
||||||
|
|
||||||
import * as proto from "../../proto/message";
|
import * as proto from "../../proto/message";
|
||||||
import { keccak256, randomBytes, sign } from "../crypto";
|
import { keccak256, randomBytes, sign } from "../crypto";
|
||||||
import { concat, hexToBytes } from "../utils";
|
|
||||||
|
|
||||||
import { Symmetric } from "./constants";
|
import { Symmetric } from "./constants";
|
||||||
import * as ecies from "./ecies";
|
import * as ecies from "./ecies";
|
||||||
|
|
Loading…
Reference in New Issue