@common-stack/core 0.5.29 → 0.5.31
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/constants/index.js +1 -17
- package/lib/constants/index.js.map +1 -1
- package/lib/constants/types.js +4 -7
- package/lib/constants/types.js.map +1 -1
- package/lib/envalid.js +2 -5
- package/lib/envalid.js.map +1 -1
- package/lib/field-error.js +1 -5
- package/lib/field-error.js.map +1 -1
- package/lib/index.js +3 -19
- package/lib/index.js.map +1 -1
- package/lib/interfaces/common-settings.js +1 -2
- package/lib/interfaces/index.js +1 -17
- package/lib/interfaces/index.js.map +1 -1
- package/package.json +3 -2
package/lib/constants/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './types';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/lib/constants/types.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ElectronTypes = exports.ClientTypes = exports.TaggedType = exports.CommonType = void 0;
|
|
4
|
-
exports.CommonType = {
|
|
1
|
+
export const CommonType = {
|
|
5
2
|
LOGGER: 'LOGGER',
|
|
6
3
|
ENVIRONMENT: 'ENVIRONMENT',
|
|
7
4
|
HEMERA: 'HEMERA',
|
|
8
5
|
MOLECULER_BROKER: 'MOLECULER_BROKER',
|
|
9
6
|
PUBSUB: 'PUBSUB',
|
|
10
7
|
};
|
|
11
|
-
|
|
8
|
+
export const TaggedType = {
|
|
12
9
|
MICROSERVICE: 'MICROSERVICE',
|
|
13
10
|
};
|
|
14
|
-
|
|
11
|
+
export const ClientTypes = {
|
|
15
12
|
// common types
|
|
16
13
|
Logger: Symbol.for('Logger'),
|
|
17
14
|
ApolloClient: Symbol.for('ApolloClient'),
|
|
@@ -19,7 +16,7 @@ exports.ClientTypes = {
|
|
|
19
16
|
InMemoryCache: Symbol.for('InMemoryCache'),
|
|
20
17
|
UtilityClass: Symbol.for('UtilityClass'),
|
|
21
18
|
};
|
|
22
|
-
|
|
19
|
+
export const ElectronTypes = {
|
|
23
20
|
MainWindow: Symbol.for('MainWindow'),
|
|
24
21
|
AboutWindow: Symbol.for('AboutWindow'),
|
|
25
22
|
TrayWindow: Symbol.for('TrayWindow'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/constants/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/constants/types.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,kBAAkB;IACpC,MAAM,EAAE,QAAQ;CACnB,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,YAAY,EAAE,cAAc;CAC/B,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,eAAe;IACf,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;IACxC,mBAAmB,EAAE,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC;IACtD,aAAa,EAAE,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC;CAC3C,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,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,CAAA"}
|
package/lib/envalid.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildEnv = void 0;
|
|
4
|
-
const envalid = require("envalid");
|
|
1
|
+
import * as envalid from 'envalid';
|
|
5
2
|
function buildEnv(environment, specs, options) {
|
|
6
3
|
const envalidConfig = Object.keys(specs).reduce((prev, key) => {
|
|
7
4
|
return Object.assign(Object.assign({}, prev), { [key]: {
|
|
@@ -17,5 +14,5 @@ function buildEnv(environment, specs, options) {
|
|
|
17
14
|
cleanEnv,
|
|
18
15
|
};
|
|
19
16
|
}
|
|
20
|
-
|
|
17
|
+
export { buildEnv };
|
|
21
18
|
//# sourceMappingURL=envalid.js.map
|
package/lib/envalid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envalid.js","sourceRoot":"","sources":["../src/envalid.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"envalid.js","sourceRoot":"","sources":["../src/envalid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,SAAS,QAAQ,CACb,WAAoB,EACpB,KAAsD,EACtD,OAAiC;IAEjC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QACvG,uCACO,IAAI,KACP,CAAC,GAAG,CAAC,EAAE;gBACH,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO;gBAC/B,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC;aAClE,IACH;IACN,CAAC,EAAE,EAAiD,CAAC,CAAC;IAEtD,SAAS,QAAQ;QACb,OAAO,OAAO,CAAC,QAAQ,CAAI,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO;QACH,aAAa;QACb,QAAQ;KACX,CAAC;AACN,CAAC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/lib/field-error.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FieldError = void 0;
|
|
4
|
-
class FieldError {
|
|
1
|
+
export class FieldError {
|
|
5
2
|
constructor() {
|
|
6
3
|
this.errors = {};
|
|
7
4
|
}
|
|
@@ -23,5 +20,4 @@ class FieldError {
|
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
exports.FieldError = FieldError;
|
|
27
23
|
//# sourceMappingURL=field-error.js.map
|
package/lib/field-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-error.js","sourceRoot":"","sources":["../src/field-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-error.js","sourceRoot":"","sources":["../src/field-error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,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"}
|
package/lib/index.js
CHANGED
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./field-error"), exports);
|
|
18
|
-
__exportStar(require("./interfaces"), exports);
|
|
19
|
-
__exportStar(require("./constants"), exports);
|
|
1
|
+
export * from './field-error';
|
|
2
|
+
export * from './interfaces';
|
|
3
|
+
export * from './constants';
|
|
20
4
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/lib/interfaces/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./common-settings"), exports);
|
|
1
|
+
export * from './common-settings';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.31",
|
|
4
4
|
"description": "Common core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
|
+
"module": "lib/index.js",
|
|
8
9
|
"typings": "lib/index.d.ts",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"build": "yarn build:clean && yarn build:lib",
|
|
@@ -24,5 +25,5 @@
|
|
|
24
25
|
"typescript": {
|
|
25
26
|
"definition": "lib/index.d.ts"
|
|
26
27
|
},
|
|
27
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f3e288ca7e3bd9107cecbd5e3a02e673da017549"
|
|
28
29
|
}
|