Skip to content

Commit

Permalink
impl Object list()
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 17, 2023
1 parent ec20297 commit f824392
Show file tree
Hide file tree
Showing 29 changed files with 1,251 additions and 542 deletions.
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"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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;
Expand Down
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
Expand Up @@ -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
Expand Down
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
Expand Up @@ -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) {
Expand Down
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.

13 changes: 0 additions & 13 deletions lib/common/utils/lowercaseKeyHeader.js

This file was deleted.

Loading

0 comments on commit f824392

Please sign in to comment.