@akinon/next 1.38.0 → 1.39.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1bc5e92: ZERO-2701: Fix image loader regex to handle null src values
8
+
3
9
  ## 1.38.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.38.0",
4
+ "version": "1.39.0",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "@typescript-eslint/eslint-plugin": "6.7.4",
35
35
  "@typescript-eslint/parser": "6.7.4",
36
36
  "eslint": "^8.14.0",
37
- "@akinon/eslint-plugin-projectzero": "1.38.0",
37
+ "@akinon/eslint-plugin-projectzero": "1.39.0",
38
38
  "eslint-config-prettier": "8.5.0"
39
39
  }
40
40
  }
@@ -18,7 +18,7 @@ export const ImageLoader = ({
18
18
  fill,
19
19
  aspectRatio
20
20
  }: ImageLoaderParams) => {
21
- if (src.match(/akinoncdn|akinoncloud|b-cdn\.net/)) {
21
+ if (src?.match?.(/akinoncdn|akinoncloud|b-cdn\.net/)) {
22
22
  const height =
23
23
  fill && aspectRatio
24
24
  ? parseInt(String(Number(width) / aspectRatio))