Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
deps: csrf@~3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 10, 2015
1 parent f634fb0 commit 01371aa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
unreleased
==========

* deps: csrf@~3.0.0
- deps: uid-safe@~2.0.0

1.8.1 / 2015-05-03
==================

Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

/**
* Module dependencies.
* @private
*/

var Cookie = require('cookie');
var csrfTokens = require('csrf');
var createError = require('http-errors');
var sign = require('cookie-signature').sign;
var Tokens = require('csrf');

/**
* CSRF protection middleware.
Expand Down Expand Up @@ -41,7 +42,7 @@ module.exports = function csurf(options) {
var value = options.value || defaultValue

// token repo
var tokens = csrfTokens(options);
var tokens = new Tokens(options);

// ignored methods
var ignoreMethods = options.ignoreMethods === undefined
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"cookie": "0.1.2",
"cookie-signature": "1.0.6",
"csrf": "~2.0.7",
"csrf": "~3.0.0",
"http-errors": "~1.3.1"
},
"devDependencies": {
Expand Down

0 comments on commit 01371aa

Please sign in to comment.