[Pkg-javascript-commits] [passportjs] 03/05: Add 2001 patch
Jérémy Lal
kapouer at alioth.debian.org
Sat Oct 26 14:51:37 UTC 2013
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository passportjs.
commit df40e4ed5aceaa8c8a57a043507907b7ebb1fe95
Author: Jérémy Lal <kapouer at melix.org>
Date: Sat Oct 26 16:50:14 2013 +0200
Add 2001 patch
---
debian/patches/2001_drop_pause.patch | 44 ++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/debian/patches/2001_drop_pause.patch b/debian/patches/2001_drop_pause.patch
new file mode 100644
index 0000000..8191f9d
--- /dev/null
+++ b/debian/patches/2001_drop_pause.patch
@@ -0,0 +1,44 @@
+Subject: drop pause module and use Node.js api only
+Author: Jérémy Lal <kapouer at melix.org>
+Last-Update: 2013-10-26
+Forwarded: not-needed, upstream want nodejs < 0.10 compat
+--- a/lib/passport/strategies/session.js
++++ b/lib/passport/strategies/session.js
+@@ -1,8 +1,7 @@
+ /**
+ * Module dependencies.
+ */
+-var pause = require('pause')
+- , util = require('util')
++var util = require('util')
+ , Strategy = require('../strategy');
+
+
+@@ -45,22 +44,22 @@
+ // listening for events emitted from request. For discussion on the
+ // matter, refer to: https://github.com/jaredhanson/passport/pull/106
+
+- var paused = options.pauseStream ? pause(req) : null;
++ if (options.pauseStream) req.pause();
+ req._passport.instance.deserializeUser(su, function(err, user) {
+ if (err) { return self.error(err); }
+ if (!user) {
+ delete req._passport.session.user;
+ self.pass();
+- if (paused) {
+- paused.resume();
++ if (req.paused) {
++ req.resume();
+ }
+ return;
+ };
+ var property = req._passport.instance._userProperty || 'user';
+ req[property] = user;
+ self.pass();
+- if (paused) {
+- paused.resume();
++ if (req.paused) {
++ req.resume();
+ }
+ });
+ } else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/passportjs.git
More information about the Pkg-javascript-commits
mailing list