@gjsify/http 0.4.43 → 0.5.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.
package/README.md CHANGED
@@ -7,8 +7,10 @@ Part of the [gjsify](https://github.com/gjsify/gjsify) project — Node.js and W
7
7
  ## Installation
8
8
 
9
9
  ```bash
10
+ gjsify install @gjsify/http
11
+
12
+ # npm or yarn also work (e.g. adding it to an existing project):
10
13
  npm install @gjsify/http
11
- # or
12
14
  yarn add @gjsify/http
13
15
  ```
14
16
 
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";function validateHeaderName(e){if(typeof e!=`string`||!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=TypeError(`Header name must be a valid HTTP token ["${e}"]`);throw Object.defineProperty(t,"code",{value:`ERR_INVALID_HTTP_TOKEN`}),t}}function validateHeaderValue(e,t){if(t===void 0){let t=TypeError(`Header "${e}" value must not be undefined`);throw Object.defineProperty(t,"code",{value:`ERR_HTTP_INVALID_HEADER_VALUE`}),t}if(typeof t==`string`&&/[^\t -~€-ÿ]/.test(t)){let t=TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(t,"code",{value:`ERR_INVALID_CHAR`}),t}}export{validateHeaderName,validateHeaderValue};
1
+ import"./_virtual/_rolldown/runtime.js";function validateHeaderName(e){if(typeof e!=`string`||!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=TypeError(`Header name must be a valid HTTP token ["${e}"]`);throw Object.defineProperty(t,`code`,{value:`ERR_INVALID_HTTP_TOKEN`}),t}}function validateHeaderValue(e,t){if(t===void 0){let t=TypeError(`Header "${e}" value must not be undefined`);throw Object.defineProperty(t,`code`,{value:`ERR_HTTP_INVALID_HEADER_VALUE`}),t}if(typeof t==`string`&&/[^\t -~€-ÿ]/.test(t)){let t=TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(t,`code`,{value:`ERR_INVALID_CHAR`}),t}}export{validateHeaderName,validateHeaderValue};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/http",
3
- "version": "0.4.43",
3
+ "version": "0.5.0",
4
4
  "description": "Node.js http module for Gjs",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -42,22 +42,22 @@
42
42
  "http"
43
43
  ],
44
44
  "devDependencies": {
45
- "@gjsify/cli": "^0.4.43",
46
- "@gjsify/unit": "^0.4.43",
47
- "@types/node": "^25.9.1",
45
+ "@gjsify/cli": "^0.5.0",
46
+ "@gjsify/unit": "^0.5.0",
47
+ "@types/node": "^25.9.2",
48
48
  "typescript": "^6.0.3"
49
49
  },
50
50
  "dependencies": {
51
51
  "@girs/gio-2.0": "2.88.0-4.0.4",
52
52
  "@girs/glib-2.0": "2.88.0-4.0.4",
53
53
  "@girs/soup-3.0": "3.6.6-4.0.4",
54
- "@gjsify/buffer": "^0.4.43",
55
- "@gjsify/events": "^0.4.43",
56
- "@gjsify/http-soup-bridge": "^0.4.43",
57
- "@gjsify/net": "^0.4.43",
58
- "@gjsify/stream": "^0.4.43",
59
- "@gjsify/url": "^0.4.43",
60
- "@gjsify/utils": "^0.4.43"
54
+ "@gjsify/buffer": "^0.5.0",
55
+ "@gjsify/events": "^0.5.0",
56
+ "@gjsify/http-soup-bridge": "^0.5.0",
57
+ "@gjsify/net": "^0.5.0",
58
+ "@gjsify/stream": "^0.5.0",
59
+ "@gjsify/url": "^0.5.0",
60
+ "@gjsify/utils": "^0.5.0"
61
61
  },
62
62
  "gjsify": {
63
63
  "runtimes": {