dtable-sdk
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -51,3 +51,3 @@ "use strict"; | ||
var _init = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(config) { | ||
var res, _res$data, app_name, access_token, dtable_uuid, dtable_server, dtable_socket; | ||
var res, _res$data, app_name, access_token, dtable_uuid, dtable_server, dtable_socket, dtable_db; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -64,3 +64,3 @@ while (1) { | ||
res = _context.sent; | ||
_res$data = res.data, app_name = _res$data.app_name, access_token = _res$data.access_token, dtable_uuid = _res$data.dtable_uuid, dtable_server = _res$data.dtable_server, dtable_socket = _res$data.dtable_socket; | ||
_res$data = res.data, app_name = _res$data.app_name, access_token = _res$data.access_token, dtable_uuid = _res$data.dtable_uuid, dtable_server = _res$data.dtable_server, dtable_socket = _res$data.dtable_socket, dtable_db = _res$data.dtable_db; | ||
this.config.appName = app_name; | ||
@@ -71,12 +71,13 @@ this.config.accessToken = access_token; | ||
this.config.dtableSocket = dtable_socket.replace(/\/+$/, '') + '/'; | ||
this.config.dtableDb = dtable_db.replace(/\/+$/, '') + '/'; | ||
this.dtableServerAPI = new _dtableServerApi["default"](this.config); | ||
this.dtableStore = new _dtableStore.DTableStore(this.config); | ||
this.eventBus = this.dtableStore.eventBus; | ||
_context.next = 20; | ||
_context.next = 21; | ||
break; | ||
case 17: | ||
_context.prev = 17; | ||
case 18: | ||
_context.prev = 18; | ||
_context.t0 = _context["catch"](2); | ||
console.log(_context.t0); | ||
case 20: | ||
case 21: | ||
case "end": | ||
@@ -86,3 +87,3 @@ return _context.stop(); | ||
} | ||
}, _callee, this, [[2, 17]]); | ||
}, _callee, this, [[2, 18]]); | ||
})); | ||
@@ -89,0 +90,0 @@ function init(_x) { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.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
65243
1386