Skip to content

Commit 75b01fd

Browse files
AssassynSzymon Sasingeoffrich
authored
chore: update dev dependencies (#169)
* 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 <[email protected]> Co-authored-by: Geoff Rich <[email protected]>
1 parent 018afa6 commit 75b01fd

File tree

8 files changed

+926
-1583
lines changed

8 files changed

+926
-1583
lines changed

.github/workflows/azure-static-web-apps-polite-desert-00b80111e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- uses: actions/checkout@v3
6565
- uses: actions/setup-node@v2
6666
with:
67-
node-version: '16.x'
67+
node-version: '18.x'
6868
- name: Install dependencies
6969
run: npm ci
7070
- name: Install Playwright

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: '16.x'
18+
node-version: '18.x'
1919
- run: npm ci
2020
- run: npm run check-types
2121
- run: npm run check-format

demo/playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const config = {
55
: {
66
command: 'npm run build && npm run preview',
77
port: 4173
8-
}
8+
}
99
};
1010

1111
export default config;

files/entry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function toRequest(context) {
7575
init.body = Buffer.isBuffer(body)
7676
? body
7777
: typeof rawBody === 'string'
78-
? Buffer.from(rawBody, 'utf-8')
79-
: rawBody;
78+
? Buffer.from(rawBody, 'utf-8')
79+
: rawBody;
8080
}
8181

8282
return new Request(originalUrl, init);

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default function ({
4848
debug = false,
4949
customStaticWebAppConfig = {},
5050
esbuildOptions = {},
51-
apiDir: customApiDir = undefined,
52-
staticDir: customStaticDir = undefined,
51+
apiDir: customApiDir = '',
52+
staticDir: customStaticDir = '',
5353
allowReservedSwaRoutes = false
5454
} = {}) {
5555
return {

0 commit comments

Comments
 (0)