@twin.org/web 0.0.3-next.13 → 0.0.3-next.14
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/es/models/headerTypes.js +95 -0
- package/dist/es/models/headerTypes.js.map +1 -1
- package/dist/es/models/httpMethod.js +36 -0
- package/dist/es/models/httpMethod.js.map +1 -1
- package/dist/es/models/httpStatusCode.js +63 -0
- package/dist/es/models/httpStatusCode.js.map +1 -1
- package/dist/es/models/mimeTypes.js +170 -1
- package/dist/es/models/mimeTypes.js.map +1 -1
- package/dist/es/utils/mimeTypeHelper.js +42 -1
- package/dist/es/utils/mimeTypeHelper.js.map +1 -1
- package/dist/types/models/headerTypes.d.ts +95 -0
- package/dist/types/models/httpMethod.d.ts +36 -0
- package/dist/types/models/httpStatusCode.d.ts +63 -0
- package/dist/types/models/mimeTypes.d.ts +169 -0
- package/docs/changelog.md +20 -0
- package/docs/reference/variables/HeaderTypes.md +190 -0
- package/docs/reference/variables/HttpMethod.md +54 -0
- package/docs/reference/variables/HttpStatusCode.md +252 -0
- package/docs/reference/variables/MimeTypes.md +256 -0
- package/package.json +4 -4
|
@@ -12,42 +12,204 @@ Common mime types.
|
|
|
12
12
|
|
|
13
13
|
Plaint Text - text/plain
|
|
14
14
|
|
|
15
|
+
### EventStream
|
|
16
|
+
|
|
17
|
+
> `readonly` **EventStream**: `"text/event-stream"` = `"text/event-stream"`
|
|
18
|
+
|
|
19
|
+
Event Stream - text/event-stream
|
|
20
|
+
|
|
15
21
|
### Html
|
|
16
22
|
|
|
17
23
|
> `readonly` **Html**: `"text/html"` = `"text/html"`
|
|
18
24
|
|
|
19
25
|
HTML - text/html
|
|
20
26
|
|
|
27
|
+
### Css
|
|
28
|
+
|
|
29
|
+
> `readonly` **Css**: `"text/css"` = `"text/css"`
|
|
30
|
+
|
|
31
|
+
CSS - text/css
|
|
32
|
+
|
|
21
33
|
### Javascript
|
|
22
34
|
|
|
23
35
|
> `readonly` **Javascript**: `"text/javascript"` = `"text/javascript"`
|
|
24
36
|
|
|
25
37
|
Javascript - text/javascript
|
|
26
38
|
|
|
39
|
+
### Markdown
|
|
40
|
+
|
|
41
|
+
> `readonly` **Markdown**: `"text/markdown"` = `"text/markdown"`
|
|
42
|
+
|
|
43
|
+
Markdown - text/markdown
|
|
44
|
+
|
|
27
45
|
### Json
|
|
28
46
|
|
|
29
47
|
> `readonly` **Json**: `"application/json"` = `"application/json"`
|
|
30
48
|
|
|
31
49
|
JSON - application/json
|
|
32
50
|
|
|
51
|
+
### ProblemJson
|
|
52
|
+
|
|
53
|
+
> `readonly` **ProblemJson**: `"application/problem+json"` = `"application/problem+json"`
|
|
54
|
+
|
|
55
|
+
Problem JSON - application/problem+json
|
|
56
|
+
|
|
33
57
|
### JsonLd
|
|
34
58
|
|
|
35
59
|
> `readonly` **JsonLd**: `"application/ld+json"` = `"application/ld+json"`
|
|
36
60
|
|
|
37
61
|
JSON-LD - application/ld+json
|
|
38
62
|
|
|
63
|
+
### ActivityStreams
|
|
64
|
+
|
|
65
|
+
> `readonly` **ActivityStreams**: `"application/activity+json"` = `"application/activity+json"`
|
|
66
|
+
|
|
67
|
+
Activity Streams - application/activity+json
|
|
68
|
+
|
|
69
|
+
### JrdJson
|
|
70
|
+
|
|
71
|
+
> `readonly` **JrdJson**: `"application/jrd+json"` = `"application/jrd+json"`
|
|
72
|
+
|
|
73
|
+
WebFinger JRD - application/jrd+json
|
|
74
|
+
|
|
39
75
|
### Jwt
|
|
40
76
|
|
|
41
77
|
> `readonly` **Jwt**: `"application/jwt"` = `"application/jwt"`
|
|
42
78
|
|
|
43
79
|
JWT - application/jwt
|
|
44
80
|
|
|
81
|
+
### AccessTokenJwt
|
|
82
|
+
|
|
83
|
+
> `readonly` **AccessTokenJwt**: `"application/at+jwt"` = `"application/at+jwt"`
|
|
84
|
+
|
|
85
|
+
Access Token JWT - application/at+jwt
|
|
86
|
+
|
|
87
|
+
### Jose
|
|
88
|
+
|
|
89
|
+
> `readonly` **Jose**: `"application/jose"` = `"application/jose"`
|
|
90
|
+
|
|
91
|
+
JOSE (Compact Serialization) - application/jose
|
|
92
|
+
|
|
93
|
+
### JoseJson
|
|
94
|
+
|
|
95
|
+
> `readonly` **JoseJson**: `"application/jose+json"` = `"application/jose+json"`
|
|
96
|
+
|
|
97
|
+
JOSE (JSON Serialization) - application/jose+json
|
|
98
|
+
|
|
99
|
+
### JwkJson
|
|
100
|
+
|
|
101
|
+
> `readonly` **JwkJson**: `"application/jwk+json"` = `"application/jwk+json"`
|
|
102
|
+
|
|
103
|
+
JSON Web Key (JWK) - application/jwk+json
|
|
104
|
+
|
|
105
|
+
### JwkSetJson
|
|
106
|
+
|
|
107
|
+
> `readonly` **JwkSetJson**: `"application/jwk-set+json"` = `"application/jwk-set+json"`
|
|
108
|
+
|
|
109
|
+
JSON Web Key Set (JWKS) - application/jwk-set+json
|
|
110
|
+
|
|
111
|
+
### DidJson
|
|
112
|
+
|
|
113
|
+
> `readonly` **DidJson**: `"application/did+json"` = `"application/did+json"`
|
|
114
|
+
|
|
115
|
+
Decentralized Identifier (DID) - application/did+json
|
|
116
|
+
|
|
117
|
+
### DidLdJson
|
|
118
|
+
|
|
119
|
+
> `readonly` **DidLdJson**: `"application/did+ld+json"` = `"application/did+ld+json"`
|
|
120
|
+
|
|
121
|
+
Decentralized Identifier (DID) (JSON-LD) - application/did+ld+json
|
|
122
|
+
|
|
123
|
+
### VerifiableCredentialLdJson
|
|
124
|
+
|
|
125
|
+
> `readonly` **VerifiableCredentialLdJson**: `"application/vc+ld+json"` = `"application/vc+ld+json"`
|
|
126
|
+
|
|
127
|
+
Verifiable Credential (JSON-LD) - application/vc+ld+json
|
|
128
|
+
|
|
129
|
+
### VerifiablePresentationLdJson
|
|
130
|
+
|
|
131
|
+
> `readonly` **VerifiablePresentationLdJson**: `"application/vp+ld+json"` = `"application/vp+ld+json"`
|
|
132
|
+
|
|
133
|
+
Verifiable Presentation (JSON-LD) - application/vp+ld+json
|
|
134
|
+
|
|
135
|
+
### VerifiableCredentialJwt
|
|
136
|
+
|
|
137
|
+
> `readonly` **VerifiableCredentialJwt**: `"application/vc+jwt"` = `"application/vc+jwt"`
|
|
138
|
+
|
|
139
|
+
Verifiable Credential (JWT) - application/vc+jwt
|
|
140
|
+
|
|
141
|
+
### VerifiablePresentationJwt
|
|
142
|
+
|
|
143
|
+
> `readonly` **VerifiablePresentationJwt**: `"application/vp+jwt"` = `"application/vp+jwt"`
|
|
144
|
+
|
|
145
|
+
Verifiable Presentation (JWT) - application/vp+jwt
|
|
146
|
+
|
|
147
|
+
### JsonPatch
|
|
148
|
+
|
|
149
|
+
> `readonly` **JsonPatch**: `"application/json-patch+json"` = `"application/json-patch+json"`
|
|
150
|
+
|
|
151
|
+
JSON Patch - application/json-patch+json
|
|
152
|
+
|
|
153
|
+
### MergePatch
|
|
154
|
+
|
|
155
|
+
> `readonly` **MergePatch**: `"application/merge-patch+json"` = `"application/merge-patch+json"`
|
|
156
|
+
|
|
157
|
+
JSON Merge Patch - application/merge-patch+json
|
|
158
|
+
|
|
159
|
+
### Cwt
|
|
160
|
+
|
|
161
|
+
> `readonly` **Cwt**: `"application/cwt"` = `"application/cwt"`
|
|
162
|
+
|
|
163
|
+
CBOR Web Token (CWT) - application/cwt
|
|
164
|
+
|
|
165
|
+
### Cose
|
|
166
|
+
|
|
167
|
+
> `readonly` **Cose**: `"application/cose"` = `"application/cose"`
|
|
168
|
+
|
|
169
|
+
COSE - application/cose
|
|
170
|
+
|
|
171
|
+
### CoseKey
|
|
172
|
+
|
|
173
|
+
> `readonly` **CoseKey**: `"application/cose-key"` = `"application/cose-key"`
|
|
174
|
+
|
|
175
|
+
COSE Key - application/cose-key
|
|
176
|
+
|
|
177
|
+
### CoseKeySet
|
|
178
|
+
|
|
179
|
+
> `readonly` **CoseKeySet**: `"application/cose-key-set"` = `"application/cose-key-set"`
|
|
180
|
+
|
|
181
|
+
COSE Key Set - application/cose-key-set
|
|
182
|
+
|
|
183
|
+
### FormUrlEncoded
|
|
184
|
+
|
|
185
|
+
> `readonly` **FormUrlEncoded**: `"application/x-www-form-urlencoded"` = `"application/x-www-form-urlencoded"`
|
|
186
|
+
|
|
187
|
+
Form URL Encoded - application/x-www-form-urlencoded
|
|
188
|
+
|
|
189
|
+
### MultipartFormData
|
|
190
|
+
|
|
191
|
+
> `readonly` **MultipartFormData**: `"multipart/form-data"` = `"multipart/form-data"`
|
|
192
|
+
|
|
193
|
+
Multipart Form Data - multipart/form-data
|
|
194
|
+
|
|
45
195
|
### Xml
|
|
46
196
|
|
|
47
197
|
> `readonly` **Xml**: `"application/xml"` = `"application/xml"`
|
|
48
198
|
|
|
49
199
|
XML - application/xml
|
|
50
200
|
|
|
201
|
+
### Wasm
|
|
202
|
+
|
|
203
|
+
> `readonly` **Wasm**: `"application/wasm"` = `"application/wasm"`
|
|
204
|
+
|
|
205
|
+
WASM - application/wasm
|
|
206
|
+
|
|
207
|
+
### WebManifest
|
|
208
|
+
|
|
209
|
+
> `readonly` **WebManifest**: `"application/manifest+json"` = `"application/manifest+json"`
|
|
210
|
+
|
|
211
|
+
Web App Manifest - application/manifest+json
|
|
212
|
+
|
|
51
213
|
### OctetStream
|
|
52
214
|
|
|
53
215
|
> `readonly` **OctetStream**: `"application/octet-stream"` = `"application/octet-stream"`
|
|
@@ -120,12 +282,90 @@ Image Tiff - image/tiff
|
|
|
120
282
|
|
|
121
283
|
Image SVG - image/svg+xml
|
|
122
284
|
|
|
285
|
+
### Ico
|
|
286
|
+
|
|
287
|
+
> `readonly` **Ico**: `"image/x-icon"` = `"image/x-icon"`
|
|
288
|
+
|
|
289
|
+
Image ICO - image/x-icon
|
|
290
|
+
|
|
123
291
|
### WebP
|
|
124
292
|
|
|
125
293
|
> `readonly` **WebP**: `"image/webp"` = `"image/webp"`
|
|
126
294
|
|
|
127
295
|
Image WEBP - image/webp
|
|
128
296
|
|
|
297
|
+
### Avif
|
|
298
|
+
|
|
299
|
+
> `readonly` **Avif**: `"image/avif"` = `"image/avif"`
|
|
300
|
+
|
|
301
|
+
Image AVIF - image/avif
|
|
302
|
+
|
|
303
|
+
### Apng
|
|
304
|
+
|
|
305
|
+
> `readonly` **Apng**: `"image/apng"` = `"image/apng"`
|
|
306
|
+
|
|
307
|
+
Image APNG - image/apng
|
|
308
|
+
|
|
309
|
+
### Woff
|
|
310
|
+
|
|
311
|
+
> `readonly` **Woff**: `"font/woff"` = `"font/woff"`
|
|
312
|
+
|
|
313
|
+
Font WOFF - font/woff
|
|
314
|
+
|
|
315
|
+
### Woff2
|
|
316
|
+
|
|
317
|
+
> `readonly` **Woff2**: `"font/woff2"` = `"font/woff2"`
|
|
318
|
+
|
|
319
|
+
Font WOFF2 - font/woff2
|
|
320
|
+
|
|
321
|
+
### Ttf
|
|
322
|
+
|
|
323
|
+
> `readonly` **Ttf**: `"font/ttf"` = `"font/ttf"`
|
|
324
|
+
|
|
325
|
+
Font TTF - font/ttf
|
|
326
|
+
|
|
327
|
+
### Otf
|
|
328
|
+
|
|
329
|
+
> `readonly` **Otf**: `"font/otf"` = `"font/otf"`
|
|
330
|
+
|
|
331
|
+
Font OTF - font/otf
|
|
332
|
+
|
|
333
|
+
### Mp3
|
|
334
|
+
|
|
335
|
+
> `readonly` **Mp3**: `"audio/mpeg"` = `"audio/mpeg"`
|
|
336
|
+
|
|
337
|
+
Audio MP3 - audio/mpeg
|
|
338
|
+
|
|
339
|
+
### OggAudio
|
|
340
|
+
|
|
341
|
+
> `readonly` **OggAudio**: `"audio/ogg"` = `"audio/ogg"`
|
|
342
|
+
|
|
343
|
+
Audio OGG - audio/ogg
|
|
344
|
+
|
|
345
|
+
### Wav
|
|
346
|
+
|
|
347
|
+
> `readonly` **Wav**: `"audio/wav"` = `"audio/wav"`
|
|
348
|
+
|
|
349
|
+
Audio WAV - audio/wav
|
|
350
|
+
|
|
351
|
+
### WebmAudio
|
|
352
|
+
|
|
353
|
+
> `readonly` **WebmAudio**: `"audio/webm"` = `"audio/webm"`
|
|
354
|
+
|
|
355
|
+
Audio WEBM - audio/webm
|
|
356
|
+
|
|
357
|
+
### Aac
|
|
358
|
+
|
|
359
|
+
> `readonly` **Aac**: `"audio/aac"` = `"audio/aac"`
|
|
360
|
+
|
|
361
|
+
Audio AAC - audio/aac
|
|
362
|
+
|
|
363
|
+
### Mp4Audio
|
|
364
|
+
|
|
365
|
+
> `readonly` **Mp4Audio**: `"audio/mp4"` = `"audio/mp4"`
|
|
366
|
+
|
|
367
|
+
Audio MP4 - audio/mp4
|
|
368
|
+
|
|
129
369
|
### Mp4
|
|
130
370
|
|
|
131
371
|
> `readonly` **Mp4**: `"video/mp4"` = `"video/mp4"`
|
|
@@ -143,3 +383,19 @@ Audio/Video MPEG - video/mpeg
|
|
|
143
383
|
> `readonly` **Webm**: `"video/webm"` = `"video/webm"`
|
|
144
384
|
|
|
145
385
|
Video WEBM - video/webm
|
|
386
|
+
|
|
387
|
+
### OggVideo
|
|
388
|
+
|
|
389
|
+
> `readonly` **OggVideo**: `"video/ogg"` = `"video/ogg"`
|
|
390
|
+
|
|
391
|
+
Video OGG - video/ogg
|
|
392
|
+
|
|
393
|
+
### Quicktime
|
|
394
|
+
|
|
395
|
+
> `readonly` **Quicktime**: `"video/quicktime"` = `"video/quicktime"`
|
|
396
|
+
|
|
397
|
+
Video QuickTime - video/quicktime
|
|
398
|
+
|
|
399
|
+
## See
|
|
400
|
+
|
|
401
|
+
https://www.iana.org/assignments/media-types/media-types.xhtml
|
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.14",
|
|
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.14",
|
|
18
|
+
"@twin.org/crypto": "0.0.3-next.14",
|
|
19
|
+
"@twin.org/nameof": "0.0.3-next.14",
|
|
20
20
|
"jose": "6.1.1"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/es/index.js",
|