@basmilius/http-client 2.28.0 → 2.28.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.
Files changed (2) hide show
  1. package/dist/type.d.ts +76 -0
  2. package/package.json +3 -3
package/dist/type.d.ts ADDED
@@ -0,0 +1,76 @@
1
+ export type HttpMethod =
2
+ | 'connect'
3
+ | 'delete'
4
+ | 'get'
5
+ | 'head'
6
+ | 'options'
7
+ | 'patch'
8
+ | 'post'
9
+ | 'put'
10
+ | 'trace';
11
+
12
+ export type HttpStatusCode =
13
+ | 100 // continue
14
+ | 101 // switching protocols
15
+ | 102 // processing
16
+ | 200 // ok
17
+ | 201 // created
18
+ | 202 // accepted
19
+ | 203 // non authoritative information
20
+ | 204 // no content
21
+ | 205 // reset content
22
+ | 206 // partial content
23
+ | 207 // multi status
24
+ | 208 // already reported
25
+ | 226 // im used
26
+ | 300 // multiple choices
27
+ | 301 // moved permanently
28
+ | 302 // found
29
+ | 303 // see other
30
+ | 304 // not modified
31
+ | 305 // use proxy
32
+ | 306 // switch proxy
33
+ | 307 // temporary redirect
34
+ | 308 // permanent redirect
35
+ | 400 // bad request
36
+ | 401 // unauthorized
37
+ | 402 // payment required
38
+ | 403 // forbidden
39
+ | 404 // not found
40
+ | 405 // method not allowed
41
+ | 406 // not acceptable
42
+ | 407 // proxy authentication required
43
+ | 408 // request timeout
44
+ | 409 // conflict
45
+ | 410 // gone
46
+ | 411 // length required
47
+ | 412 // precondition failed
48
+ | 413 // payload too large
49
+ | 414 // uri too long
50
+ | 415 // unsupported media type
51
+ | 416 // range not satisfiable
52
+ | 417 // expectation failed
53
+ | 418 // i am a teapot
54
+ | 421 // misdirected request
55
+ | 422 // unprocessable entity
56
+ | 423 // locked
57
+ | 424 // failed dependency
58
+ | 426 // upgrade required
59
+ | 428 // precondition required
60
+ | 429 // too many requests
61
+ | 431 // request header fields too large
62
+ | 451 // unavailable for legal reasons
63
+ | 500 // internal server error
64
+ | 501 // not implemented
65
+ | 502 // bad gateway
66
+ | 503 // service unavailable
67
+ | 504 // gateway timeout
68
+ | 505 // http version not supported
69
+ | 506 // variant also negotiates
70
+ | 507 // insufficient storage
71
+ | 508 // loop detected
72
+ | 510 // not extended
73
+ | 511 // network authentication required
74
+ ;
75
+
76
+ export type ForeignData = Record<string, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@basmilius/http-client",
3
3
  "description": "Http client for Vue projects.",
4
- "version": "2.28.0",
4
+ "version": "2.28.3",
5
5
  "license": "MIT",
6
6
  "funding": "https://github.com/sponsors/basmilius",
7
7
  "homepage": "https://github.com/basmilius/packages",
@@ -46,12 +46,12 @@
46
46
  },
47
47
  "sideEffects": false,
48
48
  "dependencies": {
49
- "@basmilius/utils": "2.28.0",
49
+ "@basmilius/utils": "2.28.3",
50
50
  "luxon": "^3.7.2",
51
51
  "vue": "^3.6.0-beta.6"
52
52
  },
53
53
  "devDependencies": {
54
- "@basmilius/tools": "2.28.0",
54
+ "@basmilius/tools": "2.28.3",
55
55
  "@types/luxon": "^3.7.1"
56
56
  }
57
57
  }