Skip to content

Commit

Permalink
fix node version
Browse files Browse the repository at this point in the history
  • Loading branch information
kwhitley committed Nov 25, 2023
1 parent d0866d1 commit fd13151
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- name: Use Node.js 20.x
- name: Use Node.js 20.10.0
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 20.10.0

- name: npm install, npm run coverage
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'
node-version: '20.10.0'
- name: Install dependencies
run: yarn
- run: yarn lint
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'
node-version: '20.10.0'
- name: Install dependencies
run: yarn
- run: yarn verify
2 changes: 1 addition & 1 deletion src/createCors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Router } from './Router'

// mock Response.Headers for the WebSocket test
const Headers = vi.fn().mockImplementation(() => {
const map = new Map();
const map = new Map()
return {
append: vi.fn((key, value) => map.set(key, value)),
get: vi.fn(key => map.get(key)),
Expand Down
2 changes: 1 addition & 1 deletion src/createCors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const createCors = (options: CorsOptions = {}) => {
const { origins = ['*'], maxAge, methods = ['GET'], headers = {} } = options

let allowOrigin: any
const isAllowOrigin = typeof origins === 'function'
const isAllowOrigin = typeof origins === 'function'
? origins
: (origin: string) => (origins.includes(origin) || origins.includes('*'))

Expand Down
2 changes: 1 addition & 1 deletion src/flow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RouteHandler, RouterType } from './Router'
import { RouterType } from './Router'
import { CorsOptions, createCors } from './createCors'
import { error } from './error'
import { json } from './json'
Expand Down

0 comments on commit fd13151

Please sign in to comment.