@uxf/resizer 11.42.0 → 11.47.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/resizer",
3
- "version": "11.42.0",
3
+ "version": "11.47.3",
4
4
  "main": "index.js",
5
5
  "description": "UXF Resizer",
6
6
  "author": "UXFans <dev@uxf.cz>",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/express": "4.17.21",
23
- "concurrently": "9.0.1",
23
+ "concurrently": "9.1.0",
24
24
  "crypto-js": "4.2.0",
25
25
  "express": "4.21.1",
26
26
  "path-to-regexp": "6.2.2",
package/src/next-route.js CHANGED
@@ -60,7 +60,8 @@ async function StaticGET(request) {
60
60
  }
61
61
  const staticUrl = `${process.env.NEXT_PUBLIC_FRONTEND_URL}/${params.filename}.${params.extension}`;
62
62
  // import usage: _next/static/media/example-logo-resizer.941ec59a => example-logo-resizer
63
- const sourceFile = params.filename.startsWith("_next/static/media/")
63
+ // import usage: /assetPrefix/_next/static/media/example-logo-resizer.941ec59a => example-logo-resizer
64
+ const sourceFile = params.filename.includes("_next/static/media/")
64
65
  ? await fetch(staticUrl).then((response) => response.arrayBuffer())
65
66
  : process.cwd() + `/public/${params.filename}.${params.extension}`;
66
67
  (0, log_1.log)(`Source filename: ${sourceFile instanceof ArrayBuffer ? staticUrl : sourceFile}`);
package/src/next-route.ts CHANGED
@@ -43,7 +43,8 @@ export async function StaticGET(request: Request) {
43
43
  const staticUrl = `${process.env.NEXT_PUBLIC_FRONTEND_URL}/${params.filename}.${params.extension}`;
44
44
 
45
45
  // import usage: _next/static/media/example-logo-resizer.941ec59a => example-logo-resizer
46
- const sourceFile = params.filename.startsWith("_next/static/media/")
46
+ // import usage: /assetPrefix/_next/static/media/example-logo-resizer.941ec59a => example-logo-resizer
47
+ const sourceFile = params.filename.includes("_next/static/media/")
47
48
  ? await fetch(staticUrl).then((response) => response.arrayBuffer())
48
49
  : process.cwd() + `/public/${params.filename}.${params.extension}`;
49
50