@magic-xpa/utils 4.801.0-dev481.242 → 4.801.0-dev481.243

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,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('util'), require('xml2js')) :
3
- typeof define === 'function' && define.amd ? define('@magic-xpa/utils', ['exports', '@magic-xpa/mscorelib', 'util', 'xml2js'], factory) :
4
- (global = global || self, factory((global['magic-xpa'] = global['magic-xpa'] || {}, global['magic-xpa'].utils = {}), global.mscorelib, global.util, global.xml2js));
5
- }(this, (function (exports, mscorelib, util, xml2js) { 'use strict';
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 (!util.isNullOrUndefined(source))
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 (!util.isNullOrUndefined(source)) {
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 (util.isNullOrUndefined(message))
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]));