* Add new import paths for socket-to-conn and utils in package.json, and apply a patch to use "@libp2p__tcp@5.0.2" version in patchedDependencies.

This commit is contained in:
Derrick Hammer 2023-04-08 23:13:04 -04:00
parent df42526b21
commit 911c34076e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 28 additions and 0 deletions

View File

@ -25,6 +25,7 @@
"@libp2p/mplex": "^7.1.3",
"@libp2p/tcp": "^6.1.5",
"@libp2p/utils": "^3.0.7",
"@lumeweb/kernel-protomux-client": "git+https://git.lumeweb.com/LumeWeb/kernel-protomux-client.git",
"@lumeweb/kernel-swarm-client": "git+https://git.lumeweb.com/LumeWeb/kernel-swarm-client.git",
"@multiformats/mafmt": "^11.1.2",
"@peculiar/webcrypto": "git+https://git.lumeweb.com/LumeWeb/webcrypto.git",
@ -101,5 +102,13 @@
"net": "./src/net.ts",
"crypto": "crypto-browserify",
"stream": "stream-browserify"
},
"pnpm": {
"overrides": {
"protomux": "@lumeweb/kernel-protomux-client"
},
"patchedDependencies": {
"@libp2p/tcp@5.0.2": "patches/@libp2p__tcp@5.0.2.patch"
}
}
}

View File

@ -0,0 +1,19 @@
diff --git a/package.json b/package.json
index ebe277ee0823744075577945103d234b501810cb..556bea63296a85e2334562dc87455a5690613467 100644
--- a/package.json
+++ b/package.json
@@ -36,6 +36,14 @@
".": {
"types": "./src/index.d.ts",
"import": "./dist/src/index.js"
+ },
+ "./socket-to-conn": {
+ "types": "./dist/src/socket-to-conn.d.ts",
+ "import": "./dist/src/socket-to-conn.js"
+ },
+ "./utils": {
+ "types": "./dist/src/utils.d.ts",
+ "import": "./dist/src/utils.js"
}
},
"eslintConfig": {