@magic-xpa/utils 4.801.0-dev481.241 → 4.801.0-dev481.245
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/bundles/magic-xpa-utils.umd.js +7 -7
- package/bundles/magic-xpa-utils.umd.js.map +1 -1
- package/bundles/magic-xpa-utils.umd.min.js +1 -1
- package/bundles/magic-xpa-utils.umd.min.js.map +1 -1
- package/esm2015/src/Logger.js +2 -3
- package/esm2015/src/StrUtil.js +2 -3
- package/fesm2015/magic-xpa-utils.js +1 -2
- package/fesm2015/magic-xpa-utils.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@magic-xpa/utils', ['exports', '@magic-xpa/mscorelib', '
|
|
4
|
-
(global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].utils = {}), global.mscorelib, global.
|
|
5
|
-
}(this, (function (exports, mscorelib,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('xml2js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@magic-xpa/utils', ['exports', '@magic-xpa/mscorelib', 'xml2js'], factory) :
|
|
4
|
+
(global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].utils = {}), global.mscorelib, global.xml2js));
|
|
5
|
+
}(this, (function (exports, mscorelib, xml2js) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var UtilStrByteMode = /** @class */ (function () {
|
|
8
8
|
function UtilStrByteMode() {
|
|
@@ -1354,14 +1354,14 @@
|
|
|
1354
1354
|
};
|
|
1355
1355
|
StrUtil.getConsoleErorString = function (source) {
|
|
1356
1356
|
var consoleErorString = "";
|
|
1357
|
-
if (!
|
|
1357
|
+
if (!mscorelib.isNullOrUndefined(source))
|
|
1358
1358
|
consoleErorString = this.searchAndReplace(source, TASK_PATH_DELIMITER, "");
|
|
1359
1359
|
return consoleErorString;
|
|
1360
1360
|
};
|
|
1361
1361
|
StrUtil.getMsgBoxErorString = function (source) {
|
|
1362
1362
|
var tokens;
|
|
1363
1363
|
var msgBoxErorString = new mscorelib.StringBuilder("");
|
|
1364
|
-
if (!
|
|
1364
|
+
if (!mscorelib.isNullOrUndefined(source)) {
|
|
1365
1365
|
tokens = this.tokenize(source, TASK_PATH_DELIMITER);
|
|
1366
1366
|
for (var i = 0; i < tokens.length; i++) {
|
|
1367
1367
|
msgBoxErorString.Append(tokens[i]);
|
|
@@ -4245,7 +4245,7 @@
|
|
|
4245
4245
|
]));
|
|
4246
4246
|
};
|
|
4247
4247
|
Logger.prototype.WriteExceptionToLog_2 = function (ex, message) {
|
|
4248
|
-
if (
|
|
4248
|
+
if (mscorelib.isNullOrUndefined(message))
|
|
4249
4249
|
this.WriteExceptionToLogWithMsg(mscorelib.NString.Format("{0}{1}{2}", [ex.stack, OSEnvironment.EolSeq, ex.message]));
|
|
4250
4250
|
else
|
|
4251
4251
|
this.WriteExceptionToLogWithMsg(mscorelib.NString.Format("{0}{1}{2}{4}{5}", [message, OSEnvironment.EolSeq, ex.stack, OSEnvironment.EolSeq, ex.message]));
|