Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Uses underscores instead of hyphens for files.

  • Loading branch information...
commit 068ea9f0a5d750432ca97b2503bb0a03c321ac41 1 parent b9a1680
@baalexander authored
View
5 README.md
@@ -20,8 +20,9 @@ npm install xmlrpc
### To Use
-The client-server.js in the example directory has an nicely commented example of
-using xmlrpc as an XML-RPC server and client (they even talk to each other!).
+The file client_server.js in the example directory has a nicely commented
+example of using xmlrpc as an XML-RPC server and client (they even talk to each
+other!).
A brief example:
View
0  example/client-server.js → example/client_server.js
File renamed without changes
View
0  lib/date-formatter.js → lib/date_formatter.js
File renamed without changes
View
10 lib/deserializer.js
@@ -1,5 +1,5 @@
var sax = require('sax')
- , decodeIso8601 = require('./date-formatter').decodeIso8601
+ , dateFormatter = require('./date_formatter')
var Deserializer = function() {
this._type = null
@@ -229,7 +229,7 @@ Deserializer.prototype.end_struct = function(data) {
, struct = {}
, items = this._stack.slice(mark)
, i = 0
-
+
for (; i < items.length; i += 2) {
struct[items[i]] = items[i + 1]
}
@@ -238,12 +238,14 @@ Deserializer.prototype.end_struct = function(data) {
}
Deserializer.prototype.end_base64 = function(data) {
- this.push(new Buffer(data, 'base64'))
+ var buffer = new Buffer(data, 'base64')
+ this.push(buffer)
this._value = false
}
Deserializer.prototype.end_date_time = function(data) {
- this.push(decodeIso8601(data))
+ var date = dateFormatter.decodeIso8601(data)
+ this.push(date)
this._value = false
}
View
2  lib/serializer.js
@@ -1,5 +1,5 @@
var xmlBuilder = require('xmlbuilder')
- , dateFormatter = require('./date-formatter')
+ , dateFormatter = require('./date_formatter')
/**
* Creates the XML for an XML-RPC method call.
View
0  test/client-test.js → test/client_test.js
File renamed without changes
View
0  test/server-test.js → test/server_test.js
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.