[Pkg-javascript-commits] [node-rollup-plugin-replace] 06/08: Refresh the patch to support old nodejs versions

Julien Puydt julien.puydt at laposte.net
Fri Sep 8 06:08:50 UTC 2017


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

jpuydt-guest pushed a commit to branch master
in repository node-rollup-plugin-replace.

commit f2ced1b496694e5e53b526bf6f838743dac458d1
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Wed Sep 6 07:45:35 2017 +0200

    Refresh the patch to support old nodejs versions
---
 debian/changelog             |  1 +
 debian/patches/default_value | 16 ++++++++--------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a5d3c3c..515b451 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ node-rollup-plugin-replace (2.0.0-1) UNRELEASED; urgency=medium
   * New upstream release.
   * Bump d/watch to version 4.
   * Bump std-ver to 4.1.0.
+  * Refresh the patch for old nodejs support.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Wed, 06 Sep 2017 07:38:47 +0200
 
diff --git a/debian/patches/default_value b/debian/patches/default_value
index 974671c..3eb7aa9 100644
--- a/debian/patches/default_value
+++ b/debian/patches/default_value
@@ -4,13 +4,13 @@ Forwarded: no
 
 --- a/src/index.js
 +++ b/src/index.js
-@@ -5,7 +5,8 @@
- 	return str.replace( /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&' );
+@@ -14,7 +14,8 @@
+ 	return b.length - a.length;
  }
  
--export default function replace ( options = {} ) {
-+export default function replace ( options ) {
-+	if (!options) options = {};
- 	const values = options.values || options;
- 	const delimiters = ( options.delimiters || [ '', '' ] ).map( escape );
- 	const pattern = new RegExp( delimiters[0] + '(' + Object.keys( values ).join( '|' ) + ')' + delimiters[1], 'g' );
+-export default function replace(options = {}) {
++export default function replace(options) {
++        if (!options) options = {};
+ 	const filter = createFilter(options.include, options.exclude);
+ 	const { delimiters } = options;
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-rollup-plugin-replace.git



More information about the Pkg-javascript-commits mailing list