@genesislcap/foundation-errors 14.449.0 → 14.449.1-alpha-12eee28.0

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 +1 @@
1
- {"version":3,"file":"error-util.d.ts","sourceRoot":"","sources":["../../src/error-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,cAAc,KAAG,MAIzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,cAAc,KAAG,QAErD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,EAAE,SAAS,MAAM,KAAG,WAa/D,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,GAAI,SAAS,GAAG,KAAG,WAAW,GAAG,IAUjE,CAAC"}
1
+ {"version":3,"file":"error-util.d.ts","sourceRoot":"","sources":["../../src/error-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,cAAc,KAAG,MAIzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,SAAS,cAAc,KAAG,QAErD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,EAAE,SAAS,MAAM,KAAG,WAa/D,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,GAAI,SAAS,GAAG,KAAG,WAAW,GAAG,IAUjE,CAAC"}
@@ -1,4 +1,3 @@
1
- import { LogLevel } from '@genesislcap/foundation-logger';
2
1
  /**
3
2
  * ErrorBuilder to build ErrorStructure
4
3
  * @public
@@ -100,7 +99,7 @@ export class ErrorBuilder {
100
99
  errorDetails: this.errorDetails,
101
100
  };
102
101
  let config = {};
103
- if (this.logLevel in LogLevel) {
102
+ if (this.logLevel != null) {
104
103
  errorStructure = Object.assign({ logLevel: this.logLevel }, errorStructure);
105
104
  }
106
105
  if (this.alert) {
@@ -1,4 +1,4 @@
1
- import { LogLevel } from '@genesislcap/foundation-logger';
1
+ import { LogLevels } from '@genesislcap/foundation-logger';
2
2
  /**
3
3
  * Retrieves the error details from an ErrorStructure object
4
4
  * @public
@@ -19,7 +19,7 @@ export const getErrorDetails = (details) => {
19
19
  */
20
20
  export const getLoglevel = (details) => {
21
21
  var _a;
22
- return (details === null || details === void 0 ? void 0 : details.logLevel) || ((_a = details === null || details === void 0 ? void 0 : details.config) === null || _a === void 0 ? void 0 : _a.logLevel) || LogLevel.Error;
22
+ return (details === null || details === void 0 ? void 0 : details.logLevel) || ((_a = details === null || details === void 0 ? void 0 : details.config) === null || _a === void 0 ? void 0 : _a.logLevel) || LogLevels.error;
23
23
  };
24
24
  /**
25
25
  * Get/Create the error container in the DOM
@@ -852,7 +852,7 @@
852
852
  {
853
853
  "kind": "Reference",
854
854
  "text": "LogLevel",
855
- "canonicalReference": "consola!LogLevel:enum"
855
+ "canonicalReference": "consola!LogLevel:type"
856
856
  },
857
857
  {
858
858
  "kind": "Content",
@@ -1491,7 +1491,7 @@
1491
1491
  {
1492
1492
  "kind": "Reference",
1493
1493
  "text": "LogLevel",
1494
- "canonicalReference": "consola!LogLevel:enum"
1494
+ "canonicalReference": "consola!LogLevel:type"
1495
1495
  },
1496
1496
  {
1497
1497
  "kind": "Content",
@@ -1586,7 +1586,7 @@
1586
1586
  {
1587
1587
  "kind": "Reference",
1588
1588
  "text": "LogLevel",
1589
- "canonicalReference": "consola!LogLevel:enum"
1589
+ "canonicalReference": "consola!LogLevel:type"
1590
1590
  },
1591
1591
  {
1592
1592
  "kind": "Content",
@@ -1874,7 +1874,7 @@
1874
1874
  {
1875
1875
  "kind": "Reference",
1876
1876
  "text": "LogLevel",
1877
- "canonicalReference": "consola!LogLevel:enum"
1877
+ "canonicalReference": "consola!LogLevel:type"
1878
1878
  }
1879
1879
  ],
1880
1880
  "fileUrlPath": "src/error-util.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-errors",
3
3
  "description": "Genesis Foundation UI Error Utils",
4
- "version": "14.449.0",
4
+ "version": "14.449.1-alpha-12eee28.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -51,16 +51,16 @@
51
51
  }
52
52
  },
53
53
  "devDependencies": {
54
- "@genesislcap/foundation-testing": "14.449.0",
55
- "@genesislcap/genx": "14.449.0",
56
- "@genesislcap/rollup-builder": "14.449.0",
57
- "@genesislcap/ts-builder": "14.449.0",
58
- "@genesislcap/uvu-playwright-builder": "14.449.0",
59
- "@genesislcap/vite-builder": "14.449.0",
60
- "@genesislcap/webpack-builder": "14.449.0"
54
+ "@genesislcap/foundation-testing": "14.449.1-alpha-12eee28.0",
55
+ "@genesislcap/genx": "14.449.1-alpha-12eee28.0",
56
+ "@genesislcap/rollup-builder": "14.449.1-alpha-12eee28.0",
57
+ "@genesislcap/ts-builder": "14.449.1-alpha-12eee28.0",
58
+ "@genesislcap/uvu-playwright-builder": "14.449.1-alpha-12eee28.0",
59
+ "@genesislcap/vite-builder": "14.449.1-alpha-12eee28.0",
60
+ "@genesislcap/webpack-builder": "14.449.1-alpha-12eee28.0"
61
61
  },
62
62
  "dependencies": {
63
- "@genesislcap/foundation-logger": "14.449.0"
63
+ "@genesislcap/foundation-logger": "14.449.1-alpha-12eee28.0"
64
64
  },
65
65
  "repository": {
66
66
  "type": "git",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "f12978be0dece5ab995762c4811e201080669496"
73
+ "gitHead": "ec3e5e01881f0b7d4ffc913bb98eb58d2d2a9c6d"
74
74
  }