@wooksjs/event-http 0.7.1 → 0.7.3
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/dist/index.cjs +493 -499
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs +494 -500
- package/package.json +5 -5
- package/skills/wooksjs-event-http/request.md +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/event-http",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "@wooksjs/event-http",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^3.2.4",
|
|
50
|
-
"@wooksjs/event-core": "^0.7.
|
|
51
|
-
"wooks": "^0.7.
|
|
50
|
+
"@wooksjs/event-core": "^0.7.3",
|
|
51
|
+
"wooks": "^0.7.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@prostojs/logger": "^0.4.3",
|
|
55
55
|
"@prostojs/router": "^0.3.2",
|
|
56
|
-
"@wooksjs/event-core": "^0.7.
|
|
57
|
-
"wooks": "^0.7.
|
|
56
|
+
"@wooksjs/event-core": "^0.7.3",
|
|
57
|
+
"wooks": "^0.7.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "rolldown -c ../../rolldown.config.mjs",
|
|
@@ -107,13 +107,13 @@ if (is('basic')) {
|
|
|
107
107
|
|
|
108
108
|
**Returned properties:**
|
|
109
109
|
|
|
110
|
-
| Property
|
|
111
|
-
|
|
|
112
|
-
| `authorization`
|
|
113
|
-
| `type()`
|
|
114
|
-
| `credentials()`
|
|
115
|
-
| `is(type)`
|
|
116
|
-
| `basicCredentials()`
|
|
110
|
+
| Property | Type | Description |
|
|
111
|
+
| -------------------- | -------------------------------- | -------------------------------------------------------------- |
|
|
112
|
+
| `authorization` | `string \| undefined` | Raw Authorization header value |
|
|
113
|
+
| `type()` | `string \| null` | Auth scheme: `'Basic'`, `'Bearer'`, etc. |
|
|
114
|
+
| `credentials()` | `string \| null` | Everything after the scheme |
|
|
115
|
+
| `is(type)` | `boolean` | Check auth scheme: `'basic'`, `'bearer'`, or any custom scheme |
|
|
116
|
+
| `basicCredentials()` | `{ username, password } \| null` | Decoded Basic credentials |
|
|
117
117
|
|
|
118
118
|
### `useAccept(ctx?)`
|
|
119
119
|
|