@easyquery/enterprise 7.2.4-rc03 → 7.2.4-rc05

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.
@@ -1074,39 +1074,6 @@ var HttpRequest = /** @class */ (function () {
1074
1074
  }());
1075
1075
 
1076
1076
  //# sourceMappingURL=http_request.js.map
1077
- ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/string_utils.js
1078
- function repeatString(str, times) {
1079
- var result = "";
1080
- for (var i = 0; i < times; i++) {
1081
- result += str;
1082
- }
1083
- return result;
1084
- }
1085
- function reverseString(str) {
1086
- return str.split("").reverse().join("");
1087
- }
1088
- function strEndsWith(str, symbol) {
1089
- return str && str.lastIndexOf(symbol) == (str.length - symbol.length);
1090
- }
1091
- /**
1092
- * Adds two paths and returns the result
1093
- * Correctly processes leading and trailing slashes
1094
- * @param path1
1095
- * @param path2
1096
- */
1097
- function combinePath(path1, path2) {
1098
- var result = path1;
1099
- if (result != null && result.length > 0) {
1100
- if (result.charAt(result.length - 1) != '/')
1101
- result += "/";
1102
- result += path2;
1103
- }
1104
- else {
1105
- result = path2;
1106
- }
1107
- return result;
1108
- }
1109
- //# sourceMappingURL=string_utils.js.map
1110
1077
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/i18n/i18n.js
1111
1078
 
1112
1079
 
@@ -1580,7 +1547,6 @@ var i18n;
1580
1547
  ;// CONCATENATED MODULE: ../../easydata/easydata.js/packs/core/dist/lib/utils/utils.js
1581
1548
 
1582
1549
 
1583
-
1584
1550
  var utils;
1585
1551
  (function (utils) {
1586
1552
  function getAllDataTypes() {
@@ -1903,27 +1869,26 @@ var utils;
1903
1869
  if (prfx && prfx.length > 0) {
1904
1870
  prfx += "-";
1905
1871
  }
1906
- //adding 2 random symbols
1907
- var randValue = repeatString("", 2);
1908
- ;
1909
- var maxSymbolIndex = symbols.length - 1;
1910
- randValue = replaceAtString(randValue, 0, symbols[getRandomInt(0, maxSymbolIndex)]);
1911
- randValue = replaceAtString(randValue, 1, symbols[getRandomInt(0, maxSymbolIndex)]);
1912
- //generating main ID part (64-base representation of the current value of the time ticks)
1913
- var ticksNum64 = intToNum36(getNowTicks() - magicTicks);
1914
- return prfx + randValue + ticksNum64;
1872
+ //adding 3 random symbols
1873
+ var randCharPart = symbols[getRandomInt(0, symbols.length)] +
1874
+ symbols[getRandomInt(0, symbols.length)] +
1875
+ symbols[getRandomInt(0, symbols.length)];
1876
+ var randInt = getRandomInt(0, 10000);
1877
+ //generating main ID part
1878
+ //it's a 36-base representation of some random number based on current value of ticks
1879
+ var ticksNum36 = intToNumBase(getNowTicks() - magicTicks - randInt);
1880
+ return prfx + randCharPart + ticksNum36;
1915
1881
  }
1916
1882
  utils.generateId = generateId;
1917
- function intToNum36(value) {
1918
- var targetBase = 36;
1919
- var i = 14;
1920
- var buffer = repeatString("", i);
1883
+ function intToNumBase(value, targetBase) {
1884
+ if (targetBase === void 0) { targetBase = 36; }
1885
+ var buffer = '';
1921
1886
  var rest = value;
1922
1887
  do {
1923
- buffer = replaceAtString(buffer, i--, symbols[rest % targetBase]);
1888
+ buffer = symbols[rest % targetBase] + buffer;
1924
1889
  rest = Math.floor(rest /= targetBase);
1925
1890
  } while (rest > 0);
1926
- return reverseString(buffer.trim());
1891
+ return buffer;
1927
1892
  }
1928
1893
  function squeezeMoniker(str, maxlen) {
1929
1894
  var parts = str.split('-');
@@ -1960,8 +1925,8 @@ var utils;
1960
1925
  return str;
1961
1926
  }
1962
1927
  }
1963
- function replaceAtString(str, index, value) {
1964
- return str.substr(0, index) + value + str.substr(index + value.length);
1928
+ function replaceAtString(str, index, replacement) {
1929
+ return str.substring(0, index) + replacement + str.substring(index + replacement.length);
1965
1930
  }
1966
1931
  function getRandomInt(min, max) {
1967
1932
  return Math.floor(Math.random() * (max - min)) + min;
@@ -7528,7 +7493,7 @@ function strIsEmpty(str) {
7528
7493
  else
7529
7494
  return true;
7530
7495
  }
7531
- var baseLicApiUrl = 'https://korzh.com/api/license';
7496
+ var baseLicApiUrl = 'https://account.korzh.com/api/license';
7532
7497
  //const baseLicApiUrl = 'https://localhost:44301/api/license';
7533
7498
  var eqVersion = '7.2';
7534
7499
  var LCDialog = /** @class */ (function () {