Skip to content

Commit

Permalink
fix: universal type
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Apr 16, 2024
1 parent a64ed4e commit b1137be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g pnpm
- run: npm i -g pnpm@8
- run: pnpm install
- run: cd packages/test && pnpm exec playwright install
- run: cd packages/test/server && go get
Expand Down
3 changes: 3 additions & 0 deletions packages/universal/src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const { lyla, isLylaError } = coreCreateLyla<undefined, LylaAdapterMeta>(
responseType,
json,
withCredentials,
extraOptions,
onHeadersReceived,
onDownloadProgress,
onUploadProgress,
Expand All @@ -38,6 +39,7 @@ export const { lyla, isLylaError } = coreCreateLyla<undefined, LylaAdapterMeta>(
responseType,
json,
withCredentials,
extraOptions,
onHeadersReceived(headers, originalRequest) {
return onHeadersReceived(headers, {
anyhow: originalRequest,
Expand Down Expand Up @@ -114,6 +116,7 @@ export const { lyla, isLylaError } = coreCreateLyla<undefined, LylaAdapterMeta>(
responseType,
json,
withCredentials,
extraOptions,
onHeadersReceived(headers, originalRequest) {
return onHeadersReceived(headers, {
anyhow: originalRequest,
Expand Down

0 comments on commit b1137be

Please sign in to comment.