@uxf/core 11.128.0 → 11.129.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/README.md +1 -1
- package/package.json +1 -1
- package/utils/resizer.js +1 -1
- package/utils/resizer.test.js +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ There is no root entry point – every symbol is imported from its own deep path
|
|
|
30
30
|
```json
|
|
31
31
|
[
|
|
32
32
|
{
|
|
33
|
-
"route": "/generated/static/:width(\\d+|x)_:height(\\d+|x)_:fit([a-z]+)_:position([a-z]+)_:background([a-z]+)_:trim([a-z]+)_:quality(\\d+|x)/:version/:filename(
|
|
33
|
+
"route": "/generated/static/:width(\\d+|x)_:height(\\d+|x)_:fit([a-z]+)_:position([a-z]+)_:background([a-z]+)_:trim([a-z]+)_:quality(\\d+|x)/:version/:filename(.*).:extension.:toFormat",
|
|
34
34
|
"source": "https://uxf-base.uxf.dev/:filename+.:extension"
|
|
35
35
|
},
|
|
36
36
|
{
|
package/package.json
CHANGED
package/utils/resizer.js
CHANGED
|
@@ -83,7 +83,7 @@ function resizerImageUrl(source, width = "auto", height = "auto", props = {}, ve
|
|
|
83
83
|
function resizerGetDefaultConfig(generatedFilesUrl, staticFilesUrl) {
|
|
84
84
|
return [
|
|
85
85
|
{
|
|
86
|
-
route: "/generated/static/:width(\\d+|x)_:height(\\d+|x)_:fit([a-z]+)_:position([a-z]+)_:background([a-z]+)_:trim([a-z]+)_:quality(\\d+|x)/:version/:filename(
|
|
86
|
+
route: "/generated/static/:width(\\d+|x)_:height(\\d+|x)_:fit([a-z]+)_:position([a-z]+)_:background([a-z]+)_:trim([a-z]+)_:quality(\\d+|x)/:version/:filename(.*).:extension.:toFormat",
|
|
87
87
|
source: `${staticFilesUrl}/:filename+.:extension`,
|
|
88
88
|
},
|
|
89
89
|
{
|
package/utils/resizer.test.js
CHANGED
|
@@ -71,7 +71,7 @@ describe("resizerGetDefaultConfig", () => {
|
|
|
71
71
|
const staticFilesUrl = "http://example.com/static";
|
|
72
72
|
const expectedConfig = [
|
|
73
73
|
{
|
|
74
|
-
route: "/generated/static/:width(\\d+|x)_:height(\\d+|x)_:fit([a-z]+)_:position([a-z]+)_:background([a-z]+)_:trim([a-z]+)_:quality(\\d+|x)/:version/:filename(
|
|
74
|
+
route: "/generated/static/:width(\\d+|x)_:height(\\d+|x)_:fit([a-z]+)_:position([a-z]+)_:background([a-z]+)_:trim([a-z]+)_:quality(\\d+|x)/:version/:filename(.*).:extension.:toFormat",
|
|
75
75
|
source: `${staticFilesUrl}/:filename+.:extension`,
|
|
76
76
|
},
|
|
77
77
|
{
|