Comparing version 1.1.3 to 1.1.4
@@ -33,8 +33,15 @@ 'use strict'; | ||
this.url = url; | ||
this.headers = {}; | ||
} | ||
_createClass(JrusClient, [{ | ||
key: 'setHeader', | ||
value: function setHeader(key, value) { | ||
this.headers[key] = value; | ||
} | ||
}, { | ||
key: 'services', | ||
get: function get() { | ||
var url = this.url; | ||
var url = this.url, | ||
headers = this.headers; | ||
@@ -85,2 +92,3 @@ return new Proxy({}, { | ||
return (0, _axios2.default)({ | ||
headers: headers, | ||
method: 'post', | ||
@@ -87,0 +95,0 @@ url: url, |
{ | ||
"name": "jrus", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Jrus is a server-client communication utility package, which facilitates **seamless** remote procedure call.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
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
66833
809