mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 21:51:04 +00:00
Update jsonrpc2.js
This commit is contained in:
parent
d86c9728e3
commit
27636a4a72
|
@ -5,7 +5,7 @@ var HTTP = require("lib/http");
|
||||||
|
|
||||||
function jsonrpc2(url) {
|
function jsonrpc2(url) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.call = function(method, params, id) {
|
this.invoke = function(method, params, id) {
|
||||||
var result;
|
var result;
|
||||||
var response = HTTP.create("MSXML")
|
var response = HTTP.create("MSXML")
|
||||||
.setContentType("application/json")
|
.setContentType("application/json")
|
||||||
|
@ -45,7 +45,7 @@ function create(url) {
|
||||||
exports.encode = encode;
|
exports.encode = encode;
|
||||||
exports.create = create;
|
exports.create = create;
|
||||||
|
|
||||||
exports.VERSIONINFO = "JSON-RPC 2.0 Interface (jsonrpc2.js) version 0.1.1";
|
exports.VERSIONINFO = "JSON-RPC 2.0 Interface (jsonrpc2.js) version 0.1.2";
|
||||||
exports.AUTHOR = "abuse@catswords.net";
|
exports.AUTHOR = "abuse@catswords.net";
|
||||||
exports.global = global;
|
exports.global = global;
|
||||||
exports.require = global.require;
|
exports.require = global.require;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user