@twin.org/web 0.0.3-next.10 → 0.0.3-next.11
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.
|
@@ -7,35 +7,68 @@
|
|
|
7
7
|
export const HeaderTypes = {
|
|
8
8
|
/**
|
|
9
9
|
* Content Type.
|
|
10
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
10
11
|
*/
|
|
11
12
|
ContentType: "content-type",
|
|
12
13
|
/**
|
|
13
14
|
* Content Length.
|
|
15
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
14
16
|
*/
|
|
15
17
|
ContentLength: "content-length",
|
|
16
18
|
/**
|
|
17
19
|
* Content Disposition.
|
|
20
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
18
21
|
*/
|
|
19
22
|
ContentDisposition: "content-disposition",
|
|
23
|
+
/**
|
|
24
|
+
* Content Encoding.
|
|
25
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
26
|
+
*/
|
|
27
|
+
ContentEncoding: "content-encoding",
|
|
20
28
|
/**
|
|
21
29
|
* Accept.
|
|
30
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
22
31
|
*/
|
|
23
32
|
Accept: "accept",
|
|
33
|
+
/**
|
|
34
|
+
* Accept-Language.
|
|
35
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language
|
|
36
|
+
*/
|
|
37
|
+
AcceptLanguage: "accept-language",
|
|
38
|
+
/**
|
|
39
|
+
* Accept-Encoding.
|
|
40
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
|
|
41
|
+
*/
|
|
42
|
+
AcceptEncoding: "accept-encoding",
|
|
24
43
|
/**
|
|
25
44
|
* Authorization.
|
|
45
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
26
46
|
*/
|
|
27
47
|
Authorization: "authorization",
|
|
28
48
|
/**
|
|
29
49
|
* Cookie.
|
|
50
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
30
51
|
*/
|
|
31
52
|
Cookie: "cookie",
|
|
32
53
|
/**
|
|
33
54
|
* Set Cookie.
|
|
55
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
34
56
|
*/
|
|
35
57
|
SetCookie: "set-cookie",
|
|
36
58
|
/**
|
|
37
59
|
* Location
|
|
60
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
61
|
+
*/
|
|
62
|
+
Location: "location",
|
|
63
|
+
/**
|
|
64
|
+
* Link
|
|
65
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
66
|
+
*/
|
|
67
|
+
Link: "link",
|
|
68
|
+
/**
|
|
69
|
+
* User-Agent
|
|
70
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
|
38
71
|
*/
|
|
39
|
-
|
|
72
|
+
UserAgent: "user-agent"
|
|
40
73
|
};
|
|
41
74
|
//# sourceMappingURL=headerTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerTypes.js","sourceRoot":"","sources":["../../../src/models/headerTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B
|
|
1
|
+
{"version":3,"file":"headerTypes.js","sourceRoot":"","sources":["../../../src/models/headerTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;;OAGG;IACH,WAAW,EAAE,cAAc;IAE3B;;;OAGG;IACH,aAAa,EAAE,gBAAgB;IAE/B;;;OAGG;IACH,kBAAkB,EAAE,qBAAqB;IAEzC;;;OAGG;IACH,eAAe,EAAE,kBAAkB;IAEnC;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;;OAGG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;;OAGG;IACH,aAAa,EAAE,eAAe;IAE9B;;;OAGG;IACH,MAAM,EAAE,QAAQ;IAEhB;;;OAGG;IACH,SAAS,EAAE,YAAY;IAEvB;;;OAGG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;OAGG;IACH,IAAI,EAAE,MAAM;IAEZ;;;OAGG;IACH,SAAS,EAAE,YAAY;CACd,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Common http header types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const HeaderTypes = {\n\t/**\n\t * Content Type.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type\n\t */\n\tContentType: \"content-type\",\n\n\t/**\n\t * Content Length.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length\n\t */\n\tContentLength: \"content-length\",\n\n\t/**\n\t * Content Disposition.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition\n\t */\n\tContentDisposition: \"content-disposition\",\n\n\t/**\n\t * Content Encoding.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding\n\t */\n\tContentEncoding: \"content-encoding\",\n\n\t/**\n\t * Accept.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept\n\t */\n\tAccept: \"accept\",\n\n\t/**\n\t * Accept-Language.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language\n\t */\n\tAcceptLanguage: \"accept-language\",\n\n\t/**\n\t * Accept-Encoding.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding\n\t */\n\tAcceptEncoding: \"accept-encoding\",\n\n\t/**\n\t * Authorization.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization\n\t */\n\tAuthorization: \"authorization\",\n\n\t/**\n\t * Cookie.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie\n\t */\n\tCookie: \"cookie\",\n\n\t/**\n\t * Set Cookie.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie\n\t */\n\tSetCookie: \"set-cookie\",\n\n\t/**\n\t * Location\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location\n\t */\n\tLocation: \"location\",\n\n\t/**\n\t * Link\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link\n\t */\n\tLink: \"link\",\n\n\t/**\n\t * User-Agent\n\t * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent\n\t */\n\tUserAgent: \"user-agent\"\n} as const;\n\n/**\n * Common http header types.\n */\nexport type HeaderTypes = (typeof HeaderTypes)[keyof typeof HeaderTypes];\n"]}
|
|
@@ -4,36 +4,69 @@
|
|
|
4
4
|
export declare const HeaderTypes: {
|
|
5
5
|
/**
|
|
6
6
|
* Content Type.
|
|
7
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
7
8
|
*/
|
|
8
9
|
readonly ContentType: "content-type";
|
|
9
10
|
/**
|
|
10
11
|
* Content Length.
|
|
12
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
11
13
|
*/
|
|
12
14
|
readonly ContentLength: "content-length";
|
|
13
15
|
/**
|
|
14
16
|
* Content Disposition.
|
|
17
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
15
18
|
*/
|
|
16
19
|
readonly ContentDisposition: "content-disposition";
|
|
20
|
+
/**
|
|
21
|
+
* Content Encoding.
|
|
22
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
23
|
+
*/
|
|
24
|
+
readonly ContentEncoding: "content-encoding";
|
|
17
25
|
/**
|
|
18
26
|
* Accept.
|
|
27
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
19
28
|
*/
|
|
20
29
|
readonly Accept: "accept";
|
|
30
|
+
/**
|
|
31
|
+
* Accept-Language.
|
|
32
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language
|
|
33
|
+
*/
|
|
34
|
+
readonly AcceptLanguage: "accept-language";
|
|
35
|
+
/**
|
|
36
|
+
* Accept-Encoding.
|
|
37
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
|
|
38
|
+
*/
|
|
39
|
+
readonly AcceptEncoding: "accept-encoding";
|
|
21
40
|
/**
|
|
22
41
|
* Authorization.
|
|
42
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
23
43
|
*/
|
|
24
44
|
readonly Authorization: "authorization";
|
|
25
45
|
/**
|
|
26
46
|
* Cookie.
|
|
47
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
27
48
|
*/
|
|
28
49
|
readonly Cookie: "cookie";
|
|
29
50
|
/**
|
|
30
51
|
* Set Cookie.
|
|
52
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
31
53
|
*/
|
|
32
54
|
readonly SetCookie: "set-cookie";
|
|
33
55
|
/**
|
|
34
56
|
* Location
|
|
57
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
35
58
|
*/
|
|
36
59
|
readonly Location: "location";
|
|
60
|
+
/**
|
|
61
|
+
* Link
|
|
62
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
63
|
+
*/
|
|
64
|
+
readonly Link: "link";
|
|
65
|
+
/**
|
|
66
|
+
* User-Agent
|
|
67
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
|
68
|
+
*/
|
|
69
|
+
readonly UserAgent: "user-agent";
|
|
37
70
|
};
|
|
38
71
|
/**
|
|
39
72
|
* Common http header types.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @twin.org/web - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.11](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.10...web-v0.0.3-next.11) (2026-01-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add additional header types ([#222](https://github.com/twinfoundation/framework/issues/222)) ([05f01cf](https://github.com/twinfoundation/framework/commit/05f01cf34b7bcec561ee989f679281b1cacdf032))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/core bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
16
|
+
* @twin.org/crypto bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
17
|
+
* @twin.org/nameof bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/nameof-transformer bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
20
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
21
|
+
* @twin.org/validate-locales bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
22
|
+
|
|
3
23
|
## [0.0.3-next.10](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.9...web-v0.0.3-next.10) (2026-01-07)
|
|
4
24
|
|
|
5
25
|
|
|
@@ -12,44 +12,126 @@ Common http header types.
|
|
|
12
12
|
|
|
13
13
|
Content Type.
|
|
14
14
|
|
|
15
|
+
#### See
|
|
16
|
+
|
|
17
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
|
|
18
|
+
|
|
15
19
|
### ContentLength
|
|
16
20
|
|
|
17
21
|
> `readonly` **ContentLength**: `"content-length"` = `"content-length"`
|
|
18
22
|
|
|
19
23
|
Content Length.
|
|
20
24
|
|
|
25
|
+
#### See
|
|
26
|
+
|
|
27
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length
|
|
28
|
+
|
|
21
29
|
### ContentDisposition
|
|
22
30
|
|
|
23
31
|
> `readonly` **ContentDisposition**: `"content-disposition"` = `"content-disposition"`
|
|
24
32
|
|
|
25
33
|
Content Disposition.
|
|
26
34
|
|
|
35
|
+
#### See
|
|
36
|
+
|
|
37
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition
|
|
38
|
+
|
|
39
|
+
### ContentEncoding
|
|
40
|
+
|
|
41
|
+
> `readonly` **ContentEncoding**: `"content-encoding"` = `"content-encoding"`
|
|
42
|
+
|
|
43
|
+
Content Encoding.
|
|
44
|
+
|
|
45
|
+
#### See
|
|
46
|
+
|
|
47
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
48
|
+
|
|
27
49
|
### Accept
|
|
28
50
|
|
|
29
51
|
> `readonly` **Accept**: `"accept"` = `"accept"`
|
|
30
52
|
|
|
31
53
|
Accept.
|
|
32
54
|
|
|
55
|
+
#### See
|
|
56
|
+
|
|
57
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept
|
|
58
|
+
|
|
59
|
+
### AcceptLanguage
|
|
60
|
+
|
|
61
|
+
> `readonly` **AcceptLanguage**: `"accept-language"` = `"accept-language"`
|
|
62
|
+
|
|
63
|
+
Accept-Language.
|
|
64
|
+
|
|
65
|
+
#### See
|
|
66
|
+
|
|
67
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Language
|
|
68
|
+
|
|
69
|
+
### AcceptEncoding
|
|
70
|
+
|
|
71
|
+
> `readonly` **AcceptEncoding**: `"accept-encoding"` = `"accept-encoding"`
|
|
72
|
+
|
|
73
|
+
Accept-Encoding.
|
|
74
|
+
|
|
75
|
+
#### See
|
|
76
|
+
|
|
77
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
|
|
78
|
+
|
|
33
79
|
### Authorization
|
|
34
80
|
|
|
35
81
|
> `readonly` **Authorization**: `"authorization"` = `"authorization"`
|
|
36
82
|
|
|
37
83
|
Authorization.
|
|
38
84
|
|
|
85
|
+
#### See
|
|
86
|
+
|
|
87
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization
|
|
88
|
+
|
|
39
89
|
### Cookie
|
|
40
90
|
|
|
41
91
|
> `readonly` **Cookie**: `"cookie"` = `"cookie"`
|
|
42
92
|
|
|
43
93
|
Cookie.
|
|
44
94
|
|
|
95
|
+
#### See
|
|
96
|
+
|
|
97
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cookie
|
|
98
|
+
|
|
45
99
|
### SetCookie
|
|
46
100
|
|
|
47
101
|
> `readonly` **SetCookie**: `"set-cookie"` = `"set-cookie"`
|
|
48
102
|
|
|
49
103
|
Set Cookie.
|
|
50
104
|
|
|
105
|
+
#### See
|
|
106
|
+
|
|
107
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie
|
|
108
|
+
|
|
51
109
|
### Location
|
|
52
110
|
|
|
53
111
|
> `readonly` **Location**: `"location"` = `"location"`
|
|
54
112
|
|
|
55
113
|
Location
|
|
114
|
+
|
|
115
|
+
#### See
|
|
116
|
+
|
|
117
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location
|
|
118
|
+
|
|
119
|
+
### Link
|
|
120
|
+
|
|
121
|
+
> `readonly` **Link**: `"link"` = `"link"`
|
|
122
|
+
|
|
123
|
+
Link
|
|
124
|
+
|
|
125
|
+
#### See
|
|
126
|
+
|
|
127
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Link
|
|
128
|
+
|
|
129
|
+
### UserAgent
|
|
130
|
+
|
|
131
|
+
> `readonly` **UserAgent**: `"user-agent"` = `"user-agent"`
|
|
132
|
+
|
|
133
|
+
User-Agent
|
|
134
|
+
|
|
135
|
+
#### See
|
|
136
|
+
|
|
137
|
+
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/web",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.11",
|
|
4
4
|
"description": "Contains classes for use with web operations",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "0.0.3-next.
|
|
18
|
-
"@twin.org/crypto": "0.0.3-next.
|
|
19
|
-
"@twin.org/nameof": "0.0.3-next.
|
|
17
|
+
"@twin.org/core": "0.0.3-next.11",
|
|
18
|
+
"@twin.org/crypto": "0.0.3-next.11",
|
|
19
|
+
"@twin.org/nameof": "0.0.3-next.11",
|
|
20
20
|
"jose": "6.1.1"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/es/index.js",
|