typed-http-headers 1.0.5 → 1.0.8
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 +28 -0
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/index.js.map +1 -0
- package/lib/request/non-standard.js +1 -1
- package/lib/request/non-standard.js.map +1 -0
- package/lib/request/standard.js +1 -1
- package/lib/request/standard.js.map +1 -0
- package/lib/request.js +1 -1
- package/lib/request.js.map +1 -0
- package/lib/response/non-standard.js +1 -1
- package/lib/response/non-standard.js.map +1 -0
- package/lib/response/standard.js +1 -1
- package/lib/response/standard.js.map +1 -0
- package/lib/response.js +1 -1
- package/lib/response.js.map +1 -0
- package/package.json +14 -8
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.0.8](https://github.com/bluelovers/ws-ts-type/compare/typed-http-headers@1.0.7...typed-http-headers@1.0.8) (2022-10-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### 🛠 Build System
|
|
11
|
+
|
|
12
|
+
* update typescript ([eb59d89](https://github.com/bluelovers/ws-ts-type/commit/eb59d897c2888c7a45406ffcad4b9033608b0b66))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 📌 Dependencies
|
|
16
|
+
|
|
17
|
+
* update deps ([ab5f3e4](https://github.com/bluelovers/ws-ts-type/commit/ab5f3e48da1f10ddd4445ba6dda9a0a68c5f656f))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🔖 Miscellaneous
|
|
21
|
+
|
|
22
|
+
* . ([9219017](https://github.com/bluelovers/ws-ts-type/commit/92190178fcf30f881c1d0d36fb141a3394ab3b38))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [1.0.7](https://github.com/bluelovers/ws-ts-type/compare/typed-http-headers@1.0.6...typed-http-headers@1.0.7) (2020-06-01)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package typed-http-headers
|
package/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import IRequestHeaders from './lib/request';
|
|
|
5
5
|
import IResponseHeaders from './lib/response';
|
|
6
6
|
import { ITSPartialRecord } from 'ts-type';
|
|
7
7
|
export { IRequestHeaders, IResponseHeaders };
|
|
8
|
-
export
|
|
8
|
+
export type IHttpHeaderValues = string | number | boolean | string[];
|
|
9
9
|
export interface IHeaders extends IRequestHeaders, IResponseHeaders {
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type ILazyHeaders<T extends string = string, V = IHttpHeaderValues> = ITSPartialRecord<T, V>;
|
|
12
12
|
export default IHeaders;
|
package/index.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Created by user on 2019/6/9.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Created by user on 2019/6/9.\n */\n\nimport IRequestHeaders from './lib/request';\nimport IResponseHeaders from './lib/response';\nimport { ITSPartialRecord } from 'ts-type';\n\nexport { IRequestHeaders, IResponseHeaders };\n\nexport type IHttpHeaderValues = string | number | boolean | string[];\n\nexport interface IHeaders extends IRequestHeaders, IResponseHeaders\n{\n\n}\n\nexport type ILazyHeaders<T extends string = string, V = IHttpHeaderValues> = ITSPartialRecord<T, V>;\n\nexport default IHeaders;\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=non-standard.js.map
|
|
@@ -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"]}
|
package/lib/request/standard.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=standard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.js","sourceRoot":"","sources":["standard.ts"],"names":[],"mappings":"","sourcesContent":["\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"]}
|
package/lib/request.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -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"]}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Created by user on 2019/6/9.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=non-standard.js.map
|
|
@@ -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"]}
|
package/lib/response/standard.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Created by user on 2019/6/9.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=standard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.js","sourceRoot":"","sources":["standard.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Created by user on 2019/6/9.\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"]}
|
package/lib/response.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=response.js.map
|
|
@@ -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,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typed-http-headers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "typed http headers",
|
|
5
|
-
"homepage": "https://github.com/bluelovers/ws-ts-type#readme",
|
|
5
|
+
"homepage": "https://github.com/bluelovers/ws-ts-type/tree/master/packages/ts-http-header#readme",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/bluelovers/ws-ts-type/issues"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/bluelovers/ws-ts-type.git"
|
|
11
|
+
"url": "git+https://github.com/bluelovers/ws-ts-type.git",
|
|
12
|
+
"directory": "packages/ts-http-header"
|
|
12
13
|
},
|
|
13
14
|
"license": "ISC",
|
|
14
15
|
"author": "",
|
|
@@ -16,11 +17,16 @@
|
|
|
16
17
|
"scripts": {
|
|
17
18
|
"coverage": "npx nyc npm run test",
|
|
18
19
|
"lint": "npx eslint **/*.ts",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
"test": "echo \"Error: no test specified\"",
|
|
21
|
+
"test:jest": "jest --passWithNoTests",
|
|
22
|
+
"test:jest:snapshot": "yarn run test:jest -- -u",
|
|
23
|
+
"test:snapshot": "yarn run test -- -u",
|
|
24
|
+
"test:tsd": "ynpx tsd",
|
|
25
|
+
"preversion": "yarn run test",
|
|
21
26
|
"prepublishOnly": "npm run ncu && npm run sort-package-json",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
27
|
+
"postpublish_": "git commit -m \"publish new version\" .",
|
|
28
|
+
"ncu": "npx yarn-tool ncu -u",
|
|
29
|
+
"sort-package-json": "npx yarn-tool sort"
|
|
24
30
|
},
|
|
25
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "fa34eea119b9bcbb363061ddffcfe9d78c2d0ddd"
|
|
26
32
|
}
|