[Pkg-javascript-commits] [node-socket.io-parser] 04/05: Patch away json3 with nodejs built-in JSON

Paolo Greppi paolog-guest at moszumanska.debian.org
Wed Dec 28 21:15:44 UTC 2016


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

paolog-guest pushed a commit to branch master
in repository node-socket.io-parser.

commit 0090c8d0079ced4993f42e1c37b336c3ff7e7ba9
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Dec 28 21:10:25 2016 +0000

    Patch away json3 with nodejs built-in JSON
---
 debian/TODO                  |  1 +
 debian/control               |  2 --
 debian/patches/00-json3.diff | 17 +++++++++++++++++
 debian/patches/series        |  1 +
 4 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..0988294
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1 @@
+- package json3 and remove the patch that replaces it with node's built-in JSON
diff --git a/debian/control b/debian/control
index 2b3a961..c08607c 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,6 @@ Build-Depends:
  , dh-buildinfo
  , node-isarray (>= 0.0.1)
  , node-component-emitter (>= 1.1.2)
- , node-json3 (>= 3.3.2)
  , node-debug (>= 2.2.0)
  , mocha
  , nodejs
@@ -24,7 +23,6 @@ Depends:
  , nodejs
  , node-isarray (>= 0.0.1)
  , node-component-emitter (>= 1.1.2)
- , node-json3 (>= 3.3.2)
  , node-debug (>= 2.2.0)
 Description: socket.io protocol parser
  Node.js module providing a socket.io encoder and decoder written in
diff --git a/debian/patches/00-json3.diff b/debian/patches/00-json3.diff
new file mode 100644
index 0000000..f0cdd60
--- /dev/null
+++ b/debian/patches/00-json3.diff
@@ -0,0 +1,17 @@
+Description: Patch away json3 with node's built-in JSON.
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at libpf.com>
+
+Index: node-socket.io-parser/index.js
+===================================================================
+--- node-socket.io-parser.orig/index.js
++++ node-socket.io-parser/index.js
+@@ -4,7 +4,7 @@
+  */
+ 
+ var debug = require('debug')('socket.io-parser');
+-var json = require('json3');
++var json = JSON;
+ var Emitter = require('component-emitter');
+ var binary = require('./binary');
+ var isBuf = require('./is-buffer');
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2547fac
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-json3.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-socket.io-parser.git



More information about the Pkg-javascript-commits mailing list