typed-http-headers 1.0.7 → 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 +20 -0
- package/index.d.ts +2 -2
- package/package.json +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.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
|
+
|
|
6
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)
|
|
7
27
|
|
|
8
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/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
|
-
"test": "echo \"Error: no test specified\"
|
|
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",
|
|
20
26
|
"prepublishOnly": "npm run ncu && npm run sort-package-json",
|
|
21
27
|
"postpublish_": "git commit -m \"publish new version\" .",
|
|
22
28
|
"ncu": "npx yarn-tool ncu -u",
|
|
23
29
|
"sort-package-json": "npx yarn-tool sort"
|
|
24
30
|
},
|
|
25
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "fa34eea119b9bcbb363061ddffcfe9d78c2d0ddd"
|
|
26
32
|
}
|