build: bump lnurlcash-kit past the upstream detached-fetch fix, drop the boot workaround

This commit is contained in:
2026-08-20 10:53:13 +02:00
parent f4b9377d17
commit 68bdf29fd5
3 changed files with 2 additions and 16 deletions
+1 -1
View File
@@ -5987,7 +5987,7 @@
},
"node_modules/lnurlcash-kit": {
"version": "0.1.0",
"resolved": "git+ssh://git@github.com/tompro/lnurlcash-kit.git#78c9ca2ed597da354629306f280eeb722b9223db",
"resolved": "git+ssh://git@github.com/tompro/lnurlcash-kit.git#662277bbb348800c3e559ec70d85d75795b75c13",
"license": "MIT",
"dependencies": {
"@noble/curves": "^2.3.0",
+1 -1
View File
@@ -11,7 +11,7 @@ export default defineConfig((ctx) => {
// app boot file (/src/boot)
// --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli-vite/boot-files
boot: ['i18n', 'kit-fetch', 'wallet', 'deeplinks'],
boot: ['i18n', 'wallet', 'deeplinks'],
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
css: ['app.scss'],
-14
View File
@@ -1,14 +0,0 @@
import { defineBoot } from '#q-app';
// lnurlcash-kit's transport resolves its fetch as `options.fetch ??
// globalThis.fetch` and then invokes it as a method on the options object.
// In a browser, calling window.fetch with any receiver other than window
// throws a synchronous "Illegal invocation" TypeError - before any request
// is even attempted (Node's fetch has no such receiver check, so the unit
// tests never see it; every kit network call failed in real browsers).
// Binding the global once here means the kit's captured default is already
// bound, whichever receiver it is invoked with. Remove once lnurlcash-kit
// fixes this upstream in its transport (resolveOptions).
export default defineBoot(() => {
window.fetch = window.fetch.bind(window);
});