koajs / csrf

CSRF tokens for koa
MIT License
264 stars 32 forks source link

Update deprecated `ctx.throw` argument order #33

Closed venables closed 7 years ago

venables commented 7 years ago

http-errors has deprecated how createError is called, causing the following deprecation notice to occur:

http-errors deprecated non-first-argument status code; replace with createError(403, ...)

Koa has also removed documentation for using ctx.throw like this: https://github.com/koajs/koa/pull/906

codecov[bot] commented 7 years ago

Codecov Report

Merging #33 into master will not change coverage. The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #33   +/-   ##
=======================================
  Coverage   78.37%   78.37%           
=======================================
  Files           1        1           
  Lines          37       37           
  Branches       18       18           
=======================================
  Hits           29       29           
  Misses          8        8
Impacted Files Coverage Δ
src/index.js 78.37% <100%> (ø) :white_check_mark:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c5f6bf0...02b5606. Read the comment docs.

dead-horse commented 7 years ago

LGTM, I'll fix the ci later.