[Pkg-javascript-commits] [node-abstract-leveldown] 01/01: use utils-merge instead of xtend patch

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri Jul 4 18:55:04 UTC 2014


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

andrewrk-guest pushed a commit to branch master
in repository node-abstract-leveldown.

commit c306811fc606497a8b06a9030e202dc9f0553bd0
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Fri Jul 4 18:53:51 2014 +0000

    use utils-merge instead of xtend patch
---
 debian/patches/series            |  1 +
 debian/patches/utils-merge.patch | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3b88965
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+utils-merge.patch
diff --git a/debian/patches/utils-merge.patch b/debian/patches/utils-merge.patch
new file mode 100644
index 0000000..b696662
--- /dev/null
+++ b/debian/patches/utils-merge.patch
@@ -0,0 +1,24 @@
+Description: use utils-merge instead of xtend
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+Last-Update: 2014-07-04
+
+--- node-abstract-leveldown-0.12.3.orig/abstract-leveldown.js
++++ node-abstract-leveldown-0.12.3/abstract-leveldown.js
+@@ -1,6 +1,6 @@
+ /* Copyright (c) 2013 Rod Vagg, MIT License */
+ 
+-var xtend                = require('xtend')
++var merge                = require('utils-merge')
+   , AbstractIterator     = require('./abstract-iterator')
+   , AbstractChainedBatch = require('./abstract-chained-batch')
+ 
+@@ -193,7 +193,7 @@ AbstractLevelDOWN.prototype.approximateS
+ AbstractLevelDOWN.prototype._setupIteratorOptions = function (options) {
+   var self = this
+ 
+-  options = xtend(options)
++  options = merge({}, options)
+ 
+   ;[ 'start', 'end', 'gt', 'gte', 'lt', 'lte' ].forEach(function (o) {
+     if (options[o] && self._isBuffer(options[o]) && options[o].length === 0)

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



More information about the Pkg-javascript-commits mailing list