@mikezimm/fps-core-v7 1.0.19 → 1.0.20
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":"Logging.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/Logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjF,wBAAgB,cAAc,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,GAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"Logging.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/Logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjF,wBAAgB,cAAc,CAAC,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,GAAI,IAAI,CAU5F"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export function saveErrorToLog(errorInfo, errorInput) {
|
|
2
|
+
//Return if you are not supposed to log an error
|
|
3
|
+
if (errorInput.logErrors !== true) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
// https://github.com/mikezimm/fps-library-v2/issues/15
|
|
7
|
+
if (!errorInfo) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
2
10
|
const TEMPAlert = `saveErrorToLog Alert:\n\nerrorInfo\n${JSON.stringify(errorInfo)}\n\nerrorInput:\n\nerrorInput\n${errorInput}`;
|
|
3
11
|
alert(TEMPAlert);
|
|
4
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logging.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/Logging.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,cAAc,CAAC,SAA0B,EAAE,UAA0B;
|
|
1
|
+
{"version":3,"file":"Logging.js","sourceRoot":"","sources":["../../../../src/components/molecules/process-results/Logging.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,cAAc,CAAC,SAA0B,EAAE,UAA0B;IAEnF,gDAAgD;IAChD,IAAK,UAAU,CAAC,SAAS,KAAK,IAAI,EAAG;QAAE,OAAQ;KAAE;IAEjD,uDAAuD;IACvD,IAAK,CAAC,SAAS,EAAG;QAAE,OAAQ;KAAE;IAE9B,MAAM,SAAS,GAAG,uCAAuC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,kCAAkC,UAAU,EAAE,CAAA;IAChI,KAAK,CAAC,SAAS,CAAC,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikezimm/fps-core-v7",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "Library of reusable core interfaces, types and constants migrated from fps-library-v2",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
|
|
43
42
|
"@types/webpack": "^5.28.0",
|
|
44
43
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
|
45
44
|
"@typescript-eslint/parser": "^5.36.2",
|