@common-stack/core 3.0.2-alpha.4 → 3.0.2-alpha.5

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.
@@ -1,14 +1,14 @@
1
- export const CommonType = {
1
+ const CommonType = {
2
2
  LOGGER: 'LOGGER',
3
3
  ENVIRONMENT: 'ENVIRONMENT',
4
4
  HEMERA: 'HEMERA',
5
5
  MOLECULER_BROKER: 'MOLECULER_BROKER',
6
6
  PUBSUB: 'PUBSUB',
7
7
  };
8
- export const TaggedType = {
8
+ const TaggedType = {
9
9
  MICROSERVICE: 'MICROSERVICE',
10
10
  };
11
- export const ClientTypes = {
11
+ const ClientTypes = {
12
12
  // common types
13
13
  Logger: Symbol.for('Logger'),
14
14
  ApolloClient: Symbol.for('ApolloClient'),
@@ -16,9 +16,8 @@ export const ClientTypes = {
16
16
  InMemoryCache: Symbol.for('InMemoryCache'),
17
17
  UtilityClass: Symbol.for('UtilityClass'),
18
18
  };
19
- export const ElectronTypes = {
19
+ const ElectronTypes = {
20
20
  MainWindow: Symbol.for('MainWindow'),
21
21
  AboutWindow: Symbol.for('AboutWindow'),
22
22
  TrayWindow: Symbol.for('TrayWindow'),
23
- };
24
- //# sourceMappingURL=types.js.map
23
+ };export{ClientTypes,CommonType,ElectronTypes,TaggedType};//# sourceMappingURL=types.js.map
@@ -1 +1 @@
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,M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AACpC,IAAA,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC;AACtC,IAAA,UAAU,EAAE,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;"}
@@ -1,4 +1,4 @@
1
- export class FieldError {
1
+ class FieldError {
2
2
  constructor() {
3
3
  this.errors = {};
4
4
  }
@@ -19,5 +19,4 @@ export class FieldError {
19
19
  throw this.getErrors();
20
20
  }
21
21
  }
22
- }
23
- //# sourceMappingURL=field-error.js.map
22
+ }export{FieldError};//# sourceMappingURL=field-error.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"field-error.js","sources":["../src/field-error.ts"],"sourcesContent":[null],"names":[],"mappings":"MAAa,UAAU,CAAA;AAGnB,IAAA,WAAA,GAAA;AACI,QAAA,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;KACpB;IAEM,MAAM,GAAA;AACT,QAAA,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;KAC5C;IAEM,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAA;AAC1B,QAAA,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;KAChC;IAEM,SAAS,GAAA;AACZ,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,KAAK,KAAK;YAC1C,KAAK;AACL,YAAA,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;AAC9B,SAAA,CAAC,CAAC,CAAC;KACP;IAEM,OAAO,GAAA;AACV,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE;AACf,YAAA,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;AAC1B,SAAA;KACJ;AACJ"}
package/lib/index.js CHANGED
@@ -1,4 +1 @@
1
- export * from './field-error';
2
- export * from './interfaces';
3
- export * from './constants';
4
- //# sourceMappingURL=index.js.map
1
+ export{FieldError}from'./field-error.js';export{ClientTypes,CommonType,ElectronTypes,TaggedType}from'./constants/types.js';//# 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":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@common-stack/core",
3
- "version": "3.0.2-alpha.4",
3
+ "version": "3.0.2-alpha.5",
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
8
  "module": "lib/index.js",
9
+ "type": "module",
9
10
  "typings": "lib/index.d.ts",
10
11
  "scripts": {
11
12
  "build": "yarn build:clean && yarn build:lib",
12
13
  "build:clean": "rimraf lib",
13
- "build:lib": "tsc",
14
+ "build:lib": "rollup -c rollup.config.mjs",
14
15
  "build:lib:watch": "yarn build:lib -- --watch",
15
16
  "jest": "./node_modules/.bin/jest",
16
17
  "prepublish": "yarn build",
@@ -25,5 +26,5 @@
25
26
  "typescript": {
26
27
  "definition": "lib/index.d.ts"
27
28
  },
28
- "gitHead": "7deb1a3481f99ae891bcd92f4ca426f9526c1cf7"
29
+ "gitHead": "7a5b0b3aa99a29b9408d46afdde2f96f9009d7b2"
29
30
  }
@@ -1,2 +0,0 @@
1
- export * from './types';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
package/lib/envalid.js DELETED
@@ -1,18 +0,0 @@
1
- import * as envalid from 'envalid';
2
- function buildEnv(environment, specs, options) {
3
- const envalidConfig = Object.keys(specs).reduce((prev, key) => {
4
- return Object.assign(Object.assign({}, prev), { [key]: {
5
- required: !!!specs[key].default,
6
- devRequired: !(!!specs[key].default || !!specs[key].devDefault),
7
- } });
8
- }, {});
9
- function cleanEnv() {
10
- return envalid.cleanEnv(environment, specs, options);
11
- }
12
- return {
13
- envalidConfig,
14
- cleanEnv,
15
- };
16
- }
17
- export { buildEnv };
18
- //# sourceMappingURL=envalid.js.map
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=common-settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-settings.js","sourceRoot":"","sources":["../../src/interfaces/common-settings.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './common-settings';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}