[Pkg-javascript-commits] [node-nan] 09/09: embed xtend module
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Mon May 18 20:19:18 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-nan.
commit 29e9d901a6649227eac760e9327d52bbf9106d4e
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Mon May 18 20:13:13 2015 +0000
embed xtend module
---
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..1484c42
--- /dev/null
+++ b/debian/patches/embed-xtend.patch
@@ -0,0 +1,33 @@
+Description: embed the single-function 10-line module which is only used once
+Author: Andrew Kelley <superjoe30 at gmail.com>
+
+--- node-nan-1.8.4.orig/test/js/optionvalues-test.js
++++ node-nan-1.8.4/test/js/optionvalues-test.js
+@@ -9,7 +9,6 @@
+ const test = require('tap').test
+ , testRoot = require('path').resolve(__dirname, '..')
+ , bindings = require('bindings')({ module_root: testRoot, bindings: 'optionvalues' })
+- , xtend = require('xtend');
+
+ test('optionvalues', function (t) {
+ t.plan(2);
+@@ -31,3 +30,19 @@ test('optionvalues', function (t) {
+ actobj = bindings.o(obj);
+ t.deepEqual(actobj, expobj);
+ });
++
++function xtend() {
++ 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-nan.git
More information about the Pkg-javascript-commits
mailing list