@magic-xpa/mscorelib 4.800.0-dev480.22 → 4.800.0-dev480.220

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.
Files changed (40) hide show
  1. package/bundles/magic-xpa-mscorelib.umd.js +50 -164
  2. package/bundles/magic-xpa-mscorelib.umd.js.map +1 -1
  3. package/bundles/magic-xpa-mscorelib.umd.min.js +1 -1
  4. package/bundles/magic-xpa-mscorelib.umd.min.js.map +1 -1
  5. package/esm2015/index.js +1 -1
  6. package/esm2015/magic-xpa-mscorelib.js +1 -4
  7. package/esm2015/src/ApplicationException.js +1 -1
  8. package/esm2015/src/ArrayEnumerator.js +1 -1
  9. package/esm2015/src/BitArray.js +2 -22
  10. package/esm2015/src/Char.js +1 -1
  11. package/esm2015/src/CultureInfo.js +1 -1
  12. package/esm2015/src/DateTime.js +1 -6
  13. package/esm2015/src/Debug.js +1 -1
  14. package/esm2015/src/Dictionary.js +1 -1
  15. package/esm2015/src/Encoding.js +44 -52
  16. package/esm2015/src/Exception.js +1 -14
  17. package/esm2015/src/HashTable.js +3 -20
  18. package/esm2015/src/IComparable.js +1 -1
  19. package/esm2015/src/ISO_8859_1_Encoding.js +1 -1
  20. package/esm2015/src/Int32.js +1 -1
  21. package/esm2015/src/Int64.js +1 -1
  22. package/esm2015/src/List.js +2 -6
  23. package/esm2015/src/NChar.js +1 -1
  24. package/esm2015/src/NNumber.js +2 -15
  25. package/esm2015/src/NString.js +2 -8
  26. package/esm2015/src/NotImplementedException.js +1 -1
  27. package/esm2015/src/NumberFormatInfo.js +2 -2
  28. package/esm2015/src/RefParam.js +1 -1
  29. package/esm2015/src/Stack.js +1 -1
  30. package/esm2015/src/StackFrame.js +1 -3
  31. package/esm2015/src/StackTrace.js +1 -6
  32. package/esm2015/src/StringBuilder.js +1 -15
  33. package/esm2015/src/StringUtils.js +1 -1
  34. package/esm2015/src/Thread.js +1 -5
  35. package/esm2015/src/WebException.js +1 -1
  36. package/esm2015/src/XmlConvert.js +1 -2
  37. package/fesm2015/magic-xpa-mscorelib.js +50 -164
  38. package/fesm2015/magic-xpa-mscorelib.js.map +1 -1
  39. package/magic-xpa-mscorelib.d.ts +0 -3
  40. package/package.json +1 -1
@@ -296,7 +296,6 @@
296
296
  return value;
297
297
  }
298
298
 
299
- /// <summary>
300
299
  var Exception = /** @class */ (function () {
301
300
  function Exception(messageOrError) {
302
301
  this.name = "Exception";
@@ -315,9 +314,6 @@
315
314
  }
316
315
  }
317
316
  Object.defineProperty(Exception.prototype, "Message", {
318
- /// <summary>
319
- /// get the message of exception
320
- /// </summary>
321
317
  get: function () {
322
318
  return this.message;
323
319
  },
@@ -325,22 +321,15 @@
325
321
  configurable: true
326
322
  });
327
323
  Object.defineProperty(Exception.prototype, "StackTrace", {
328
- /// <summary>
329
- /// get the stack trace of exception
330
- /// </summary>
331
324
  get: function () {
332
325
  var stackTrace = this.stack || '';
333
326
  var stackLines = stackTrace.split("\n").map(function (line) { return line.trim(); });
334
- // On some browsers (e.g. Chrome), the statck includes a title as "Error", so remove it.
335
327
  stackTrace = stackLines.splice(stackLines[0] === 'Error' ? this.errorLevel + 1 : this.errorLevel).join("\n");
336
328
  return "\n" + stackTrace;
337
329
  },
338
330
  enumerable: false,
339
331
  configurable: true
340
332
  });
341
- /// <summary>
342
- /// get the type of exception
343
- /// </summary>
344
333
  Exception.prototype.GetType = function () {
345
334
  return this.name;
346
335
  };
@@ -382,44 +371,24 @@
382
371
  return Array_Enumerator;
383
372
  }());
384
373
 
