backendless 7.3.5 → 7.3.7

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,6 +1,6 @@
1
1
  /*
2
2
  * ********************************************************************************************************************
3
- * Backendless SDK for JavaScript. Version: 7.3.5
3
+ * Backendless SDK for JavaScript. Version: 7.3.7
4
4
  *
5
5
  * Copyright 2012-2023 BACKENDLESS.COM. All Rights Reserved.
6
6
  *
@@ -12568,7 +12568,7 @@ exports.setFormData = setFormData;
12568
12568
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12569
12569
  /**
12570
12570
  * Casts `value` as an array if it's not one.
12571
- * Equvivalent to lodash/castArray
12571
+ * Equivalent to lodash/castArray
12572
12572
  */
12573
12573
  var castArray = exports.castArray = function castArray(value) {
12574
12574
  return Array.isArray(value) ? value : [value];
@@ -12606,9 +12606,20 @@ function getFormData() {
12606
12606
  function setFormData(value) {
12607
12607
  CustomFormData = value;
12608
12608
  }
12609
+ var SAFE_CHAR_CODES = ['%40', '%3A', '%2F'];
12610
+ function safeEscape(str, charCodes) {
12611
+ var _char = charCodes[0];
12612
+ if (_char) {
12613
+ var tokens = str.split(_char).map(function (p) {
12614
+ return safeEscape(p, charCodes.slice(1));
12615
+ });
12616
+ return tokens.join(_char);
12617
+ }
12618
+ return encodeURI(str);
12619
+ }
12609
12620
  function ensureComponentEncoding(uriComponent) {
12610
- if (uriComponent === decodeURIComponent(uriComponent)) {
12611
- return encodeURIComponent(uriComponent);
12621
+ if (uriComponent === decodeURI(uriComponent)) {
12622
+ return safeEscape(uriComponent, SAFE_CHAR_CODES);
12612
12623
  }
12613
12624
  return uriComponent;
12614
12625
  }
@@ -12863,7 +12874,7 @@ var Request = exports.Request = /*#__PURE__*/function (_EventEmitter) {
12863
12874
  }
12864
12875
 
12865
12876
  /**
12866
- * Sends the requst
12877
+ * Sends the request
12867
12878
  *
12868
12879
  * @param {Object} body
12869
12880
  * @returns {Promise}