[Pkg-javascript-commits] [node-uid-safe] 05/06: refresh patch

Paolo Greppi paolog-guest at moszumanska.debian.org
Thu Dec 15 12:52:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

paolog-guest pushed a commit to branch master
in repository node-uid-safe.

commit f3f0f3bc4ee237a236fcb9a3dc24a1a4578de323
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Thu Dec 15 12:38:39 2016 +0000

    refresh patch
---
 ...ule.patch => 01-remove_base64-url_module.patch} | 22 +++++++++++-----------
 debian/patches/series                              |  2 +-
 index.js                                           |  5 ++++-
 3 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/debian/patches/0001-remove_base64-url_module.patch b/debian/patches/01-remove_base64-url_module.patch
similarity index 57%
rename from debian/patches/0001-remove_base64-url_module.patch
rename to debian/patches/01-remove_base64-url_module.patch
index 18d8dcc..9fc57c8 100644
--- a/debian/patches/0001-remove_base64-url_module.patch
+++ b/debian/patches/01-remove_base64-url_module.patch
@@ -6,21 +6,21 @@ Description: It has no sense require a module only for a simple
  License: ISC
 Author: Leo Iannacone <l3on at ubuntu.com>
 Forwarded: not-needed
----
- index.js |    6 +++++-
- 1 file changed, 5 insertions(+), 1 deletion(-)
 
---- a/index.js
-+++ b/index.js
-@@ -1,6 +1,10 @@
+Index: node-uid-safe/index.js
+===================================================================
+--- node-uid-safe.orig/index.js
++++ node-uid-safe/index.js
+@@ -12,8 +12,11 @@
+  * @private
+  */
  
- var pseudoRandomBytes = require('crypto').pseudoRandomBytes
 -var escape = require('base64-url').escape
-+
+ var randomBytes = require('random-bytes')
 +// from https://github.com/joaquimserafim/base64-url/blob/master/index.js
 +function escape (str) {
-+    return str.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
++  return str.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
 +};
  
- var pseudoRandomBytesProm
- 
+ /**
+  * Module exports.
diff --git a/debian/patches/series b/debian/patches/series
index 8ea6c3c..c5d0294 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-0001-remove_base64-url_module.patch
+01-remove_base64-url_module.patch
diff --git a/index.js b/index.js
index 92ab744..568b395 100644
--- a/index.js
+++ b/index.js
@@ -12,8 +12,11 @@
  * @private
  */
 
-var escape = require('base64-url').escape
 var randomBytes = require('random-bytes')
+// from https://github.com/joaquimserafim/base64-url/blob/master/index.js
+function escape (str) {
+  return str.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
+};
 
 /**
  * Module exports.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-uid-safe.git



More information about the Pkg-javascript-commits mailing list