Compare commits
No commits in common. "21feb9fa17e25fa75d2e1cc66b3e5e6fac720462" and "2e1780e28f8678a52e61d063a07fc7fd3bfe02f2" have entirely different histories.
21feb9fa17
...
2e1780e28f
2
build.js
2
build.js
|
@ -10,5 +10,5 @@ esbuild.buildSync({
|
|||
define: {
|
||||
global: "self",
|
||||
},
|
||||
inject: ["process.js", "polyfill.js"],
|
||||
inject: ["process.js"],
|
||||
});
|
||||
|
|
|
@ -15,10 +15,9 @@
|
|||
"dependencies": {
|
||||
"@lumeweb/hyperswarm-web": "git+https://git.lumeweb.com/LumeWeb/hyperswarm-web.git",
|
||||
"@noble/ed25519": "^1.7.3",
|
||||
"@peculiar/webcrypto": "^1.4.3",
|
||||
"b4a": "^1.6.3",
|
||||
"eventemitter2": "^6.4.9",
|
||||
"hyperswarm": "^4.4.0",
|
||||
"hyperswarm": "^4.3.7",
|
||||
"libkmodule": "^0.2.53",
|
||||
"libskynet": "^0.0.62",
|
||||
"noise-handshake": "^3.0.2",
|
||||
|
@ -29,7 +28,7 @@
|
|||
"@rollup/plugin-node-resolve": "^13.3.0",
|
||||
"@rollup/plugin-typescript": "^8.5.0",
|
||||
"@screamingvoid/sodium-universal": "^0.1.1",
|
||||
"@scure/bip39": "^1.2.0",
|
||||
"@scure/bip39": "^1.1.1",
|
||||
"@skynetlabs/skynet-nodejs": "^2.9.0",
|
||||
"@types/b4a": "^1.6.0",
|
||||
"@types/jest": "^28.1.8",
|
||||
|
@ -42,7 +41,7 @@
|
|||
"jest": "^28.1.3",
|
||||
"jest-puppeteer": "^6.2.0",
|
||||
"libskynetnode": "^0.1.4",
|
||||
"prettier": "^2.8.7",
|
||||
"prettier": "^2.8.4",
|
||||
"process": "^0.11.10",
|
||||
"puppeteer": "^15.5.0",
|
||||
"random-number-csprng": "^1.0.2",
|
||||
|
@ -52,7 +51,7 @@
|
|||
"stream-browserify": "^3.0.0",
|
||||
"ts-loader": "^9.4.2",
|
||||
"typescript": "^4.9.5",
|
||||
"webpack": "^5.77.0",
|
||||
"webpack": "^5.76.2",
|
||||
"webpack-cli": "^4.10.0"
|
||||
},
|
||||
"browser": {
|
||||
|
|
11
polyfill.js
11
polyfill.js
|
@ -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;
|
||||
},
|
||||
});
|
||||
}
|
|
@ -359,7 +359,7 @@ async function handleListenConnections(aq: ActiveQuery) {
|
|||
};
|
||||
|
||||
const hookClose = () => {
|
||||
swarmEvent?.once("close", closeCb);
|
||||
swarm.onceSelf("close", closeCb);
|
||||
};
|
||||
|
||||
if (swarm.activeRelay) {
|
||||
|
|
Loading…
Reference in New Issue