Skip to content

Commit 5aaa9c3

Browse files
authored
upgrade web-streams-polyfill (#154)
* upgrade `web-streams-polyfill` * turn on `skipLibCheck` * better cast of ponyfilled `ReadableStream`
1 parent eb31ed3 commit 5aaa9c3

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

packages/conjure-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@
5454
"url": "[email protected]:palantir/conjure-typescript-runtime.git"
5555
},
5656
"dependencies": {
57-
"web-streams-polyfill": "^2.0.6"
57+
"web-streams-polyfill": "^3.2.1"
5858
}
5959
}

packages/conjure-client/src/fetchBridge/blobReadableStreamAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ export function blobToReadableStream(blobPromise: Promise<Blob>): ReadableStream
3131
},
3232
};
3333
return typeof ReadableStream === "undefined"
34-
? ((new PonyfilledReadableStream<Uint8Array>(underlyingSource) as unknown) as ReadableStream<Uint8Array>)
34+
? (new PonyfilledReadableStream<Uint8Array>(underlyingSource) as ReadableStream<Uint8Array>)
3535
: new ReadableStream(underlyingSource);
3636
}

packages/conjure-client/src/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"noUnusedParameters": true,
1515
"pretty": true,
1616
"removeComments": false,
17+
"skipLibCheck": true,
1718
"sourceMap": true,
1819
"strict": true,
1920
"stripInternal": true,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8871,10 +8871,10 @@ wcwidth@^1.0.0, wcwidth@^1.0.1:
88718871
dependencies:
88728872
defaults "^1.0.3"
88738873

8874-
web-streams-polyfill@^2.0.6:
8875-
version "2.0.6"
8876-
resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-2.0.6.tgz#76e0504b4f15a6310cfc9e78e27637b648f9741e"
8877-
integrity sha512-nXOi4fBykO4LzyQhZX3MAGib635KGZBoNTkNXrNIkz0zthEf2QokEWxRb0H632xNLDWtHFb1R6dFGzksjYMSDw==
8874+
web-streams-polyfill@^3.2.1:
8875+
version "3.2.1"
8876+
resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz#71c2718c52b45fd49dbeee88634b3a60ceab42a6"
8877+
integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==
88788878

88798879
webidl-conversions@^4.0.2:
88808880
version "4.0.2"

0 commit comments

Comments
 (0)