Skip to content

Commit b95c5b2

Browse files
authored
fix: response headers should be Record (#5)
1 parent 2f4feb6 commit b95c5b2

File tree

7 files changed

+31
-32
lines changed

7 files changed

+31
-32
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ on:
77
pull_request:
88
branches: [ master ]
99

10-
workflow_dispatch: {}
11-
1210
jobs:
1311
Job:
1412
name: Node.js
15-
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
13+
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
1614
with:
1715
os: 'ubuntu-latest'
18-
version: '14, 16, 18'
16+
version: '14, 16, 18, 20'

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ on:
44
push:
55
branches: [ master ]
66

7-
workflow_dispatch: {}
8-
97
jobs:
108
release:
119
name: Node.js
12-
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
10+
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
1311
secrets:
1412
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1513
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,27 @@
66
### Bug Fixes
77

88
* GetStreamResult.stream should be alway return Readable instance ([#4](https://github.com/node-modules/oss-interface/issues/4)) ([a9b4413](https://github.com/node-modules/oss-interface/commit/a9b4413f88e73e5186f6107bfa2bfe990fb810c6))
9+
10+
---
11+
12+
13+
1.1.0 / 2022-12-08
14+
==================
15+
16+
**features**
17+
* [[`d301bce`](http://github.com/node-modules/oss-interface/commit/d301bce563b8c5342d9280fe75c25cc108acfa4b)] - feat: add asyncSignatureUrl typing (#3) (killa <<[email protected]>>)
18+
19+
1.0.1 / 2022-10-27
20+
==================
21+
22+
**fixes**
23+
* [[`ada810d`](http://github.com/node-modules/oss-interface/commit/ada810de575609343ca2e7484d4b0c53699dd175)] - 🐛 FIX: Remove namespace and export all (#2) (fengmk2 <<[email protected]>>)
24+
25+
1.0.0 / 2022-10-27
26+
==================
27+
28+
**features**
29+
* [[`d730c8d`](http://github.com/node-modules/oss-interface/commit/d730c8d37d77fac70e8022804fbadcf9b97fe3b3)] - 📦 NEW: Add d.ts and IObjectSimple Client define (#1) (fengmk2 <<[email protected]>>),fatal: No names found, cannot describe anything.
30+
31+
**others**
32+

History.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

index.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export interface NormalSuccessResponse {
3333
/** response status */
3434
status: number;
3535
/** response headers */
36-
/** todo the object in detail */
37-
headers: object;
36+
headers: Record<string, string>;
3837
/** response size */
3938
size: number;
4039
/** request total use time (ms) */

index.test-d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ expectType<Promise<GetObjectResult>>(simpleClient.get('foo'));
6969
const result = await simpleClient.getStream('foo');
7070
expectType<Readable>(result.stream);
7171
expectType<number>(result.res.status);
72+
expectType<string>(result.res.headers.etag);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/node-modules/oss-interface#readme",
2828
"devDependencies": {
29-
"@types/node": "^18.11.7",
30-
"tsd": "^0.24.1"
29+
"@types/node": "^20.3.1",
30+
"tsd": "^0.28.1"
3131
}
3232
}

0 commit comments

Comments
 (0)