| author | Ashvith Shetty
<113123021+Ashvith10@users.noreply.github.com> 2026-02-23 16:15:52 UTC |
| committer | Ashvith Shetty
<113123021+Ashvith10@users.noreply.github.com> 2026-02-23 16:22:08 UTC |
| parent | f0a0c43f46285f328a83c4f49405b8d616ae35c0 |
| npm/package.json | +3 | -1 |
| npm/patches/@xmpp+resolve+0.14.0+001+fix-browser-bundle.patch | +13 | -0 |
diff --git a/npm/package.json b/npm/package.json index bda6ec3..a62cc1f 100644 --- a/npm/package.json +++ b/npm/package.json @@ -14,6 +14,7 @@ "./borogove.js": "./borogove-browser.js" }, "scripts": { + "postinstall": "patch-package", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", @@ -21,7 +22,8 @@ "dependencies": { "@xmpp/client": "^0.14.0", "@xmpp/debug": "^0.14.0", - "@xmpp/sasl-scram-sha-1": "^0.14.0" + "@xmpp/sasl-scram-sha-1": "^0.14.0", + "patch-package": "^8.0.1" }, "devDependencies": { "typescript": "^5.4.5" diff --git a/npm/patches/@xmpp+resolve+0.14.0+001+fix-browser-bundle.patch b/npm/patches/@xmpp+resolve+0.14.0+001+fix-browser-bundle.patch new file mode 100644 index 0000000..6a3931c --- /dev/null +++ b/npm/patches/@xmpp+resolve+0.14.0+001+fix-browser-bundle.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/@xmpp/resolve/resolve.js b/node_modules/@xmpp/resolve/resolve.js +index 02d38e2..526e284 100644 +--- a/node_modules/@xmpp/resolve/resolve.js ++++ b/node_modules/@xmpp/resolve/resolve.js +@@ -3,7 +3,7 @@ import * as http from "./lib/http.js"; + + export default function resolve(...args) { + return Promise.all([ +- dns.resolve ? dns.resolve(...args) : Promise.resolve([]), ++ dns?.resolve?.(...args) ?? [], + http.resolve(...args), + ]).then(([records, endpoints]) => [...records, ...endpoints]); + }