Skip to content

Commit

Permalink
add ts test case
Browse files Browse the repository at this point in the history
  • Loading branch information
peze committed Feb 18, 2025
1 parent d3bc6f1 commit 1c68728
Show file tree
Hide file tree
Showing 4 changed files with 617 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]
node-version: [14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
6 changes: 3 additions & 3 deletions ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"devDependencies": {
"@types/mocha": "^5.2.7",
"mocha": "^6.2.0",
"@types/node": "^18.0.0",
"@types/node": "^12.12.26",
"nyc": "^14.1.1",
"source-map-support": "^0.5.16",
"ts-node": "^10.0.0",
"typescript": "^5.6.0"
"ts-node": "^8.6.2",
"typescript": "^3.7.5"
},
"dependencies": {
"@alicloud/gateway-pop": "0.0.6",
Expand Down
3 changes: 2 additions & 1 deletion ts/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class SSEResponse extends $dara.Model {
}
}

export class AlibabaCloudError extends $dara.BaseError {
export class AlibabaCloudError extends $dara.ResponseError {
statusCode?: number;
code: string;
message: string;
Expand Down Expand Up @@ -1012,6 +1012,7 @@ export default class Client {

request_.query = {
...globalQueries,
...extendsQueries,
...request.query,
};
// endpoint is setted in product client
Expand Down
Loading

0 comments on commit 1c68728

Please sign in to comment.