File: xml2js-defaults

package info (click to toggle)
node-webfinger 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 320 kB
  • sloc: javascript: 2,951; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Use xml2js version 0.1 defaults
Author: Tim Retout <diocles@debian.org>
Last-Update: 2014-08-23
Forwarded: https://github.com/e14n/webfinger/issues/26

Index: node-webfinger/lib/webfinger.js
===================================================================
--- node-webfinger.orig/lib/webfinger.js
+++ node-webfinger/lib/webfinger.js
@@ -95,7 +95,7 @@ var xrd2jrd = function(str, callback) {
     };
     Step(
         function() {
-            var parser = new xml2js.Parser();
+            var parser = new xml2js.Parser(xml2js.defaults["0.1"]);
             parser.parseString(str, this);
         },
         function(err, doc) {