File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ async function blockingDemo() {
61
61
* which is different from a Node ReadableStream.
62
62
*/
63
63
async function streamToFile ( stream : NodeJS . ReadableStream , path : fs . PathLike ) {
64
- return new Promise ( ( resolve , reject ) => {
64
+ return new Promise < void > ( ( resolve , reject ) => {
65
65
const writeStream = fs . createWriteStream ( path ) . on ( 'error' , reject ) . on ( 'finish' , resolve ) ;
66
66
67
67
// If you don't see a `stream.pipe` method and you're using Node you might need to add `import 'openai/shims/node'` at the top of your entrypoint file.
Original file line number Diff line number Diff line change 938
938
undici-types "~5.26.4"
939
939
940
940
" @types/node@^20.17.6 " :
941
- version "20.17.6 "
942
- resolved "https://registry.yarnpkg.com/@types/node/-/node-20.17.6 .tgz#6e4073230c180d3579e8c60141f99efdf5df0081 "
943
- integrity sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ ==
941
+ version "20.19.11 "
942
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-20.19.11 .tgz#728cab53092bd5f143beed7fbba7ba99de3c16c4 "
943
+ integrity sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow ==
944
944
dependencies :
945
- undici-types "~6.19.2 "
945
+ undici-types "~6.21.0 "
946
946
947
947
" @types/stack-utils@^2.0.0 " :
948
948
version "2.0.3"
@@ -3304,6 +3304,7 @@ ts-node@^10.5.0:
3304
3304
3305
3305
" tsc-multi@https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz " :
3306
3306
version "1.1.8"
3307
+ uid f544b359b8f05e607771ffacc280e58201476b04
3307
3308
resolved "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz#f544b359b8f05e607771ffacc280e58201476b04"
3308
3309
dependencies :
3309
3310
debug "^4.3.7"
@@ -3372,10 +3373,10 @@ undici-types@~5.26.4:
3372
3373
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
3373
3374
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
3374
3375
3375
- undici-types@~6.19.2 :
3376
- version "6.19.8 "
3377
- resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8 .tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02 "
3378
- integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw ==
3376
+ undici-types@~6.21.0 :
3377
+ version "6.21.0 "
3378
+ resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0 .tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb "
3379
+ integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ ==
3379
3380
3380
3381
unicode-emoji-modifier-base@^1.0.0 :
3381
3382
version "1.0.0"
You can’t perform that action at this time.
0 commit comments