@common-stack/core 0.2.1 → 0.2.14

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/lib/index.js CHANGED
@@ -1,104 +1,21 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = "./src/index.ts");
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
89
4
 
90
5
  /***/ "./src/constants/index.ts":
91
6
  /*!********************************!*\
92
7
  !*** ./src/constants/index.ts ***!
93
8
  \********************************/
94
- /*! no static exports found */
95
- /***/ (function(module, exports, __webpack_require__) {
9
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
96
10
 
97
- "use strict";
98
11
 
99
12
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
100
13
  if (k2 === undefined) k2 = k;
101
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
14
+ var desc = Object.getOwnPropertyDescriptor(m, k);
15
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16
+ desc = { enumerable: true, get: function() { return m[k]; } };
17
+ }
18
+ Object.defineProperty(o, k2, desc);
102
19
  }) : (function(o, m, k, k2) {
103
20
  if (k2 === undefined) k2 = k;
104
21
  o[k2] = m[k];
@@ -106,7 +23,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
106
23
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
107
24
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
108
25
  };
109
- Object.defineProperty(exports, "__esModule", { value: true });
26
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
110
27
  __exportStar(__webpack_require__(/*! ./types */ "./src/constants/types.ts"), exports);
111
28
 
112
29
 
@@ -116,12 +33,10 @@ __exportStar(__webpack_require__(/*! ./types */ "./src/constants/types.ts"), exp
116
33
  /*!********************************!*\
117
34
  !*** ./src/constants/types.ts ***!
118
35
  \********************************/
119
- /*! no static exports found */
120
- /***/ (function(module, exports, __webpack_require__) {
36
+ /***/ ((__unused_webpack_module, exports) => {
121
37
 
122
- "use strict";
123
38
 
124
- Object.defineProperty(exports, "__esModule", { value: true });
39
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
125
40
  exports.ElectronTypes = exports.ClientTypes = exports.TaggedType = exports.CommonType = void 0;
126
41
  var CommonType;
127
42
  (function (CommonType) {
@@ -155,12 +70,10 @@ exports.ElectronTypes = {
155
70
  /*!****************************!*\
156
71
  !*** ./src/field-error.ts ***!
157
72
  \****************************/
158
- /*! no static exports found */
159
- /***/ (function(module, exports, __webpack_require__) {
73
+ /***/ ((__unused_webpack_module, exports) => {
160
74
 
161
- "use strict";
162
75
 
163
- Object.defineProperty(exports, "__esModule", { value: true });
76
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
164
77
  exports.FieldError = void 0;
165
78
  class FieldError {
166
79
  constructor() {
@@ -193,14 +106,16 @@ exports.FieldError = FieldError;
193
106
  /*!**********************!*\
194
107
  !*** ./src/index.ts ***!
195
108
  \**********************/
196
- /*! no static exports found */
197
- /***/ (function(module, exports, __webpack_require__) {
109
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
198
110
 
199
- "use strict";
200
111
 
201
112
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
202
113
  if (k2 === undefined) k2 = k;
203
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
114
+ var desc = Object.getOwnPropertyDescriptor(m, k);
115
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
116
+ desc = { enumerable: true, get: function() { return m[k]; } };
117
+ }
118
+ Object.defineProperty(o, k2, desc);
204
119
  }) : (function(o, m, k, k2) {
205
120
  if (k2 === undefined) k2 = k;
206
121
  o[k2] = m[k];
@@ -208,7 +123,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
208
123
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
209
124
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
210
125
  };
211
- Object.defineProperty(exports, "__esModule", { value: true });
126
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
212
127
  __exportStar(__webpack_require__(/*! ./field-error */ "./src/field-error.ts"), exports);
213
128
  __exportStar(__webpack_require__(/*! ./interfaces */ "./src/interfaces/index.ts"), exports);
214
129
  __exportStar(__webpack_require__(/*! ./constants */ "./src/constants/index.ts"), exports);
@@ -220,12 +135,10 @@ __exportStar(__webpack_require__(/*! ./constants */ "./src/constants/index.ts"),
220
135
  /*!*******************************************!*\
221
136
  !*** ./src/interfaces/common-settings.ts ***!
222
137
  \*******************************************/
223
- /*! no static exports found */
224
- /***/ (function(module, exports, __webpack_require__) {
138
+ /***/ ((__unused_webpack_module, exports) => {
225
139
 
226
- "use strict";
227
140
 
228
- Object.defineProperty(exports, "__esModule", { value: true });
141
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
229
142
 
230
143
 
231
144
  /***/ }),
@@ -234,14 +147,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
234
147
  /*!*********************************!*\
235
148
  !*** ./src/interfaces/index.ts ***!
236
149
  \*********************************/
237
- /*! no static exports found */
238
- /***/ (function(module, exports, __webpack_require__) {
150
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
239
151
 
240
- "use strict";
241
152
 
242
153
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
243
154
  if (k2 === undefined) k2 = k;
244
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
155
+ var desc = Object.getOwnPropertyDescriptor(m, k);
156
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
157
+ desc = { enumerable: true, get: function() { return m[k]; } };
158
+ }
159
+ Object.defineProperty(o, k2, desc);
245
160
  }) : (function(o, m, k, k2) {
246
161
  if (k2 === undefined) k2 = k;
247
162
  o[k2] = m[k];
@@ -249,11 +164,46 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
249
164
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
250
165
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
251
166
  };
252
- Object.defineProperty(exports, "__esModule", { value: true });
167
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
253
168
  __exportStar(__webpack_require__(/*! ./common-settings */ "./src/interfaces/common-settings.ts"), exports);
254
169
 
255
170
 
256
171
  /***/ })
257
172
 
258
- /******/ });
173
+ /******/ });
174
+ /************************************************************************/
175
+ /******/ // The module cache
176
+ /******/ var __webpack_module_cache__ = {};
177
+ /******/
178
+ /******/ // The require function
179
+ /******/ function __webpack_require__(moduleId) {
180
+ /******/ // Check if module is in cache
181
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
182
+ /******/ if (cachedModule !== undefined) {
183
+ /******/ return cachedModule.exports;
184
+ /******/ }
185
+ /******/ // Create a new module (and put it into the cache)
186
+ /******/ var module = __webpack_module_cache__[moduleId] = {
187
+ /******/ // no module.id needed
188
+ /******/ // no module.loaded needed
189
+ /******/ exports: {}
190
+ /******/ };
191
+ /******/
192
+ /******/ // Execute the module function
193
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
194
+ /******/
195
+ /******/ // Return the exports of the module
196
+ /******/ return module.exports;
197
+ /******/ }
198
+ /******/
199
+ /************************************************************************/
200
+ /******/
201
+ /******/ // startup
202
+ /******/ // Load entry module and return exports
203
+ /******/ // This entry module is referenced by other modules so it can't be inlined
204
+ /******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
205
+ /******/ module.exports["@common-stack/core"] = __webpack_exports__;
206
+ /******/
207
+ /******/ })()
208
+ ;
259
209
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://@common-stack/core/webpack/bootstrap","webpack://@common-stack/core/./src/constants/index.ts","webpack://@common-stack/core/./src/constants/types.ts","webpack://@common-stack/core/./src/field-error.ts","webpack://@common-stack/core/./src/index.ts","webpack://@common-stack/core/./src/interfaces/index.ts"],"names":[],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;;;;AClFA,sFAAwB;;;;;;;;;;;;;;;;ACCxB,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,+BAAiB;IACjB,yCAA2B;IAC3B,+BAAiB;IACjB,mDAAqC;IACrC,+BAAiB;AACrB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IAClB,2CAA6B;AACjC,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAEY,mBAAW,GAAG;IACvB,eAAe;IACf,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;IACxC,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;CAC3C,CAAC;AAEW,qBAAa,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;CACvC;;;;;;;;;;;;;;;;ACzBD,MAAa,UAAU;IAGnB;QACI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IAEM,MAAM;QACT,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;IAC7C,CAAC;IAEM,QAAQ,CAAC,KAAK,EAAE,OAAO;QAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAEM,SAAS;QACZ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC1C,KAAK;YACL,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;SAC9B,CAAC,CAAC,CAAC;IACR,CAAC;IAEM,OAAO;QACV,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE;YACf,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;SAC1B;IACL,CAAC;CACJ;AA3BD,gCA2BC;;;;;;;;;;;;;;;;;;;;;;;;;AC3BD,wFAA8B;AAC9B,4FAA6B;AAC7B,0FAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACF5B,2GAAkC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.ts\");\n","export * from './types';\n","\nexport enum CommonType {\n LOGGER = 'LOGGER',\n ENVIRONMENT = 'ENVIRONMENT',\n HEMERA = 'HEMERA',\n MOLECULER_BROKER = 'MOLECULER_BROKER',\n PUBSUB = 'PUBSUB',\n}\n\nexport enum TaggedType {\n MICROSERVICE = 'MICROSERVICE',\n}\n\nexport const ClientTypes = {\n // common types\n Logger: Symbol.for('Logger'),\n ApolloClient: Symbol.for('ApolloClient'),\n InMemoryCache: Symbol.for('InMemoryCache'),\n UtilityClass: Symbol.for('UtilityClass'),\n};\n\nexport const ElectronTypes = {\n MainWindow: Symbol.for('MainWindow'),\n AboutWindow: Symbol.for('AboutWindow'),\n TrayWindow: Symbol.for('TrayWindow'),\n}\n\n","export class FieldError {\n private errors: {};\n\n constructor() {\n this.errors = {};\n }\n\n public hasAny() {\n return !!Object.keys(this.errors).length;\n }\n\n public setError(field, message) {\n this.errors[field] = message;\n }\n\n public getErrors() {\n return Object.keys(this.errors).map(field => ({\n field,\n message: this.errors[field],\n }));\n }\n\n public throwIf() {\n if (this.hasAny()) {\n throw this.getErrors();\n }\n }\n}\n","export * from './field-error';\nexport * from './interfaces';\nexport * from './constants';\n","export * from './common-settings';\n"],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sFAAwB;;;;;;;;;;;;;;ACCxB,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,+BAAiB;IACjB,yCAA2B;IAC3B,+BAAiB;IACjB,mDAAqC;IACrC,+BAAiB;AACrB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IAClB,2CAA6B;AACjC,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAEY,mBAAW,GAAG;IACvB,eAAe;IACf,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;IACxC,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;CAC3C,CAAC;AAEW,qBAAa,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;CACvC;;;;;;;;;;;;;;ACzBD,MAAa,UAAU;IAGnB;QACI,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;IAEM,MAAM;QACT,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;IAC7C,CAAC;IAEM,QAAQ,CAAC,KAAK,EAAE,OAAO;QAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAEM,SAAS;QACZ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YAC1C,KAAK;YACL,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;SAC9B,CAAC,CAAC,CAAC;IACR,CAAC;IAEM,OAAO;QACV,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE;YACf,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;SAC1B;IACL,CAAC;CACJ;AA3BD,gCA2BC;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3BD,wFAA8B;AAC9B,4FAA6B;AAC7B,0FAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AEF5B,2GAAkC;;;;;;;UCAlC;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://@common-stack/core/./src/constants/index.ts","webpack://@common-stack/core/./src/constants/types.ts","webpack://@common-stack/core/./src/field-error.ts","webpack://@common-stack/core/./src/index.ts","webpack://@common-stack/core/./src/interfaces/common-settings.ts","webpack://@common-stack/core/./src/interfaces/index.ts","webpack://@common-stack/core/webpack/bootstrap","webpack://@common-stack/core/webpack/before-startup","webpack://@common-stack/core/webpack/startup","webpack://@common-stack/core/webpack/after-startup"],"sourcesContent":["export * from './types';\n","\nexport enum CommonType {\n LOGGER = 'LOGGER',\n ENVIRONMENT = 'ENVIRONMENT',\n HEMERA = 'HEMERA',\n MOLECULER_BROKER = 'MOLECULER_BROKER',\n PUBSUB = 'PUBSUB',\n}\n\nexport enum TaggedType {\n MICROSERVICE = 'MICROSERVICE',\n}\n\nexport const ClientTypes = {\n // common types\n Logger: Symbol.for('Logger'),\n ApolloClient: Symbol.for('ApolloClient'),\n InMemoryCache: Symbol.for('InMemoryCache'),\n UtilityClass: Symbol.for('UtilityClass'),\n};\n\nexport const ElectronTypes = {\n MainWindow: Symbol.for('MainWindow'),\n AboutWindow: Symbol.for('AboutWindow'),\n TrayWindow: Symbol.for('TrayWindow'),\n}\n\n","export class FieldError {\n private errors: {};\n\n constructor() {\n this.errors = {};\n }\n\n public hasAny() {\n return !!Object.keys(this.errors).length;\n }\n\n public setError(field, message) {\n this.errors[field] = message;\n }\n\n public getErrors() {\n return Object.keys(this.errors).map(field => ({\n field,\n message: this.errors[field],\n }));\n }\n\n public throwIf() {\n if (this.hasAny()) {\n throw this.getErrors();\n }\n }\n}\n","export * from './field-error';\nexport * from './interfaces';\nexport * from './constants';\n","\nexport interface ICommonSettings {\n namespace?: string;\n connectionId?: string;\n subTopic?: string;\n [key: string]: string | number | any;\n}\n\n","export * from './common-settings';\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./src/index.ts\");\n",""],"names":[],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.14",
4
4
  "description": "Common core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -24,5 +24,5 @@
24
24
  "typescript": {
25
25
  "definition": "lib/index.d.ts"
26
26
  },
27
- "gitHead": "8cc362c6c7307e7ea43a9563ccdcb938c93c6008"
27
+ "gitHead": "fb916a34d61476fd21e00134852597adea395d71"
28
28
  }