Comparing version 0.0.3 to 0.0.4
@@ -6,3 +6,3 @@ /* See license.txt for terms of usage */ | ||
exports.get = function(url, params, cb) { | ||
exports.send(url, 'POST', params, cb); | ||
exports.send(url, 'GET', params, cb); | ||
} | ||
@@ -113,1 +113,8 @@ | ||
} | ||
exports.postJSON = function(url, params, cb) { | ||
exports.post(url, params, function(data) { | ||
var result = eval(data); | ||
cb(0, result); | ||
}); | ||
}; |
{ | ||
"name": "ajax", | ||
"description": "Utilities for loading JSON and XML.", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "http://github.com/joehewitt/ajax", | ||
@@ -6,0 +6,0 @@ "repository": { |
4956
103
2