[Pkg-javascript-commits] [node-rollup-pluginutils] 01/06: Add a patch to avoid default argument values

Julien Puydt julien.puydt at laposte.net
Fri Aug 18 13:59:28 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-pluginutils.

commit 22f57ba8ba9ec531059c1239baadf8583a612ac1
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sun Aug 13 13:30:25 2017 +0200

    Add a patch to avoid default argument values
---
 debian/changelog                      |  6 ++++++
 debian/patches/default_argument_value | 27 +++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 3 files changed, 34 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fd73380..4cd24ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-rollup-pluginutils (2.0.1-2) UNRELEASED; urgency=medium
+
+  * Add a patch to avoid default argument values.
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sun, 13 Aug 2017 13:29:48 +0200
+
 node-rollup-pluginutils (2.0.1-1) unstable; urgency=low
 
   * Initial release (Closes: #867319)
diff --git a/debian/patches/default_argument_value b/debian/patches/default_argument_value
new file mode 100644
index 0000000..1f7f647
--- /dev/null
+++ b/debian/patches/default_argument_value
@@ -0,0 +1,27 @@
+Description: don't use default argument values
+Author: Julien Puydt
+Forwarded: no
+
+--- a/src/addExtension.js
++++ b/src/addExtension.js
+@@ -1,6 +1,7 @@
+ import { extname } from 'path';
+ 
+-export default function addExtension ( filename, ext = '.js' ) {
++export default function addExtension ( filename, ext ) {
++        if ( !ext) ext = '.js';
+ 	if ( !extname( filename ) ) filename += ext;
+ 	return filename;
+ }
+--- a/src/attachScopes.js
++++ b/src/attachScopes.js
+@@ -75,7 +75,8 @@
+ }
+ 
+ 
+-export default function attachScopes ( ast, propertyName = 'scope' ) {
++export default function attachScopes ( ast, propertyName ) {
++        if ( !propertyName) propertyName = 'scope';
+ 	let scope = new Scope();
+ 
+ 	walk( ast, {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..33fc76b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+default_argument_value

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



More information about the Pkg-javascript-commits mailing list