Skip to content

Commit

Permalink
chore: update dev dependencies (#169)
Browse files Browse the repository at this point in the history
* updated all packages to newest version

* rewriten index.js to not override function parameters

* Fix TS error by defaulting to string

* Bump vitest and SK, downgrade @types/node to 18

* Format code

* Bump node versions in CI

---------

Co-authored-by: Szymon Sasin <szymon@be-functional.uk>
Co-authored-by: Geoff Rich <4992896+geoffrich@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 21, 2023
1 parent 018afa6 commit 75b01fd
Show file tree
Hide file tree
Showing 8 changed files with 926 additions and 1,583 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '16.x'
node-version: '18.x'
- name: Install dependencies
run: npm ci
- name: Install Playwright
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
- run: npm ci
- run: npm run check-types
- run: npm run check-format
Expand Down
2 changes: 1 addition & 1 deletion demo/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = {
: {
command: 'npm run build && npm run preview',
port: 4173
}
}
};

export default config;
4 changes: 2 additions & 2 deletions files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ function toRequest(context) {
init.body = Buffer.isBuffer(body)
? body
: typeof rawBody === 'string'
? Buffer.from(rawBody, 'utf-8')
: rawBody;
? Buffer.from(rawBody, 'utf-8')
: rawBody;
}

return new Request(originalUrl, init);
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default function ({
debug = false,
customStaticWebAppConfig = {},
esbuildOptions = {},
apiDir: customApiDir = undefined,
staticDir: customStaticDir = undefined,
apiDir: customApiDir = '',
staticDir: customStaticDir = '',
allowReservedSwaRoutes = false
} = {}) {
return {
Expand Down
Loading

0 comments on commit 75b01fd

Please sign in to comment.