@alpaca-headless/alpaca-headless-nextjs 1.0.2713 → 1.0.2715

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.
@@ -33,6 +33,8 @@ const protectedParams = [
33
33
  "crop",
34
34
  ];
35
35
  function hashImageUrl(url) {
36
+ if (!process.env.MEDIA_REQUESTPROTECTION_SHAREDSECRET)
37
+ return url;
36
38
  const uri = new URL(url.toLowerCase());
37
39
  uri.searchParams.delete("hash");
38
40
  const searchParams = protectedParams
@@ -27,6 +27,8 @@ const protectedParams = [
27
27
  "crop",
28
28
  ];
29
29
  export function hashImageUrl(url) {
30
+ if (!process.env.MEDIA_REQUESTPROTECTION_SHAREDSECRET)
31
+ return url;
30
32
  const uri = new URL(url.toLowerCase());
31
33
  uri.searchParams.delete("hash");
32
34
  const searchParams = protectedParams
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpaca-headless/alpaca-headless-nextjs",
3
- "version": "1.0.2713",
3
+ "version": "1.0.2715",
4
4
  "description": "Alpaca Headless NextJs Integration",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",