Skip to content

Commit

Permalink
remove fs-cp (#54)
Browse files Browse the repository at this point in the history
* remove fs-cp

It's 2019 and still failing. resolves #19 and #20

* chore: remove fs-cp dep

---------

Co-authored-by: Charlike Mike Reagent <ceo@tunnckocore.com>
  • Loading branch information
tunnckoCore and Charlike Mike Reagent committed Feb 25, 2024
1 parent c00d4e0 commit 3c04c50
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ module.exports = (app) => {
Object.keys(response).forEach((key) => {
app.response[key] = response[key]
})
Object.keys(context).forEach((key) => {
app.context[key] = context[key]
})
return app
}

const context = {}
const request = {}
const response = {}

Expand Down Expand Up @@ -89,5 +85,3 @@ response.writeContinue = function () {
}
return this
}

context.save = require('fs-cp')
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"license": "MIT",
"repository": "koajs/body-parsers",
"dependencies": {
"fs-cp": "^1.3.1",
"raw-body": "^2.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 3c04c50

Please sign in to comment.