Comparing version 0.0.1 to 0.0.2
@@ -14,2 +14,6 @@ "use strict"; | ||
if( self.config.defaults ){ | ||
Util.extend(params, self.config.defaults, true); | ||
} | ||
self.options = { | ||
@@ -16,0 +20,0 @@ host : self.config.host, |
@@ -14,2 +14,6 @@ "use strict"; | ||
if( self.config.defaults ){ | ||
Util.extend(params, self.config.defaults, true); | ||
} | ||
self.options = { | ||
@@ -16,0 +20,0 @@ host : self.config.host, |
@@ -38,3 +38,4 @@ "use strict"; | ||
res.data = data; | ||
callback(null, res.data); | ||
var retJson = Util.toJson(res.data); | ||
callback(null, retJson); | ||
} | ||
@@ -41,0 +42,0 @@ }); |
@@ -14,2 +14,6 @@ "use strict"; | ||
if( self.config.defaults ){ | ||
Util.extend(params, self.config.defaults, true); | ||
} | ||
self.options = { | ||
@@ -16,0 +20,0 @@ host : self.config.host, |
@@ -14,2 +14,6 @@ "use strict"; | ||
if( self.config.defaults ){ | ||
Util.extend(params, self.config.defaults, true); | ||
} | ||
self.options = { | ||
@@ -16,0 +20,0 @@ host : self.config.host, |
@@ -14,2 +14,6 @@ "use strict"; | ||
if( self.config.defaults ){ | ||
Util.extend(params, self.config.defaults, true); | ||
} | ||
self.options = { | ||
@@ -16,0 +20,0 @@ host : self.config.host, |
@@ -9,7 +9,11 @@ "use strict"; | ||
MAService : function(params, callback){ | ||
var self = this; | ||
self.name = "MAService"; | ||
self.config = self.__proto__.router[self.name]; | ||
var self = this; | ||
self.name = "MAService"; | ||
self.config = self.__proto__.router[self.name]; | ||
self.requestClient = self.__proto__.requestClient; | ||
if( self.config.defaults ){ | ||
Util.extend(params, self.config.defaults, true); | ||
} | ||
self.options = { | ||
@@ -16,0 +20,0 @@ host : self.config.host, |
12
index.js
@@ -0,4 +1,14 @@ | ||
/* | ||
* class: YJClient | ||
* | ||
* Author: Kai Sasaki <lewuathe@me.com> | ||
* This client can access to YJDN API server | ||
* | ||
* Date: 2013-2-17 | ||
*/ | ||
var Error = require('./error'); | ||
var Util = require('./util'); | ||
var url = require('url'); | ||
@@ -5,0 +15,0 @@ var Client = module.exports = function(config){ |
{ | ||
"name" : "node-yj", | ||
"version" : "0.0.1", | ||
"version" : "0.0.2", | ||
"description" : "NodeJS wrapper for the Yahoo! JAPAN API", | ||
@@ -18,3 +18,4 @@ "author": "Kai Sasaki, Yohei Yamaguchi", | ||
"dependencies" : { | ||
"pkginfo" : "0.2.x" | ||
"pkginfo" : "0.2.x", | ||
"xml2json" : "0.3.x" | ||
}, | ||
@@ -33,2 +34,2 @@ "devDependencies": { | ||
] | ||
} | ||
} |
@@ -13,2 +13,3 @@ /** section: github | ||
var Util = require("util"); | ||
var xml2json = require("xml2json"); | ||
@@ -158,1 +159,9 @@ /** | ||
exports.toJson = function(xml, options){ | ||
return xml2json.toJson(xml, options); | ||
}; | ||
exports.toXml = function(json, options){ | ||
return xml2json.toXml(json, options); | ||
}; | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35574
30
928
2
10
+ Addedxml2json@0.3.x
+ Addednode-expat@2.0.0(transitive)
+ Addedxml2json@0.3.2(transitive)