Skip to content

Commit

Permalink
fix: force engine to be >=18.11.0 as this fixes an issue in proxying …
Browse files Browse the repository at this point in the history
…a response
  • Loading branch information
wheresrhys committed Aug 30, 2024
1 parent abe7203 commit dde5e6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ references:

node18: &node18
docker:
- image: cimg/node:18.0
- image: cimg/node:18.11
nodelts: &nodelts
docker:
- image: cimg/node:lts
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"types": "./dist/esm/index.d.ts",
"type": "module",
"engines": {
"node": ">=18.0.0"
"node": ">=18.11.0"
},
"dependencies": {
"@types/glob-to-regexp": "^0.4.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ export default class Router {
if (typeof response[name] === 'function') {
//@ts-expect-error TODO probably make use of generics here
return new Proxy(response[name], {
apply: (matcherFunction, thisArg, args) => {
const result = matcherFunction.apply(response, args);
apply: (func, thisArg, args) => {
const result = func.apply(response, args);
if (result.then) {
pendingPromises.push(
//@ts-expect-error TODO probably make use of generics here
Expand Down
2 changes: 1 addition & 1 deletion packages/vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"types": "./types/index.d.ts",
"type": "module",
"engines": {
"node": ">=18.0.0"
"node": ">=18.11.0"
},
"dependencies": {
"@fetch-mock/core": "^0.6.3"
Expand Down

0 comments on commit dde5e6b

Please sign in to comment.