typed-http-headers 1.0.14 → 1.0.17
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/CHANGELOG.md +26 -0
- package/index.js.map +1 -0
- package/lib/request/non-standard.js.map +1 -0
- package/lib/request/standard.js.map +1 -0
- package/lib/request.js.map +1 -0
- package/lib/response/non-standard.js.map +1 -0
- package/lib/response/standard.js.map +1 -0
- package/lib/response.js.map +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.17](https://github.com/bluelovers/ws-ts-type/compare/typed-http-headers@1.0.15...typed-http-headers@1.0.17) (2026-03-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🔖 Miscellaneous
|
|
11
|
+
|
|
12
|
+
* . ([ac97bcd](https://github.com/bluelovers/ws-ts-type/commit/ac97bcde04dc40f354b24e29052b6f04ad7f1687))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.0.16](https://github.com/bluelovers/ws-ts-type/compare/typed-http-headers@1.0.15...typed-http-headers@1.0.16) (2026-03-28)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package typed-http-headers
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## [1.0.15](https://github.com/bluelovers/ws-ts-type/compare/typed-http-headers@1.0.14...typed-http-headers@1.0.15) (2026-03-15)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package typed-http-headers
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
## [1.0.14](https://github.com/bluelovers/ws-ts-type/compare/typed-http-headers@1.0.13...typed-http-headers@1.0.14) (2026-03-07)
|
|
7
33
|
|
|
8
34
|
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG","sourcesContent":["/**\n * HTTP 請求與回應標頭類型定義\n * HTTP Request and Response Header type definitions\n *\n * 包含標準 HTTP 請求和回應標頭的類型定義\n * Contains type definitions for standard HTTP request and response headers\n *\n * @package\n */\n\nimport IRequestHeaders from './lib/request';\nimport IResponseHeaders from './lib/response';\nimport { ITSPartialRecord } from 'ts-type';\n\n/**\n * 請求標頭介面\n * Request headers interface\n */\nexport { IRequestHeaders, IResponseHeaders };\n\n/**\n * HTTP 標頭值類型\n * HTTP header value types\n *\n * 支援字串、數字、布林值或字串陣列\n * Supports string, number, boolean, or string array\n */\nexport type IHttpHeaderValues = string | number | boolean | string[];\n\n/**\n * 合併請求與回應標頭的完整標頭介面\n * Combined request and response headers interface\n */\nexport interface IHeaders extends IRequestHeaders, IResponseHeaders\n{\n\n}\n\n/**\n * 載入的標頭類型(可選鍵值)\n * Loaded headers type (optional key-value)\n *\n * @typeParam T - 標頭鍵名類型 / Header key type\n * @typeParam V - 標頭值類型 / Header value type\n */\nexport type ILazyHeaders<T extends string = string, V = IHttpHeaderValues> = ITSPartialRecord<T, V>;\n\nexport default IHeaders;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-standard.js","sourceRoot":"","sources":["non-standard.ts"],"names":[],"mappings":"","sourcesContent":["\nexport interface ICommonNonStandardRequestFields\n{\n\t'Upgrade-Insecure-Requests'?: string,\n\t'X-Requested-With'?: string,\n\t'DNT'?: string,\n\t'X-Forwarded-For'?: string,\n\t'X-Forwarded-Host'?: string,\n\t'X-Forwarded-Proto'?: string,\n\t'Front-End-Https'?: string,\n\t'X-Http-Method-Override'?: string,\n\t'X-ATT-DeviceId'?: string,\n\t'X-Wap-Profile'?: string,\n\t'Proxy-Connection'?: string,\n\t'X-UIDH'?: string,\n\t'X-Csrf-Token'?: string,\n\t'X-Request-ID'?: string,\n\n\t'X-Correlation-ID'?: string,\n\t'Save-Data'?: string,\n}\n\nexport default ICommonNonStandardRequestFields;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.js","sourceRoot":"","sources":["standard.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG","sourcesContent":["/**\n * 標準 HTTP 請求標頭欄位定義\n * Standard HTTP Request Header Fields Definition\n *\n * 參考 RFC 7231 定義的 HTTP 請求標頭\n * Reference RFC 7231 for HTTP request header definitions\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers\n */\n\nexport interface IStandardRequestFields\n{\n\t'A-IM'?: string,\n\t'Accept'?: string,\n\t'Accept-Charset'?: string,\n\t'Accept-Encoding'?: string,\n\t'Accept-Language'?: string,\n\t'Accept-Datetime'?: string,\n\t'Access-Control-Request-Method'?: string,\n\t'Access-Control-Request-Headers'?: string,\n\t'Authorization'?: string,\n\t'Cache-Control'?: string,\n\t'Connection'?: string,\n\t'Content-Length'?: string,\n\t'Content-MD5'?: string,\n\t'Content-Type'?: string,\n\t'Cookie'?: string,\n\t'Date'?: string,\n\t'Expect'?: string,\n\t'Forwarded'?: string,\n\t'From'?: string,\n\t'Host'?: string,\n\t'HTTP2-Settings'?: string,\n\t'If-Match'?: string,\n\t'If-Modified-Since'?: string,\n\t'If-None-Match'?: string,\n\t'If-Range'?: string,\n\t'If-Unmodified-Since'?: string,\n\t'Max-Forwards'?: string,\n\t'Origin'?: string,\n\t'Pragma'?: string,\n\t'Proxy-Authorization'?: string,\n\t'Range'?: string,\n\t'Referer'?: string,\n\t'TE'?: string,\n\t'User-Agent'?: string,\n\t'Upgrade'?: string,\n\t'Via'?: string,\n\t'Warning'?: string,\n}\n\nexport default IStandardRequestFields;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["request.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Created by user on 2019/6/9.\n */\nimport ICommonNonStandardRequestFields from './request/non-standard';\nimport IStandardRequestFields from './request/standard';\n\nexport interface IRequestHeaders extends IStandardRequestFields, ICommonNonStandardRequestFields\n{\n\n}\n\nexport default IRequestHeaders;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-standard.js","sourceRoot":"","sources":["non-standard.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Created by user on 2019/6/9.\n */\n\nexport interface ICommonNonStandardResponseFields\n{\n\t'Content-Security-Policy,'?: string,\n\t'X-Content-Security-Policy,'?: string,\n\t'X-WebKit-CSP'?: string,\n\t'Refresh'?: string,\n\t'Status'?: string,\n\t'Timing-Allow-Origin'?: string,\n\t'X-Content-Duration'?: string,\n\t'X-Content-Type-Options'?: string,\n\t'X-Powered-By'?: string,\n\t'X-Request-ID,'?: string,\n\t'X-Correlation-ID'?: string,\n\t'X-UA-Compatible'?: string,\n\t'X-XSS-Protection'?: string,\n}\n\nexport default ICommonNonStandardResponseFields;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.js","sourceRoot":"","sources":["standard.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG","sourcesContent":["/**\n * 標準 HTTP 回應標頭欄位定義\n * Standard HTTP Response Header Fields Definition\n *\n * 參考 RFC 7231 定義的 HTTP 回應標頭\n * Reference RFC 7231 for HTTP response header definitions\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers\n */\n\nexport interface IStandardResponseFields\n{\n\t'Access-Control-Allow-Origin'?: string,\n\t'Access-Control-Allow-Credentials'?: string,\n\t'Access-Control-Expose-Headers'?: string,\n\t'Access-Control-Max-Age'?: string,\n\t'Access-Control-Allow-Methods'?: string,\n\t'Access-Control-Allow-Headers'?: string,\n\t'Accept-Patch'?: string,\n\t'Accept-Ranges'?: string,\n\t'Age'?: string,\n\t'Allow'?: string,\n\t'Alt-Svc'?: string,\n\t'Cache-Control'?: string,\n\t'Connection'?: string,\n\t'Content-Disposition'?: string,\n\t'Content-Encoding'?: string,\n\t'Content-Language'?: string,\n\t'Content-Length'?: string,\n\t'Content-Location'?: string,\n\t'Content-MD5'?: string,\n\t'Content-Range'?: string,\n\t'Content-Type'?: string,\n\t'Date'?: string,\n\t'Delta-Base'?: string,\n\t'ETag'?: string,\n\t'Expires'?: string,\n\t'IM'?: string,\n\t'Last-Modified'?: string,\n\t'Link'?: string,\n\t'Location'?: string,\n\t'P3P'?: string,\n\t'Pragma'?: string,\n\t'Proxy-Authenticate'?: string,\n\t'Public-Key-Pins'?: string,\n\t'Retry-After'?: string,\n\t'Server'?: string,\n\t'Set-Cookie'?: string,\n\t'Strict-Transport-Security'?: string,\n\t'Trailer'?: string,\n\t'Transfer-Encoding'?: string,\n\t'Tk'?: string,\n\t'Upgrade'?: string,\n\t'Vary'?: string,\n\t'Via'?: string,\n\t'Warning'?: string,\n\t'WWW-Authenticate'?: string,\n\t'X-Frame-Options'?: string,\n}\n\nexport default IStandardResponseFields;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["response.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Created by user on 2019/6/9.\n */\nimport ICommonNonStandardResponseFields from './response/non-standard';\nimport IStandardResponseFields from './response/standard';\n\nexport interface IResponseHeaders extends IStandardResponseFields, ICommonNonStandardResponseFields\n{\n\n}\n\nexport default IResponseHeaders;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typed-http-headers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "標準 HTTP 請求與回應標頭的 TypeScript 類型定義 | TypeScript type definitions for standard HTTP request and response headers",
|
|
5
5
|
"homepage": "https://github.com/bluelovers/ws-ts-type/tree/master/packages/ts-http-header#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"tsc:showConfig": "ynpx get-current-tsconfig -p"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"ts-type": "^3.0.
|
|
34
|
+
"ts-type": "^3.0.12"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "68144dcde64f5288df56b29573071d1583bc7087"
|
|
37
37
|
}
|