Skip to content

Commit

Permalink
Merge branch 'master' into tagging-api-ts-migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx authored Nov 28, 2023
2 parents 519359f + 863896d commit 2269ede
Show file tree
Hide file tree
Showing 10 changed files with 408 additions and 541 deletions.
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

0 comments on commit 2269ede

Please sign in to comment.