chore: build core package

This commit is contained in:
fryorcraken.eth 2022-11-03 14:17:51 +11:00
parent 25dfe9d969
commit 21e5e41b0a
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
6 changed files with 4 additions and 12 deletions

View File

@ -17,10 +17,6 @@
"types": "./dist/lib/predefined_bootstrap_nodes.d.ts",
"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": {
"types": "./dist/lib/wait_for_remote_peer.d.ts",
"import": "./dist/lib/wait_for_remote_peer.js"
@ -98,6 +94,7 @@
"node": ">=16"
},
"dependencies": {
"@waku/byte-utils": "*",
"@chainsafe/libp2p-gossipsub": "^4.1.1",
"@chainsafe/libp2p-noise": "^8.0.1",
"@ethersproject/rlp": "^5.5.0",

View File

@ -7,7 +7,6 @@ export default {
index: "dist/index.js",
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.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/waku_message/version_0": "dist/lib/waku_message/version_0.js",
"lib/waku_message/version_1": "dist/lib/waku_message/version_1.js",

View File

@ -6,10 +6,6 @@ export {
getPublicKey,
} 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_topic_only_message from "./proto/topic_only_message";

View File

@ -1,9 +1,9 @@
import nodeCrypto from "crypto";
import * as secp from "@noble/secp256k1";
import { concat } from "@waku/byte-utils";
import sha3 from "js-sha3";
import { concat } from "./utils";
import { Asymmetric, Symmetric } from "./waku_message/constants";
declare const self: Record<string, any> | undefined;

View File

@ -1,7 +1,7 @@
import * as secp from "@noble/secp256k1";
import { concat, hexToBytes } from "@waku/byte-utils";
import { getSubtle, randomBytes, sha256 } from "../crypto";
import { concat, hexToBytes } from "../utils";
/**
* HKDF as implemented in go-ethereum.
*/

View File

@ -1,10 +1,10 @@
import * as secp from "@noble/secp256k1";
import { concat, hexToBytes } from "@waku/byte-utils";
import type { Decoder, Encoder, Message, ProtoMessage } from "@waku/interfaces";
import debug from "debug";
import * as proto from "../../proto/message";
import { keccak256, randomBytes, sign } from "../crypto";
import { concat, hexToBytes } from "../utils";
import { Symmetric } from "./constants";
import * as ecies from "./ecies";