Compare commits

..

No commits in common. "21feb9fa17e25fa75d2e1cc66b3e5e6fac720462" and "2e1780e28f8678a52e61d063a07fc7fd3bfe02f2" have entirely different histories.

4 changed files with 6 additions and 18 deletions

View File

@ -10,5 +10,5 @@ esbuild.buildSync({
define: { define: {
global: "self", global: "self",
}, },
inject: ["process.js", "polyfill.js"], inject: ["process.js"],
}); });

View File

@ -15,10 +15,9 @@
"dependencies": { "dependencies": {
"@lumeweb/hyperswarm-web": "git+https://git.lumeweb.com/LumeWeb/hyperswarm-web.git", "@lumeweb/hyperswarm-web": "git+https://git.lumeweb.com/LumeWeb/hyperswarm-web.git",
"@noble/ed25519": "^1.7.3", "@noble/ed25519": "^1.7.3",
"@peculiar/webcrypto": "^1.4.3",
"b4a": "^1.6.3", "b4a": "^1.6.3",
"eventemitter2": "^6.4.9", "eventemitter2": "^6.4.9",
"hyperswarm": "^4.4.0", "hyperswarm": "^4.3.7",
"libkmodule": "^0.2.53", "libkmodule": "^0.2.53",
"libskynet": "^0.0.62", "libskynet": "^0.0.62",
"noise-handshake": "^3.0.2", "noise-handshake": "^3.0.2",
@ -29,7 +28,7 @@
"@rollup/plugin-node-resolve": "^13.3.0", "@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-typescript": "^8.5.0", "@rollup/plugin-typescript": "^8.5.0",
"@screamingvoid/sodium-universal": "^0.1.1", "@screamingvoid/sodium-universal": "^0.1.1",
"@scure/bip39": "^1.2.0", "@scure/bip39": "^1.1.1",
"@skynetlabs/skynet-nodejs": "^2.9.0", "@skynetlabs/skynet-nodejs": "^2.9.0",
"@types/b4a": "^1.6.0", "@types/b4a": "^1.6.0",
"@types/jest": "^28.1.8", "@types/jest": "^28.1.8",
@ -42,7 +41,7 @@
"jest": "^28.1.3", "jest": "^28.1.3",
"jest-puppeteer": "^6.2.0", "jest-puppeteer": "^6.2.0",
"libskynetnode": "^0.1.4", "libskynetnode": "^0.1.4",
"prettier": "^2.8.7", "prettier": "^2.8.4",
"process": "^0.11.10", "process": "^0.11.10",
"puppeteer": "^15.5.0", "puppeteer": "^15.5.0",
"random-number-csprng": "^1.0.2", "random-number-csprng": "^1.0.2",
@ -52,7 +51,7 @@
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",
"ts-loader": "^9.4.2", "ts-loader": "^9.4.2",
"typescript": "^4.9.5", "typescript": "^4.9.5",
"webpack": "^5.77.0", "webpack": "^5.76.2",
"webpack-cli": "^4.10.0" "webpack-cli": "^4.10.0"
}, },
"browser": { "browser": {

View File

@ -1,11 +0,0 @@
import { Crypto } from "@peculiar/webcrypto";
let globalCrypto = self.crypto;
if (!globalCrypto.subtle) {
let subtleCrypto = new Crypto().subtle;
Object.defineProperty(globalCrypto, "subtle", {
get() {
return subtleCrypto;
},
});
}

View File

@ -359,7 +359,7 @@ async function handleListenConnections(aq: ActiveQuery) {
}; };
const hookClose = () => { const hookClose = () => {
swarmEvent?.once("close", closeCb); swarm.onceSelf("close", closeCb);
}; };
if (swarm.activeRelay) { if (swarm.activeRelay) {