js-gei 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SetConfig = SetConfig;
4
4
  exports.GetViewObject = GetViewObject;
5
5
  // @ts-ignore
6
- const jsonrpc_2_0_1 = require("./Library/jsonrpc-2.0");
6
+ const RpcClient_1 = require("./Library/RpcClient");
7
7
  function SetConfig(url) {
8
- jsonrpc_2_0_1.RpcClient.config.url = url;
9
- jsonrpc_2_0_1.RpcClient.config.cors = true;
8
+ RpcClient_1.RpcClient.config.url = url;
9
+ RpcClient_1.RpcClient.config.cors = true;
10
10
  }
11
11
  function GetViewObject(legislation, seller, buyer, properties, document, payments, ctx, cb) {
12
12
  CallRT("GEI.EvaluateObject1", {
@@ -20,7 +20,7 @@ function GetViewObject(legislation, seller, buyer, properties, document, payment
20
20
  }, ctx, cb);
21
21
  }
22
22
  function CallRT(method, params, ctx, cb) {
23
- jsonrpc_2_0_1.RpcClient.call(method, params)
23
+ RpcClient_1.RpcClient.call(method, params)
24
24
  .done(function (response) {
25
25
  console.log(response);
26
26
  cb(response);
@@ -28,7 +28,7 @@ function CallRT(method, params, ctx, cb) {
28
28
  .post(getStdRpcContext());
29
29
  }
30
30
  function getStdRpcContext() {
31
- return jsonrpc_2_0_1.RpcClient.context().onRpcError(function (e) {
31
+ return RpcClient_1.RpcClient.context().onRpcError(function (e) {
32
32
  }).onDefaultApiError(function (e) {
33
33
  }).onDefaultApiSuccess(function (res) {
34
34
  });
package/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore
2
- import { RpcClient } from './Library/jsonrpc-2.0';
2
+ import { RpcClient } from './Library/RpcClient';
3
3
 
4
4
 
5
5
  export function SetConfig(url:string)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-gei",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {