Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor with typescript #12

Merged
merged 22 commits into from
Oct 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
impl Object list()
  • Loading branch information
fengmk2 committed Oct 5, 2023
commit ddd4bd5339728e91c164f2b9650311f9ca96a000
5 changes: 4 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "eslint-config-egg"
"extends": [
"eslint-config-egg/typescript",
"eslint-config-egg/lib/rules/enforce-node-prefix"
]
}
72 changes: 0 additions & 72 deletions .github/workflows/codeql.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.18.0, 14, 16, 18, 20]
node-version: [16, 18, 20]
os: [ubuntu-latest]

steps:
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -42,3 +42,6 @@ package-lock.json

es
.eslintcache

.tshy*/
dist/
1 change: 0 additions & 1 deletion lib/bucket.js
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@ const { formatTag } = require('../lib/common/utils/formatTag');

const proto = exports;


function toArray(obj) {
if (!obj) return [];
if (Array.isArray(obj)) return obj;
71 changes: 0 additions & 71 deletions lib/common/client/initOptions.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/common/object/signatureUrl.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ const { isIP } = require('../utils/isIP');
const proto = exports;

/**
* signatureUrl
* signatureUrl
* @deprecated will be deprecated in 7.x
* @param {String} name object name
* @param {Object} options options
176 changes: 0 additions & 176 deletions lib/common/signUtils.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/common/utils/checkBucketName.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion lib/common/utils/createRequest.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ function createRequest(params) {
date = +new Date() + this.options.amendTimeSkewed;
}
const headers = {
'x-oss-date': dateFormat(date, "UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),
'x-oss-date': dateFormat(new Date(), "UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),
};
headers['User-Agent'] = this.userAgent;
if (this.options.isRequestPay) {
10 changes: 0 additions & 10 deletions lib/common/utils/isIP.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/common/utils/lowercaseKeyHeader.d.ts

This file was deleted.

Loading