@bigbinary/neeto-commons-frontend 2.1.39 → 3.0.0

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/utils.cjs.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var axios = require('axios');
6
6
  var ramda = require('ramda');
7
7
  var i18next = require('i18next');
8
- var pure = require('@bigbinary/neeto-commons-frontend/pure');
8
+ var neetoCist = require('@bigbinary/neeto-cist');
9
9
  var neetoui = require('@bigbinary/neetoui');
10
10
  var require$$0 = require('util');
11
11
  var dayjs = require('dayjs');
@@ -2544,7 +2544,7 @@ var getSubdomain = function getSubdomain() {
2544
2544
  };
2545
2545
  var simulateApiCall = function simulateApiCall(result, error) {
2546
2546
  var errorProbability = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.1;
2547
- var delay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : pure.getRandomInt(350, 1000);
2547
+ var delay = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : neetoCist.getRandomInt(350, 1000);
2548
2548
  return new Promise(function (resolve, reject) {
2549
2549
  return setTimeout(function () {
2550
2550
  var defaultErrorObj = {
@@ -2618,7 +2618,7 @@ var buildUrl = function buildUrl(route, params) {
2618
2618
  route = route.replace(":".concat(key), encodeURIComponent(value));
2619
2619
  }
2620
2620
  });
2621
- var queryParams = ramda.pipe(ramda.omit(placeHolders), pure.preprocessForSerialization, lib.stringify)(params);
2621
+ var queryParams = ramda.pipe(ramda.omit(placeHolders), neetoCist.preprocessForSerialization, lib.stringify)(params);
2622
2622
  return ramda.isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
2623
2623
  };
2624
2624
  var toLocale = function toLocale(number) {