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

refactor: remove ObjectUplaoder and turn stream uploading #1227

Merged
merged 27 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6d72eea
refactor: remove ObjectUplaoder and turn stream uploading
trim21 Nov 3, 2023
4b4cc08
fix return type
trim21 Nov 3, 2023
b4d36bf
more method need rewrite
trim21 Nov 3, 2023
9fab78f
move to helper
trim21 Nov 3, 2023
3fae280
stream
trim21 Nov 3, 2023
2f82660
fix
trim21 Nov 16, 2023
2bdf152
Update helper.ts
trim21 Nov 16, 2023
d95de9c
Merge remote-tracking branch 'upstream/master' into object-upload
trim21 Nov 16, 2023
8b6bb8d
Merge remote-tracking branch 'upstream/master' into object-upload
trim21 Nov 18, 2023
4976388
Update client.ts
trim21 Nov 18, 2023
2f07472
merge upstream
trim21 Nov 18, 2023
0904826
Rewrite recursive function call to for loop with
trim21 Nov 18, 2023
8ec1e1d
Merge remote-tracking branch 'upstream/master' into object-upload
trim21 Nov 21, 2023
269318e
Refactor findUploadId method and remove unused
trim21 Nov 21, 2023
e6a3bbc
Update client.ts
trim21 Nov 21, 2023
88075bb
update
trim21 Nov 21, 2023
6daeba4
fix
trim21 Nov 21, 2023
55b3df6
fix
trim21 Nov 21, 2023
8cb3304
Merge branch 'master' into object-upload
trim21 Nov 21, 2023
3adee30
Merge remote-tracking branch 'upstream/master' into object-upload
trim21 Nov 22, 2023
57c9da7
Merge branch 'master' into object-upload
prakashsvmx Nov 22, 2023
cbf5e46
fix testing
trim21 Nov 22, 2023
227ae83
fix
trim21 Nov 22, 2023
9be682c
fix
trim21 Nov 22, 2023
0622b62
Fix type checking for filePath and fd in
trim21 Nov 24, 2023
7367963
Refactor getContentLength function to simplify
trim21 Nov 24, 2023
f2e90df
Merge branch 'master' into object-upload
prakashsvmx Nov 27, 2023
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
41 changes: 40 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
"@babel/register": "^7.21.0",
"@nodelib/fs.walk": "^1.2.8",
"@types/async": "^3.2.20",
"@types/block-stream2": "^2.1.2",
"@types/chai": "^4.3.11",
"@types/chai-as-promised": "^7.1.8",
"@types/lodash": "^4.14.194",
"@types/mime-types": "^2.1.1",
"@types/node": "^20.1.0",
Expand All @@ -115,6 +118,7 @@
"babel-plugin-replace-import-extension": "^1.1.3",
"babel-plugin-transform-replace-expressions": "^0.2.0",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"dotenv": "^16.0.3",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
14 changes: 14 additions & 0 deletions src/internal/async.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// promise helper for stdlib

import * as fs from 'node:fs'
import * as stream from 'node:stream'
import { promisify } from 'node:util'

// TODO: use "node:fs/promise" directly after we stop testing on nodejs 12
export { promises as fsp } from 'node:fs'
export const streamPromise = {
// node:stream/promises Added in: v15.0.0
pipeline: promisify(stream.pipeline),
}

export const fstat = promisify(fs.fstat)
Loading
Loading