@adt/json-rpc
Advanced tools
Comparing version 0.0.1-SNAPSHOT.20 to 0.0.1-SNAPSHOT.21
@@ -20,3 +20,8 @@ 'use strict'; | ||
return JSON.stringify(this); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -310,3 +315,8 @@ | ||
params: this.params }); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -414,3 +424,8 @@ } | ||
return JSON.stringify(ret); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -458,3 +473,21 @@ } | ||
id: { value: id }, | ||
error: { value: error } | ||
error: { value: error }, | ||
/** | ||
* Serialize request object to string | ||
* @return {String} | ||
*/ | ||
serialize: { value: function value() { | ||
return JSON.stringify({ | ||
jsonrpc: this.jsonrpc, | ||
id: this.id, | ||
error: this.error | ||
}); | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -488,4 +521,21 @@ } | ||
id: { value: id }, | ||
result: { value: result } | ||
result: { value: result }, | ||
/** | ||
* Serialize request object to string | ||
* @return {String} | ||
*/ | ||
serialize: { value: function value() { | ||
return JSON.stringify({ | ||
jsonrpc: this.jsonrpc, | ||
id: this.id, | ||
result: this.result | ||
}); | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -492,0 +542,0 @@ } |
@@ -16,3 +16,8 @@ /** | ||
return JSON.stringify(this); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -306,3 +311,8 @@ | ||
params: this.params }); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -410,3 +420,8 @@ } | ||
return JSON.stringify(ret); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -454,3 +469,21 @@ } | ||
id: { value: id }, | ||
error: { value: error } | ||
error: { value: error }, | ||
/** | ||
* Serialize request object to string | ||
* @return {String} | ||
*/ | ||
serialize: { value: function value() { | ||
return JSON.stringify({ | ||
jsonrpc: this.jsonrpc, | ||
id: this.id, | ||
error: this.error | ||
}); | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -484,4 +517,21 @@ } | ||
id: { value: id }, | ||
result: { value: result } | ||
result: { value: result }, | ||
/** | ||
* Serialize request object to string | ||
* @return {String} | ||
*/ | ||
serialize: { value: function value() { | ||
return JSON.stringify({ | ||
jsonrpc: this.jsonrpc, | ||
id: this.id, | ||
result: this.result | ||
}); | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -488,0 +538,0 @@ } |
@@ -28,3 +28,8 @@ (function (global, factory) { | ||
return JSON.stringify(this); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -318,3 +323,8 @@ | ||
params: this.params }); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -422,3 +432,8 @@ } | ||
return JSON.stringify(ret); | ||
} } | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -466,3 +481,21 @@ } | ||
id: { value: id }, | ||
error: { value: error } | ||
error: { value: error }, | ||
/** | ||
* Serialize request object to string | ||
* @return {String} | ||
*/ | ||
serialize: { value: function value() { | ||
return JSON.stringify({ | ||
jsonrpc: this.jsonrpc, | ||
id: this.id, | ||
error: this.error | ||
}); | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -496,4 +529,21 @@ } | ||
id: { value: id }, | ||
result: { value: result } | ||
result: { value: result }, | ||
/** | ||
* Serialize request object to string | ||
* @return {String} | ||
*/ | ||
serialize: { value: function value() { | ||
return JSON.stringify({ | ||
jsonrpc: this.jsonrpc, | ||
id: this.id, | ||
result: this.result | ||
}); | ||
} }, | ||
toJSON: { | ||
value: function value() { | ||
return this.serialize(); | ||
} | ||
} | ||
})); | ||
@@ -500,0 +550,0 @@ } |
{ | ||
"name": "@adt/json-rpc", | ||
"version": "0.0.1-SNAPSHOT.20", | ||
"version": "0.0.1-SNAPSHOT.21", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/JsonRpc.cjs.js", |
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
51546
1500