385
- /// <summary>
386
- /// Manages a compact array of bit values,
387
- // which are represented as Booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0).
388
- /// </summary>
389
374
  var BitArray = /** @class */ (function () {
390
375
  function BitArray(length) {
391
- this.array = null; // array of boolean values
376
+ this.array = null;
392
377
  this.array = new Array(length).fill(false);
393
378
  }
394
379
  Object.defineProperty(BitArray.prototype, "Length", {
395
- /// <summary>
396
- /// returns the length of array
397
- /// </summary>
398
- /// <returns></returns>
399
380
  get: function () {
400
381
  return this.array.length;
401
382
  },
402
383
  enumerable: false,
403
384
  configurable: true
404
385
  });
405
- /// <summary>
406
- /// get the value of flag at specified index
407
- /// </summary>
408
- /// <returns></returns>
409
386
  BitArray.prototype.Get = function (index) {
410
387
  return this.array[index];
411
388
  };
412
- /// <summary>
413
- /// set the value of flag at specified index
414
- /// </summary>
415
- /// <returns></returns>
416
389
  BitArray.prototype.Set = function (index, value) {
417
390
  this.array[index] = value;
418
391
  };
419
- /// <summary>
420
- /// set all the flags with specified value
421
- /// </summary>
422
- /// <returns></returns>
423
392
  BitArray.prototype.SetAll = function (value) {
424
393
  this.array.forEach(function (x) {
425
394
  x = value;
@@ -448,14 +417,11 @@
448
417
  DateTimeKind[DateTimeKind["Local"] = 0] = "Local";
449
418
  DateTimeKind[DateTimeKind["Utc"] = 1] = "Utc";
450
419
  })(exports.DateTimeKind || (exports.DateTimeKind = {}));
451
- // @dynamic
452
420
  var DateTime = /** @class */ (function () {
453
421
  function DateTime(yearOrDate, month, day, hour, minute, second) {
454
422
  this.dt = null;
455
423
  this.kind = null;
456
- // the number of .net ticks at the unix epoch
457
424
  this.epochTicks = 621355968000000000;
458
- // there are 10000 .net ticks per millisecond
459
425
  this.ticksPerMillisecond = 10000;
460
426
  if (arguments.length === 1) {
461
427
  this.dt = yearOrDate;
@@ -470,8 +436,6 @@
470
436
  }
471
437
  Object.defineProperty(DateTime.prototype, "Ticks", {
472
438
  get: function () {
473
- // https://stackoverflow.com/questions/7966559/how-to-convert-javascript-date-object-to-ticks
474
- // TODO - check if we need this or to use Misc.getSystemMilliseconds()
475
439
  return ((this.dt.getTime() * this.ticksPerMillisecond) + this.epochTicks) - (this.dt.getTimezoneOffset() * 600000000);
476
440
  },
477
441
  enumerable: false,
@@ -637,11 +601,6 @@
637
601
  bytes = this.textEncoder.encode(str);
638
602
  }
639
603
  catch (ex) {
640
- // In C#, if any character is not within the range of specified charset, it is replaced by '?'.
641
- // TextEncoder.encode() throws an error in such a case.
642
- // We can modify the implementation of TextEncoder.encode() to put '?' instead of throwing error.
643
- // But, it can be problematic if we change the library version.
644
- // So, we will catch this error and handle the encoding ourselves.
645
604
  bytes = new Uint8Array(str.length * 3);
646
605
  var bytesCount = 0;
647
606
  var tmpBytes = void 0;
@@ -660,7 +619,6 @@
660
619
  return bytes;
661
620
  };
662
621
  Encoding.prototype.GetByteCount = function (str) {
663
- // TODO: this is not the best way.
664
622
  return this.GetBytes(str).length;
665
623
  };
666
624
  Encoding.prototype.GetString = function (bytes, index, count) {
@@ -685,53 +643,51 @@
685
643
  };
686
644
  Encoding.PopulateCodePageToEncodingMap = function () {
687
645
  var hashTable = new Object;
688
- // These map is similar to enc_map_table of exp_xml.cpp
689
- hashTable[20106] = "DIN_66003"; // IA5 (German)
690
- hashTable[20107] = "SEN_850200_B"; // IA5 (Swedish)
691
- hashTable[50932] = "_autodetect"; // Japanese (Auto Select)
692
- hashTable[20108] = "NS_4551-1"; // IA5 (Norwegian)
693
- hashTable[50949] = "_autodetect_kr"; // Korean (Auto Select)
694
- hashTable[950] = "big5"; // Chinese Traditional (Big5)
695
- hashTable[50221] = "csISO2022JP"; // Japanese (JIS-Allow 1 byte Kana)
696
- hashTable[51949] = "euc-kr"; // Korean (EUC)
697
- hashTable[936] = "gb2312"; // Chinese Simplified (GB2312)
698
- hashTable[52936] = "hz-gb-2312"; // Chinese Simplified (HZ)
699
- hashTable[852] = "ibm852"; // Central European (DOS)
700
- hashTable[866] = "ibm866"; // Cyrillic Alphabet (DOS)
701
- hashTable[20105] = "irv"; // IA5 (IRV)
702
- hashTable[50220] = "iso-2022-jp"; // Japanese (JIS)
703
- hashTable[50222] = "iso-2022-jp"; // Japanese (JIS-Allow 1 byte Kana)
704
- hashTable[50225] = "iso-2022-kr"; // Korean (ISO)
705
- hashTable[28591] = "iso-8859-1"; // Western Alphabet (ISO)
706
- hashTable[28592] = "iso-8859-2"; // Central European Alphabet (ISO)
707
- hashTable[28593] = "iso-8859-3"; // Latin 3 Alphabet (ISO)
708
- hashTable[28594] = "iso-8859-4"; // Baltic Alphabet (ISO)
709
- hashTable[28595] = "iso-8859-5"; // Cyrillic Alphabet (ISO)
710
- hashTable[28596] = "iso-8859-6"; // Arabic Alphabet (ISO)
711
- hashTable[28597] = "iso-8859-7"; // Greek Alphabet (ISO)
712
- hashTable[28598] = "iso-8859-8"; // Hebrew Alphabet (ISO)
713
- hashTable[20866] = "koi8-r"; // Cyrillic Alphabet (KOI8-R)
714
- hashTable[949] = "ks_c_5601"; // Korean
715
- hashTable[932] = "shift-jis"; // Japanese (Shift-JIS)
716
- hashTable[1200] = "unicode"; // Universal Alphabet
717
- hashTable[1201] = "unicodeFEFF"; // Universal Alphabet (Big-Endian)
718
- hashTable[65000] = "utf-7"; // Universal Alphabet (UTF-7)
719
- hashTable[65001] = "utf-8"; // Universal Alphabet (UTF-8)
720
- hashTable[1250] = "windows-1250"; // Central European Alphabet (Windows)
721
- hashTable[1251] = "windows-1251"; // Cyrillic Alphabet (Windows)
722
- hashTable[1252] = "windows-1252"; // Western Alphabet (Windows)
723
- hashTable[1253] = "windows-1253"; // Greek Alphabet (Windows)
724
- hashTable[1254] = "windows-1254"; // Turkish Alphabet
725
- hashTable[1255] = "windows-1255"; // Hebrew Alphabet (Windows)
726
- hashTable[1256] = "windows-1256"; // Arabic Alphabet (Windows)
727
- hashTable[1257] = "windows-1257"; // Baltic Alphabet (Windows)
728
- hashTable[1258] = "windows-1258"; // Vietnamese Alphabet (Windows)
729
- hashTable[874] = "windows-874"; // Thai (Windows)
730
- hashTable[20127] = "US-ASCII"; // us-ascii
731
- hashTable[51932] = "x-euc"; // Japanese (EUC)
646
+ hashTable[20106] = "DIN_66003";
647
+ hashTable[20107] = "SEN_850200_B";
648
+ hashTable[50932] = "_autodetect";
649
+ hashTable[20108] = "NS_4551-1";
650
+ hashTable[50949] = "_autodetect_kr";
651
+ hashTable[950] = "big5";
652
+ hashTable[50221] = "csISO2022JP";
653
+ hashTable[51949] = "euc-kr";
654
+ hashTable[936] = "gb2312";
655
+ hashTable[52936] = "hz-gb-2312";
656
+ hashTable[852] = "ibm852";
657
+ hashTable[866] = "ibm866";
658
+ hashTable[20105] = "irv";
659
+ hashTable[50220] = "iso-2022-jp";
660
+ hashTable[50222] = "iso-2022-jp";
661
+ hashTable[50225] = "iso-2022-kr";
662
+ hashTable[28591] = "iso-8859-1";
663
+ hashTable[28592] = "iso-8859-2";
664
+ hashTable[28593] = "iso-8859-3";
665
+ hashTable[28594] = "iso-8859-4";
666
+ hashTable[28595] = "iso-8859-5";
667
+ hashTable[28596] = "iso-8859-6";
668
+ hashTable[28597] = "iso-8859-7";
669
+ hashTable[28598] = "iso-8859-8";
670
+ hashTable[20866] = "koi8-r";
671
+ hashTable[949] = "ks_c_5601";
672
+ hashTable[932] = "shift-jis";
673
+ hashTable[1200] = "unicode";
674
+ hashTable[1201] = "unicodeFEFF";
675
+ hashTable[65000] = "utf-7";
676
+ hashTable[65001] = "utf-8";
677
+ hashTable[1250] = "windows-1250";
678
+ hashTable[1251] = "windows-1251";
679
+ hashTable[1252] = "windows-1252";
680
+ hashTable[1253] = "windows-1253";
681
+ hashTable[1254] = "windows-1254";
682
+ hashTable[1255] = "windows-1255";
683
+ hashTable[1256] = "windows-1256";
684
+ hashTable[1257] = "windows-1257";
685
+ hashTable[1258] = "windows-1258";
686
+ hashTable[874] = "windows-874";
687
+ hashTable[20127] = "US-ASCII";
688
+ hashTable[51932] = "x-euc";
732
689
  return hashTable;
733
690
  };
734
- // return the name of encoding used
735
691
  Encoding.prototype.toString = function () {
736
692
  return this.label;
737
693
  };
@@ -742,12 +698,9 @@
742
698
  Encoding.Unicode = new Encoding("utf-16le");
743
699
  Encoding.CodePageToEncodingMap = Encoding.PopulateCodePageToEncodingMap();
744
700
 
745
- // Reference: https://github.com/rkostrzewski/hashtable-ts/blob/master/src/hashtable.ts
746
701
  var HashUtils = /** @class */ (function () {
747
702
  function HashUtils() {
748
703
  }
749
- // Pay attention that in server there is the same function and it must
750
- // return the same hash value.
751
704
  HashUtils.GetHashCode = function (str) {
752
705
  var bytes = null;
753
706
  bytes = Encoding.UTF8.GetBytes(str);
@@ -775,13 +728,12 @@
775
728
  return HashUtils;
776
729
  }());
777
730
  var HashTableLoadFactor = 0.75;
778
- // Hashtable implementation for key TKey and Value TValue
779
731
  var Hashtable = /** @class */ (function () {
780
732
  function Hashtable(bucketCount, loadFactor) {
781
733
  if (bucketCount === void 0) { bucketCount = 8; }
782
734
  if (loadFactor === void 0) { loadFactor = HashTableLoadFactor; }
783
- this._buckets = []; // total no. of buckets
784
- this._elementsCount = 0; // total elements
735
+ this._buckets = [];
736
+ this._elementsCount = 0;
785
737
  this._bucketCount = 0;
786
738
  this._loadFactor = 0;
787
739
  this._bucketCount = bucketCount;
@@ -790,7 +742,6 @@
790
742
  throw new Exception('Bucket count must be a positive number and be multiple of 2.');
791
743
  }
792
744
  }
793
- // Generic Hash funtion
794
745
  Hashtable.prototype.HashFunction = function (key) {
795
746
  if (typeof key.GetHashCode === 'function') {
796
747
  return key.GetHashCode();
@@ -804,7 +755,6 @@
804
755
  return 0;
805
756
  };
806
757
  Object.defineProperty(Hashtable.prototype, "Count", {
807
- // returns elementCount
808
758
  get: function () {
809
759
  return this._elementsCount;
810
760
  },
@@ -812,7 +762,6 @@
812
762
  configurable: true
813
763
  });
814
764
  Object.defineProperty(Hashtable.prototype, "Values", {
815
- // returns ValueCollection (Array Enumerator)
816
765
  get: function () {
817
766
  var array = [];
818
767
  this._buckets.forEach(function (b) { return b.forEach(function (item) {
@@ -824,7 +773,6 @@
824
773
  configurable: true
825
774
  });
826
775
  Object.defineProperty(Hashtable.prototype, "Keys", {
827
- // returns KeyCollection (Array Enumerator)
828
776
  get: function () {
829
777
  var array = [];
830
778
  this._buckets.forEach(function (b) { return b.forEach(function (item) {
@@ -835,15 +783,12 @@
835
783
  enumerable: false,
836
784
  configurable: true
837
785
  });
838
- // adds item to Hashtable
839
786
  Hashtable.prototype.Add = function (key, value) {
840
787
  this.Insert(key, value, true);
841
788
  };
842
- // sets item in Hashtable
843
789
  Hashtable.prototype.set_Item = function (key, value) {
844
790
  this.Insert(key, value, false);
845
791
  };
846
- // Insert element in Hashtable
847
792
  Hashtable.prototype.Insert = function (key, value, add) {
848
793
  var bucketIndex = this.GetBucketIndex(key);
849
794
  if (typeof this._buckets[bucketIndex] === "undefined") {
@@ -864,7 +809,6 @@
864
809
  this.Resize(this._bucketCount * 2);
865
810
  }
866
811
  };
867
- // Gets value for key TKey
868
812
  Hashtable.prototype.get_Item = function (key) {
869
813
  var bucketIndex = this.GetBucketIndex(key);
870
814
  var bucket = this._buckets[bucketIndex];
@@ -877,7 +821,6 @@
877
821
  }
878
822
  return null;
879
823
  };
880
- // Returns if key TKey is present in Hashtable
881
824
  Hashtable.prototype.ContainsKey = function (key) {
882
825
  var bucketIndex = this.GetBucketIndex(key);
883
826
  var bucket = this._buckets[bucketIndex];
@@ -887,7 +830,6 @@
887
830
  var itemIndex = bucket.findIndex(function (x) { return x.key === key; });
888
831
  return (itemIndex > -1);
889
832
  };
890
- // Removes item with key TKey from Hashtable
891
833
  Hashtable.prototype.Remove = function (key) {
892
834
  var bucketIndex = this.GetBucketIndex(key);
893
835
  var bucket = this._buckets[bucketIndex];
@@ -903,7 +845,6 @@
903
845
  }
904
846
  }
905
847
  };
906
- // Resize bucket (Hashtable)
907
848
  Hashtable.prototype.Resize = function (newBucketCount) {
908
849
  var _this = this;
909
850
  var _oldBuckets = this._buckets;
@@ -912,7 +853,6 @@
912
853
  this._bucketCount = newBucketCount;
913
854
  _oldBuckets.forEach(function (b) { return b.forEach(function (item) { return _this.Add(item.key, item.value); }); });
914
855
  };
915
- // returns bucketIndex for key
916
856
  Hashtable.prototype.GetBucketIndex = function (key) {
917
857
  var hash = this.HashFunction(key);
918
858
  if (hash % 1 !== 0) {
@@ -924,7 +864,6 @@
924
864
  }
925
865
  return index;
926
866
  };
927
- // Clears Hashtable
928
867
  Hashtable.prototype.Clear = function () {
929
868
  this._elementsCount = 0;
930
869
  this._buckets = [];
@@ -1039,7 +978,7 @@
1039
978
  List.prototype.Insert = function (index, item) {
1040
979
  if (index >= 0 && index < this.length)
1041
980
  this.splice(index, 0, item);
1042
- else if (index === this.length) // inserting at end means append
981
+ else if (index === this.length)
1043
982
  this.push(item);
1044
983
  else
1045
984
  throw new Error("index out of bounds");
@@ -1066,10 +1005,6 @@
1066
1005
  foundItem = null;
1067
1006
  return foundItem;
1068
1007
  };
1069
- /// <summary>
1070
- /// add null cells up to 'size' cells.
1071
- /// </summary>
1072
- /// <param name="size"></param>
1073
1008
  List.prototype.SetSize = function (size) {
1074
1009
  if (this.length > size) {
1075
1010
  this.RemoveRange(size, this.length - size);
@@ -1199,11 +1134,6 @@
1199
1134
  var NNumber = /** @class */ (function () {
1200
1135
  function NNumber() {
1201
1136
  }
1202
- /// <summary>
1203
- /// convert a string to number
1204
- /// for blank string , it will return 0
1205
- /// for incorrect format it will return NaN
1206
- /// <summary>
1207
1137
  NNumber.Parse = function (text, style) {
1208
1138
  if (arguments.length === 2) {
1209
1139
  if (style === exports.NumberStyles.HexNumber)
@@ -1211,20 +1141,12 @@
1211
1141
  else
1212
1142
  throw new NotImplementedException();
1213
1143
  }
1214
- return +text; // use unary + operator to convert string to number.
1144
+ return +text;
1215
1145
  };
1216
- /// <summary>
1217
- /// convert a string to number
1218
- /// return true if string is correctly parsed i.e pvalue.value is number
1219
- /// for incorrect format it will return false
1220
- /// <summary>
1221
1146
  NNumber.TryParse = function (str, pvalue) {
1222
1147
  pvalue.value = +str;
1223
1148
  return !isNaN(pvalue.value);
1224
1149
  };
1225
- /// <summary>
1226
- /// convert a number to string with specified format
1227
- /// <summary>
1228
1150
  NNumber.ToString = function (num, format) {
1229
1151
  if (format === 'X2') {
1230
1152
  var res = num.toString(16);
@@ -1235,7 +1157,6 @@
1235
1157
  return NNumber;
1236
1158
  }());
1237
1159
 
1238
- // @dynamic
1239
1160
  var NString = /** @class */ (function () {
1240
1161
  function NString() {
1241
1162
  }
@@ -1286,7 +1207,7 @@
1286
1207
  for (i = 0, l = str.length; i < l; i++) {
1287
1208
  ch = str.charCodeAt(i);
1288
1209
  hash = ((hash << 5) - hash) + ch;
1289
- hash |= 0; // Convert to 32bit integer
1210
+ hash |= 0;
1290
1211
  }
1291
1212
  return hash;
1292
1213
  };
@@ -1341,17 +1262,14 @@
1341
1262
  var lenA = strA.length;
1342
1263
  var lenB = strB.length;
1343
1264
  var len = Math.min(lenA, lenB);
1344
- // compare character by character
1345
1265
  for (var i = 0; i < len; i++) {
1346
1266
  if (strA[i].charCodeAt(0) !== strB[i].charCodeAt(0)) {
1347
1267
  return strA[i].charCodeAt(0) - strB[i].charCodeAt(0);
1348
1268
  }
1349
1269
  }
1350
- // if all characters are same , but length is different return the difference of length
1351
1270
  if (lenA !== lenB) {
1352
1271
  return lenA - lenB;
1353
1272
  }
1354
- // all chars are same , so strings are equal
1355
1273
  return 0;
1356
1274
  };
1357
1275
  NString.PadRight = function (source, maxLength, fillString) {
@@ -1367,8 +1285,6 @@
1367
1285
  };
1368
1286
  NString.Replace = function (str, orgSubStr, newSubStr) {
1369
1287
  var resultStr = '';
1370
- // fixed defect 151810: replace "*" with "\*" before we update the string so * will be as char and not reg exp
1371
- // also for special chars $ ^ . ? + , [
1372
1288
  orgSubStr = orgSubStr.replace(new RegExp("\\\\", 'g'), "\\\\");
1373
1289
  orgSubStr = orgSubStr.replace(new RegExp("\\*", 'g'), "\\\*");
1374
1290
  orgSubStr = orgSubStr.replace(new RegExp("\\$", 'g'), "\\\$");
@@ -1395,7 +1311,7 @@
1395
1311
  function NumberFormatInfo() {
1396
1312
  }
1397
1313
  NumberFormatInfo.GetLocaleDecimalSeperator = function () {
1398
- return (1.1).toLocaleString()[1]; // get the decimal seperator of current locale
1314
+ return (1.1).toLocaleString()[1];
1399
1315
  };
1400
1316
  return NumberFormatInfo;
1401
1317
  }());
@@ -1444,8 +1360,6 @@
1444
1360
  return Stack;
1445
1361
  }());
1446
1362
 
1447
- // StackFrame uses StackTrace utility using stacktrace-js utility from npm
1448
- // https://www.npmjs.com/package/stacktrace-js
1449
1363
  var StackFrame = /** @class */ (function () {
1450
1364
  function StackFrame(skipFrames, fNeedFileInfo) {
1451
1365
  this.stackFrame = null;
@@ -1460,38 +1374,23 @@
1460
1374
  return StackFrame;
1461
1375
  }());
1462
1376
 
1463
- // This uses StackTrace utility using stacktrace-js utility from npm. Use this in package.json
1464
- // https://www.npmjs.com/package/stacktrace-js
1465
1377
  var StackTrace = /** @class */ (function () {
1466
1378
  function StackTrace() {
1467
1379
  }
1468
1380
  StackTrace.prototype.GetFrames = function () {
1469
- // Using getSync() method, it returns references of callstack ethod from the javascript files bindled and not typeScript file from sources.
1470
- // However, if aSync method would have used, it overcomes above problems but the call to log would have been async and we would not have
1471
- // received synchronous logs which would be confusing.
1472
1381
  return StackTrace$1.getSync();
1473
1382
  };
1474
1383
  return StackTrace;
1475
1384
  }());
1476
1385
 
1477
- // StringBuilder class. Its Implementation currently uses string object. It could have been string[], but it has issues when inserting string.
1478
- // It would not have served purpose while inserting a string. Other could be to use string[] with one chraracter per string. Even its utility
1479
- // is doubtful as while manipulation, it would be creting new objects instead pointers. So for now we have used only string and see if we have
1480
- // any performance issues.
1481
1386
  var StringBuilder = /** @class */ (function () {
1482
1387
  function StringBuilder(valueOrLength, length) {
1483
1388
  this.part = "";
1484
1389
  if (arguments.length > 0) {
1485
1390
  if (valueOrLength != null && valueOrLength.constructor === Number) {
1486
- // TODO: Very low priority performance improvement - Implement this.
1487
- // Debug.Assert(false, "StringBuilder: NotImplemented constructor with initial length/capacity");
1488
- // throw new Error("NotImplemented constructor with initial length/capacity");
1489
1391
  }
1490
1392
  else if (valueOrLength != null && valueOrLength.constructor === String) {
1491
1393
  this.part = valueOrLength.toString();
1492
- // TODO: Very low priority performance improvement - Implement this.
1493
- // if (arguments.length === 2)
1494
- // Debug.Assert(false, "NotImplemented constructor with initial length/capacity");
1495
1394
  }
1496
1395
  }
1497
1396
  }
@@ -1512,20 +1411,17 @@
1512
1411
  this.AppendNumber(textOrNum, startIndexOrNumberOfCharacters);
1513
1412
  return this;
1514
1413
  };
1515
- // Append string
1516
1414
  StringBuilder.prototype.AppendString = function (text, startIndex, charCount) {
1517
1415
  if (startIndex === void 0) { startIndex = 0; }
1518
1416
  if (charCount === void 0) { charCount = text.length; }
1519
1417
  this.part = this.part + text.substr(startIndex, charCount);
1520
1418
  };
1521
- // Append Number
1522
1419
  StringBuilder.prototype.AppendNumber = function (num, numberOfCharacters) {
1523
1420
  if (numberOfCharacters === void 0) { numberOfCharacters = 1; }
1524
1421
  if (numberOfCharacters <= 0)
1525
1422
  throw new Error("numberOfCharacters cannot be less than or equal to zero");
1526
1423
  this.part = this.part + num.toString().repeat(numberOfCharacters);
1527
1424
  };
1528
- // Append Line
1529
1425
  StringBuilder.prototype.AppendLine = function (text) {
1530
1426
  if (text === void 0) { text = null; }
1531
1427
  if (text !== null)
@@ -1600,7 +1496,6 @@
1600
1496
  }
1601
1497
  return this;
1602
1498
  };
1603
- // return the string
1604
1499
  StringBuilder.prototype.toString = function () {
1605
1500
  return this.ToString();
1606
1501
  };
@@ -1612,10 +1507,6 @@
1612
1507
  this.ManagedThreadId = 0;
1613
1508
  this.ManagedThreadId = Thread.nextId++;
1614
1509
  }
1615
- /// <summary>
1616
- /// Free the thread so it will be able to do other work, like gui events
1617
- /// </summary>
1618
- /// <param name = "millisecondsTimeout"> timeout in milliseconds</param>
1619
1510
  Thread.Sleep = function (millisecondsTimeout) {
1620
1511
  return __awaiter(this, void 0, void 0, function () {
1621
1512
  return __generator(this, function (_a) {
@@ -1651,17 +1542,12 @@
1651
1542
  var XmlConvert = /** @class */ (function () {
1652
1543
  function XmlConvert() {
1653
1544
  }
1654
- // TODO : Implement
1655
1545
  XmlConvert.EncodeName = function (name) {
1656
1546
  throw new NotImplementedException();
1657
1547
  };
1658
1548
  return XmlConvert;
1659
1549
  }());
1660
1550
 
1661
- /**
1662
- * Generated bundle index. Do not edit.
1663
- */
1664
-
1665
1551
  exports.$$ = $$;
1666
1552
  exports.$0 = $0;
1667
1553
  exports.$9 = $9;