@gjsify/http 0.4.44 → 0.5.1

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.
@@ -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.44",
3
+ "version": "0.5.1",
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.44",
46
- "@gjsify/unit": "^0.4.44",
47
- "@types/node": "^25.9.1",
45
+ "@gjsify/cli": "^0.5.1",
46
+ "@gjsify/unit": "^0.5.1",
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.44",
55
- "@gjsify/events": "^0.4.44",
56
- "@gjsify/http-soup-bridge": "^0.4.44",
57
- "@gjsify/net": "^0.4.44",
58
- "@gjsify/stream": "^0.4.44",
59
- "@gjsify/url": "^0.4.44",
60
- "@gjsify/utils": "^0.4.44"
54
+ "@gjsify/buffer": "^0.5.1",
55
+ "@gjsify/events": "^0.5.1",
56
+ "@gjsify/http-soup-bridge": "^0.5.1",
57
+ "@gjsify/net": "^0.5.1",
58
+ "@gjsify/stream": "^0.5.1",
59
+ "@gjsify/url": "^0.5.1",
60
+ "@gjsify/utils": "^0.5.1"
61
61
  },
62
62
  "gjsify": {
63
63
  "runtimes": {