Skip to content

Commit

Permalink
Update packages and fix broken v1 branch
Browse files Browse the repository at this point in the history
Updating code to match PR: possibilities#76
Keeping own copy to avoid unwanted changes
  • Loading branch information
alaisgomes committed Mar 9, 2021
1 parent f925ed7 commit 7c2e6d2
Show file tree
Hide file tree
Showing 3 changed files with 3,293 additions and 2,327 deletions.
35 changes: 17 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,24 @@
"type": "git"
},
"author": "Mike Bannister <mikebannister@gmail.com>",
"main": "lib/index.js",
"main": "src/index.js",
"files": [
"lib/index.js"
"src/index.js"
],
"license": "MIT",
"scripts": {
"build": "rimraf lib && babel src --out-dir lib",
"test": "ava --verbose src/test.js",
"dev": "ava --verbose --watch src/test.js",
"prepublish": "yarn build",
"lint": "standard",
"pretest": "yarn lint"
},
"devDependencies": {
"async-to-gen": "^1.3.2",
"ava": "^0.19.0",
"babel-cli": "^6.24.0",
"babel-polyfill": "^6.23.0",
"babel-preset-latest": "^6.24.0",
"babel-preset-stage-0": "^6.22.0",
"babel-register": "^6.24.0",
"@ava/babel": "^1.0.1",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/plugin-transform-runtime": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"ava": "^3.8.2",
"micro": "^7.3.0",
"request": "^2.85.0",
"request-promise": "^4.2.0",
Expand All @@ -40,15 +37,17 @@
},
"ava": {
"failFast": true,
"require": [
"babel-register"
],
"babel": "inherit"
"babel": true
},
"babel": {
"presets": [
"latest",
"stage-0"
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
},
"dependencies": {
"@babel/runtime": "^7.9.6"
}
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ const cors = (options = {}) => handler => async (req, res, ...restArgs) => {
setVaryHeader(res, origin)
res.end()
} else {
const handlerResult = await handler(req, res, ...restArgs)
setVaryHeader(res, origin)
const handlerResult = await handler(req, res, ...restArgs)
return handlerResult
}
}
Expand Down
Loading

0 comments on commit 7c2e6d2

Please sign in to comment.