@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.
package/dist/browser/cjs/main.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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/dist/node/cjs/main.js
CHANGED
|
@@ -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
|
-
|
|
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",
|
package/dist/node/esm/main.mjs
CHANGED
|
@@ -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
|
-
|
|
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",
|
package/dist/worker/cjs/main.js
CHANGED
|
@@ -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
|
-
|
|
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",
|
package/dist/worker/esm/main.mjs
CHANGED
|
@@ -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
|
-
|
|
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",
|