@bytescale/sdk 3.26.0 → 3.27.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.
@@ -1655,7 +1655,8 @@ var UrlBuilder = /*#__PURE__*/function () {
1655
1655
  value: function getBaseUrl(params, prefix) {
1656
1656
  var _a, _b;
1657
1657
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1658
- return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(params.filePath);
1658
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1659
+ return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1659
1660
  }
1660
1661
  }, {
1661
1662
  key: "getCommonTransformationQueryParams",
@@ -1640,7 +1640,8 @@ var UrlBuilder = /*#__PURE__*/function () {
1640
1640
  value: function getBaseUrl(params, prefix) {
1641
1641
  var _a, _b;
1642
1642
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1643
- return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(params.filePath);
1643
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1644
+ return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1644
1645
  }
1645
1646
  }, {
1646
1647
  key: "getCommonTransformationQueryParams",
@@ -1655,7 +1655,8 @@ var UrlBuilder = /*#__PURE__*/function () {
1655
1655
  value: function getBaseUrl(params, prefix) {
1656
1656
  var _a, _b;
1657
1657
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1658
- return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(params.filePath);
1658
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1659
+ return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1659
1660
  }
1660
1661
  }, {
1661
1662
  key: "getCommonTransformationQueryParams",
@@ -1642,7 +1642,8 @@ var UrlBuilder = /*#__PURE__*/function () {
1642
1642
  value: function getBaseUrl(params, prefix) {
1643
1643
  var _a, _b;
1644
1644
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1645
- return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(params.filePath);
1645
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1646
+ return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1646
1647
  }
1647
1648
  }, {
1648
1649
  key: "getCommonTransformationQueryParams",
@@ -1655,7 +1655,8 @@ var UrlBuilder = /*#__PURE__*/function () {
1655
1655
  value: function getBaseUrl(params, prefix) {
1656
1656
  var _a, _b;
1657
1657
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1658
- return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(params.filePath);
1658
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1659
+ return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1659
1660
  }
1660
1661
  }, {
1661
1662
  key: "getCommonTransformationQueryParams",
@@ -1640,7 +1640,8 @@ var UrlBuilder = /*#__PURE__*/function () {
1640
1640
  value: function getBaseUrl(params, prefix) {
1641
1641
  var _a, _b;
1642
1642
  var cdnUrl = (_b = (_a = params.options) === null || _a === void 0 ? void 0 : _a.cdnUrl) !== null && _b !== void 0 ? _b : BytescaleApiClientConfigUtils.defaultCdnUrl;
1643
- return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(params.filePath);
1643
+ var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/");
1644
+ return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1644
1645
  }
1645
1646
  }, {
1646
1647
  key: "getCommonTransformationQueryParams",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytescale/sdk",
3
- "version": "3.26.0",
3
+ "version": "3.27.0",
4
4
  "description": "Bytescale JavaScript SDK",
5
5
  "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
6
6
  "license": "MIT",