@bytescale/sdk 3.50.0 → 3.51.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.
@@ -1783,6 +1783,7 @@ var UrlBuilder = /*#__PURE__*/function () {
1783
1783
  // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1784
1784
  // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1785
1785
  // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1786
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
1786
1787
  var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1787
1788
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1788
1789
  }
@@ -1768,6 +1768,7 @@ var UrlBuilder = /*#__PURE__*/function () {
1768
1768
  // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1769
1769
  // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1770
1770
  // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1771
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
1771
1772
  var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1772
1773
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1773
1774
  }
@@ -1783,6 +1783,7 @@ var UrlBuilder = /*#__PURE__*/function () {
1783
1783
  // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1784
1784
  // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1785
1785
  // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1786
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
1786
1787
  var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1787
1788
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1788
1789
  }
@@ -1770,6 +1770,7 @@ var UrlBuilder = /*#__PURE__*/function () {
1770
1770
  // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1771
1771
  // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1772
1772
  // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1773
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
1773
1774
  var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1774
1775
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1775
1776
  }
@@ -2387,6 +2387,12 @@ export interface WebStorage {
2387
2387
  * @memberof WebStorage
2388
2388
  */
2389
2389
  baseUrl?: string;
2390
+ /**
2391
+ *
2392
+ * @type {WebStorageQueryStringForwarding}
2393
+ * @memberof WebStorage
2394
+ */
2395
+ queryStringForwarding?: WebStorageQueryStringForwarding;
2390
2396
  /**
2391
2397
  * The type of this storage layer.
2392
2398
  * @type {string}
@@ -2398,6 +2404,55 @@ export interface WebStorage {
2398
2404
  * @export
2399
2405
  */
2400
2406
  export type WebStorageTypeEnum = "Web";
2407
+ /**
2408
+ * This object is used for the value of the `queryStringForwarding` field on the `WebStorage` object, and defines how user-provided query strings are forwarded to the HTTP origin. If left unset, no user-provided query strings will be forwarded to the HTTP origin.
2409
+ *
2410
+ * *Instructions:*
2411
+ * - To *block all* query string parameters: use `"Whitelist"` with an empty `parameters` array (default if unset).
2412
+ * - To *allow all* query string parameters: use `"Blacklist"` with an empty `parameters` array.
2413
+ * - To *allow some* query string parameters: use either `"Blacklist"` or `"Whitelist"` with one or more `parameters`.
2414
+ * @export
2415
+ * @interface WebStorageQueryStringForwarding
2416
+ */
2417
+ export interface WebStorageQueryStringForwarding {
2418
+ /**
2419
+ * Determines which parameters to forward based on the `type` field:
2420
+ *
2421
+ * If `"Whitelist"` is set in the `type` field:
2422
+ * - Only parameters in this array will be forwarded.
2423
+ * - An empty array prevents all parameters from being forwarded.
2424
+ *
2425
+ * If `"Blacklist"` is set in the `type` field:
2426
+ * - Only parameters in this array will be blocked.
2427
+ * - An empty array allows all parameters to be forwarded.
2428
+ * @type {Array<WebStorageQueryStringParam>}
2429
+ * @memberof WebStorageQueryStringForwarding
2430
+ */
2431
+ parameters: Array<WebStorageQueryStringParam>;
2432
+ /**
2433
+ * Determines whether the `parameters` array is interpreted as a blacklist or a whitelist.
2434
+ * @type {string}
2435
+ * @memberof WebStorageQueryStringForwarding
2436
+ */
2437
+ type: WebStorageQueryStringForwardingTypeEnum;
2438
+ }
2439
+ /**
2440
+ * @export
2441
+ */
2442
+ export type WebStorageQueryStringForwardingTypeEnum = "Whitelist" | "Blacklist";
2443
+ /**
2444
+ * Matches exactly one query string parameter. The value of the `name` field must be URL encoded.
2445
+ * @export
2446
+ * @interface WebStorageQueryStringParam
2447
+ */
2448
+ export interface WebStorageQueryStringParam {
2449
+ /**
2450
+ * Query string parameter name. Must be URL-encoded.
2451
+ * @type {string}
2452
+ * @memberof WebStorageQueryStringParam
2453
+ */
2454
+ name: string;
2455
+ }
2401
2456
  /**
2402
2457
  *
2403
2458
  * @export
@@ -1783,6 +1783,7 @@ var UrlBuilder = /*#__PURE__*/function () {
1783
1783
  // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1784
1784
  // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1785
1785
  // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1786
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
1786
1787
  var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1787
1788
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1788
1789
  }
@@ -1768,6 +1768,7 @@ var UrlBuilder = /*#__PURE__*/function () {
1768
1768
  // a) Call encodeURIComponent() on the file path. (This allows file paths to contain ANY character.)
1769
1769
  // b) Replace all occurrences of "%2F" with "/". (Allows file paths to appear as hierarchical paths on the URL.)
1770
1770
  // c) Replace all occurrences of "!" with "%21". (Prevents file paths with "!" inside being treated as "query bangs".)
1771
+ // SYNC: FileUrlUtils.makeFileUrl (internal)
1771
1772
  var filePathEncoded = encodeURIComponent(params.filePath).replace(/%2F/g, "/").replace(/!/g, "%21");
1772
1773
  return "".concat(cdnUrl, "/").concat(params.accountId, "/").concat(prefix).concat(filePathEncoded);
1773
1774
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytescale/sdk",
3
- "version": "3.50.0",
3
+ "version": "3.51.0",
4
4
  "description": "Bytescale JavaScript SDK",
5
5
  "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
6
6
  "license": "MIT",