[Pkg-javascript-commits] [node-abstract-leveldown] 06/08: embed the 8-line xtend module in a patch

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Fri May 15 22:04:41 UTC 2015


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 1176ac2c694df1d305029ee4605b581a5e8fc967
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Fri May 15 05:25:40 2015 +0000

    embed the 8-line xtend module in a patch
---
 debian/patches/embed-xtend.patch | 33 +++++++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 34 insertions(+)

diff --git a/debian/patches/embed-xtend.patch b/debian/patches/embed-xtend.patch
new file mode 100644
index 0000000..646a53c
--- /dev/null
+++ b/debian/patches/embed-xtend.patch
@@ -0,0 +1,33 @@
+Description: embed the tiny xtend module
+Author: Andrew Kelley <superjoe30 at gmail.com>
+
+--- node-abstract-leveldown-2.2.2.orig/abstract-leveldown.js
++++ node-abstract-leveldown-2.2.2/abstract-leveldown.js
+@@ -1,6 +1,6 @@
+ /* Copyright (c) 2013 Rod Vagg, MIT License */
+ 
+-var xtend                = require('xtend')
++var xtend                = extend
+   , AbstractIterator     = require('./abstract-iterator')
+   , AbstractChainedBatch = require('./abstract-chained-batch')
+ 
+@@ -245,3 +245,19 @@ AbstractLevelDOWN.prototype._checkKey =
+ module.exports.AbstractLevelDOWN    = AbstractLevelDOWN
+ module.exports.AbstractIterator     = AbstractIterator
+ module.exports.AbstractChainedBatch = AbstractChainedBatch
++
++function extend() {
++    var target = {}
++
++    for (var i = 0; i < arguments.length; i++) {
++        var source = arguments[i]
++
++        for (var key in source) {
++            if (source.hasOwnProperty(key)) {
++                target[key] = source[key]
++            }
++        }
++    }
++
++    return target
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5e079c6
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+embed-xtend.patch

-- 
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