@gjsify/fetch 0.24.1 → 0.24.2
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.
- package/lib/errors/fetch-error.js +0 -1
- package/lib/response.js +0 -1
- package/lib/utils/referrer.js +0 -1
- package/package.json +8 -8
|
@@ -15,7 +15,6 @@ export class FetchError extends FetchBaseError {
|
|
|
15
15
|
super(message, type);
|
|
16
16
|
// When err.type is `system`, err.erroredSysCall contains system error and err.code contains system error code
|
|
17
17
|
if (systemError) {
|
|
18
|
-
// eslint-disable-next-line no-multi-assign
|
|
19
18
|
this.code = this.errno = systemError.code;
|
|
20
19
|
this.erroredSysCall = systemError.syscall;
|
|
21
20
|
}
|
package/lib/response.js
CHANGED
|
@@ -22,7 +22,6 @@ export class Response extends Body {
|
|
|
22
22
|
_inputStream = null;
|
|
23
23
|
constructor(body = null, options = {}) {
|
|
24
24
|
super(body, options);
|
|
25
|
-
// eslint-disable-next-line no-eq-null, eqeqeq, no-negated-condition
|
|
26
25
|
const status = options.status != null ? options.status : 200;
|
|
27
26
|
const headers = new Headers(options.headers);
|
|
28
27
|
if (body !== null && !headers.has('Content-Type')) {
|
package/lib/utils/referrer.js
CHANGED
|
@@ -16,7 +16,6 @@ import { isIP } from 'node:net';
|
|
|
16
16
|
export function stripURLForUseAsAReferrer(url, originOnly = false) {
|
|
17
17
|
// 1. If url is null, return no referrer.
|
|
18
18
|
if (url == null || url === 'no-referrer') {
|
|
19
|
-
// eslint-disable-line no-eq-null, eqeqeq
|
|
20
19
|
return 'no-referrer';
|
|
21
20
|
}
|
|
22
21
|
const u = new URL(url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/fetch",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.2",
|
|
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,8 +51,8 @@
|
|
|
51
51
|
"fetch"
|
|
52
52
|
],
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@gjsify/cli": "^0.24.
|
|
55
|
-
"@gjsify/unit": "^0.24.
|
|
54
|
+
"@gjsify/cli": "^0.24.2",
|
|
55
|
+
"@gjsify/unit": "^0.24.2",
|
|
56
56
|
"@types/node": "^25.9.2",
|
|
57
57
|
"typescript": "^6.0.3"
|
|
58
58
|
},
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"@girs/gjs": "^4.1.0",
|
|
62
62
|
"@girs/glib-2.0": "^4.1.0",
|
|
63
63
|
"@girs/soup-3.0": "^4.1.0",
|
|
64
|
-
"@gjsify/dom-events": "^0.24.
|
|
65
|
-
"@gjsify/formdata": "^0.24.
|
|
66
|
-
"@gjsify/http": "^0.24.
|
|
67
|
-
"@gjsify/url": "^0.24.
|
|
68
|
-
"@gjsify/utils": "^0.24.
|
|
64
|
+
"@gjsify/dom-events": "^0.24.2",
|
|
65
|
+
"@gjsify/formdata": "^0.24.2",
|
|
66
|
+
"@gjsify/http": "^0.24.2",
|
|
67
|
+
"@gjsify/url": "^0.24.2",
|
|
68
|
+
"@gjsify/utils": "^0.24.2"
|
|
69
69
|
},
|
|
70
70
|
"gjsify": {
|
|
71
71
|
"runtimes": {
|