@graphcommerce/image 9.0.0-canary.104 → 9.0.0-canary.106
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/CHANGELOG.md +4 -0
- package/config/config.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/config/config.ts
CHANGED
|
@@ -100,8 +100,8 @@ export function defaultLoader({ config, src, width, quality }: ImageLoaderPropsW
|
|
|
100
100
|
) {
|
|
101
101
|
// We use dynamic require because this should only error in development
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
103
|
-
import('next/dist/shared/lib/match-remote-pattern').then(({
|
|
104
|
-
if (!
|
|
103
|
+
import('next/dist/shared/lib/match-remote-pattern').then(({ hasRemoteMatch }) => {
|
|
104
|
+
if (!hasRemoteMatch(config.domains, config.remotePatterns, parsedSrc)) {
|
|
105
105
|
throw new Error(
|
|
106
106
|
`Invalid src prop (${src}) on \`next/image\`, hostname "${parsedSrc.hostname}" is not configured under images in your \`next.config.js\`\n` +
|
|
107
107
|
'See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host',
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/image",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.106",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "tsc -W"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/framer-utils": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
18
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.106",
|
|
19
|
+
"@graphcommerce/framer-utils": "^9.0.0-canary.106",
|
|
20
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.106",
|
|
21
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.106",
|
|
22
22
|
"@mui/material": "^5.10.16",
|
|
23
23
|
"next": "*",
|
|
24
24
|
"react": "^18.2.0",
|