@wiotp/sdk 0.8.1 → 0.8.2-alpha.1
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/BaseClient.js +12 -13
- package/dist/BaseConfig.js +5 -6
- package/dist/api/ApiClient.js +7 -8
- package/dist/api/ApiErrors.js +16 -16
- package/dist/api/DscClient.js +7 -8
- package/dist/api/LecClient.js +6 -7
- package/dist/api/MgmtClient.js +6 -7
- package/dist/api/RegistryClient.js +5 -6
- package/dist/api/RulesClient.js +6 -7
- package/dist/api/StateClient.js +6 -7
- package/dist/application/ApplicationClient.js +16 -16
- package/dist/application/ApplicationConfig.js +12 -13
- package/dist/application/index.js +1 -1
- package/dist/bundled/wiotp-bundle.js +2841 -1840
- package/dist/bundled/wiotp-bundle.min.js +7 -7
- package/dist/device/DeviceClient.js +16 -16
- package/dist/device/DeviceConfig.js +12 -13
- package/dist/device/index.js +1 -1
- package/dist/gateway/GatewayClient.js +16 -16
- package/dist/gateway/GatewayConfig.js +12 -13
- package/dist/gateway/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +17 -17
|
@@ -7,19 +7,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports["default"] = void 0;
|
|
8
8
|
var _BaseConfig2 = _interopRequireDefault(require("../BaseConfig"));
|
|
9
9
|
var _loglevel = _interopRequireDefault(require("loglevel"));
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _classCallCheck(
|
|
12
|
-
function _defineProperties(
|
|
13
|
-
function _createClass(
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
|
-
function _possibleConstructorReturn(
|
|
18
|
-
function _assertThisInitialized(
|
|
17
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
18
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
-
function _getPrototypeOf(
|
|
21
|
-
function _inherits(
|
|
22
|
-
function _setPrototypeOf(
|
|
20
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
21
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
22
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /**
|
|
23
23
|
*****************************************************************************
|
|
24
24
|
Copyright (c) 2019 IBM Corporation and other Contributors.
|
|
25
25
|
All rights reserved. This program and the accompanying materials
|
|
@@ -34,7 +34,6 @@ var fs = require('fs');
|
|
|
34
34
|
var _require = require('uuid'),
|
|
35
35
|
uuidv4 = _require.v4;
|
|
36
36
|
var ApplicationConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig) {
|
|
37
|
-
_inherits(ApplicationConfig, _BaseConfig);
|
|
38
37
|
function ApplicationConfig(identity, auth, options) {
|
|
39
38
|
var _this;
|
|
40
39
|
_classCallCheck(this, ApplicationConfig);
|
|
@@ -63,7 +62,8 @@ var ApplicationConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig)
|
|
|
63
62
|
}
|
|
64
63
|
return _this;
|
|
65
64
|
}
|
|
66
|
-
|
|
65
|
+
_inherits(ApplicationConfig, _BaseConfig);
|
|
66
|
+
return _createClass(ApplicationConfig, [{
|
|
67
67
|
key: "getOrgId",
|
|
68
68
|
value: function getOrgId() {
|
|
69
69
|
if (this.auth == null) {
|
|
@@ -237,5 +237,4 @@ var ApplicationConfig = exports["default"] = /*#__PURE__*/function (_BaseConfig)
|
|
|
237
237
|
return new ApplicationConfig(data['identity'], data['auth'], data['options']);
|
|
238
238
|
}
|
|
239
239
|
}]);
|
|
240
|
-
return ApplicationConfig;
|
|
241
240
|
}(_BaseConfig2["default"]);
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "ApplicationConfig", {
|
|
|
17
17
|
});
|
|
18
18
|
var _ApplicationClient = _interopRequireDefault(require("./ApplicationClient"));
|
|
19
19
|
var _ApplicationConfig = _interopRequireDefault(require("./ApplicationConfig"));
|
|
20
|
-
function _interopRequireDefault(
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|