@gjsify/fetch 0.48.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/request.js +4 -3
  2. package/package.json +12 -12
package/lib/request.js CHANGED
@@ -350,10 +350,11 @@ export class Request extends Body {
350
350
  // peer cert for THIS message only — never the shared session, which would silently disable
351
351
  // verification for every other fetch. Mirrors the `accept-certificate` idiom in
352
352
  // @gjsify/{tls,http2}. `accept-certificate` lives on Soup.Message (not the session) in
353
- // libsoup 3 and isn't in the typed SignalSignatures map, so widen to the string overload.
353
+ // libsoup 3, and `@girs` carries it there — the `const signalName: string` that used to
354
+ // stand here widened to `connect`'s string overload for a gap that was not real, and
355
+ // 5.0.0 (which has no such overload) is what said so.
354
356
  if (parsedURL.protocol === 'https:' && shouldAcceptAnyCert(this.rejectUnauthorized)) {
355
- const signalName = 'accept-certificate';
356
- message.connect(signalName, (_msg, _cert, _errors) => true);
357
+ message.connect('accept-certificate', (_msg, _cert, _errors) => true);
357
358
  }
358
359
  const cancellable = new Gio.Cancellable();
359
360
  // Close the connect/TTFB abort gap: wire abort → cancel BEFORE send_async. index.ts only wires
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/fetch",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "Web and Node.js fetch module for Gjs",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -51,21 +51,21 @@
51
51
  "fetch"
52
52
  ],
53
53
  "devDependencies": {
54
- "@gjsify/cli": "^0.48.0",
55
- "@gjsify/unit": "^0.48.0",
54
+ "@gjsify/cli": "^0.50.0",
55
+ "@gjsify/unit": "^0.50.0",
56
56
  "@types/node": "^25.9.2",
57
57
  "typescript": "^6.0.3"
58
58
  },
59
59
  "dependencies": {
60
- "@girs/gio-2.0": "4.6.0",
61
- "@girs/gjs": "4.6.0",
62
- "@girs/glib-2.0": "4.6.0",
63
- "@girs/soup-3.0": "4.6.0",
64
- "@gjsify/dom-events": "^0.48.0",
65
- "@gjsify/formdata": "^0.48.0",
66
- "@gjsify/http": "^0.48.0",
67
- "@gjsify/url": "^0.48.0",
68
- "@gjsify/utils": "^0.48.0"
60
+ "@girs/gio-2.0": "5.0.0",
61
+ "@girs/gjs": "5.0.0",
62
+ "@girs/glib-2.0": "5.0.0",
63
+ "@girs/soup-3.0": "5.0.0",
64
+ "@gjsify/dom-events": "^0.50.0",
65
+ "@gjsify/formdata": "^0.50.0",
66
+ "@gjsify/http": "^0.50.0",
67
+ "@gjsify/url": "^0.50.0",
68
+ "@gjsify/utils": "^0.50.0"
69
69
  },
70
70
  "gjsify": {
71
71
  "runtimes": {