Skip to content

Commit

Permalink
feat: added 'sharp' package for image optimization
Browse files Browse the repository at this point in the history
was recommended by next.js in a warning on 'next start'
  • Loading branch information
chapati23 committed Dec 12, 2023
1 parent cbe9509 commit 479e5fc
Show file tree
Hide file tree
Showing 2 changed files with 310 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"react-dom": "^18.2.0",
"react-redux": "^8.1.0",
"react-toastify": "^9.1.3",
"sharp": "^0.33.0",
"toformat": "^2.0.0",
"wagmi": "0.12.18"
},
Expand Down
310 changes: 309 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,15 @@ __metadata:
languageName: node
linkType: hard

"@emnapi/runtime@npm:^0.44.0":
version: 0.44.0
resolution: "@emnapi/runtime@npm:0.44.0"
dependencies:
tslib: ^2.4.0
checksum: e07235d6347bfb7cececb6b06e91177e73ec57fdeb2ec371725a7feec684699b739d9e295be8c58a5b2a3cb2db2351c0a2a3b212dd1f400e0455c73445f199d3
languageName: node
linkType: hard

"@emotion/hash@npm:^0.8.0":
version: 0.8.0
resolution: "@emotion/hash@npm:0.8.0"
Expand Down Expand Up @@ -1327,6 +1336,181 @@ __metadata:
languageName: node
linkType: hard

"@img/sharp-darwin-arm64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-darwin-arm64@npm:0.33.0"
dependencies:
"@img/sharp-libvips-darwin-arm64": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-darwin-arm64":
optional: true
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@img/sharp-darwin-x64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-darwin-x64@npm:0.33.0"
dependencies:
"@img/sharp-libvips-darwin-x64": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-darwin-x64":
optional: true
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@img/sharp-libvips-darwin-arm64@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-darwin-arm64@npm:1.0.0"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@img/sharp-libvips-darwin-x64@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-darwin-x64@npm:1.0.0"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard

"@img/sharp-libvips-linux-arm64@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-linux-arm64@npm:1.0.0"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@img/sharp-libvips-linux-arm@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-linux-arm@npm:1.0.0"
conditions: os=linux & cpu=arm & libc=glibc
languageName: node
linkType: hard

"@img/sharp-libvips-linux-s390x@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-linux-s390x@npm:1.0.0"
conditions: os=linux & cpu=s390x & libc=glibc
languageName: node
linkType: hard

"@img/sharp-libvips-linux-x64@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-linux-x64@npm:1.0.0"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@img/sharp-libvips-linuxmusl-arm64@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-linuxmusl-arm64@npm:1.0.0"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@img/sharp-libvips-linuxmusl-x64@npm:1.0.0":
version: 1.0.0
resolution: "@img/sharp-libvips-linuxmusl-x64@npm:1.0.0"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@img/sharp-linux-arm64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-linux-arm64@npm:0.33.0"
dependencies:
"@img/sharp-libvips-linux-arm64": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-linux-arm64":
optional: true
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@img/sharp-linux-arm@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-linux-arm@npm:0.33.0"
dependencies:
"@img/sharp-libvips-linux-arm": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-linux-arm":
optional: true
conditions: os=linux & cpu=arm & libc=glibc
languageName: node
linkType: hard

"@img/sharp-linux-s390x@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-linux-s390x@npm:0.33.0"
dependencies:
"@img/sharp-libvips-linux-s390x": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-linux-s390x":
optional: true
conditions: os=linux & cpu=s390x & libc=glibc
languageName: node
linkType: hard

"@img/sharp-linux-x64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-linux-x64@npm:0.33.0"
dependencies:
"@img/sharp-libvips-linux-x64": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-linux-x64":
optional: true
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@img/sharp-linuxmusl-arm64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-linuxmusl-arm64@npm:0.33.0"
dependencies:
"@img/sharp-libvips-linuxmusl-arm64": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-linuxmusl-arm64":
optional: true
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard

"@img/sharp-linuxmusl-x64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-linuxmusl-x64@npm:0.33.0"
dependencies:
"@img/sharp-libvips-linuxmusl-x64": 1.0.0
dependenciesMeta:
"@img/sharp-libvips-linuxmusl-x64":
optional: true
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard

"@img/sharp-wasm32@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-wasm32@npm:0.33.0"
dependencies:
"@emnapi/runtime": ^0.44.0
conditions: cpu=wasm32
languageName: node
linkType: hard

"@img/sharp-win32-ia32@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-win32-ia32@npm:0.33.0"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard

"@img/sharp-win32-x64@npm:0.33.0":
version: 0.33.0
resolution: "@img/sharp-win32-x64@npm:0.33.0"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard

"@istanbuljs/load-nyc-config@npm:^1.0.0":
version: 1.1.0
resolution: "@istanbuljs/load-nyc-config@npm:1.1.0"
Expand Down Expand Up @@ -1763,6 +1947,7 @@ __metadata:
react-dom: ^18.2.0
react-redux: ^8.1.0
react-toastify: ^9.1.3
sharp: ^0.33.0
tailwindcss: ^3.3.2
toformat: ^2.0.0
ts-jest: ^29.1.0
Expand Down Expand Up @@ -4648,13 +4833,23 @@ __metadata:
languageName: node
linkType: hard

"color-name@npm:~1.1.4":
"color-name@npm:^1.0.0, color-name@npm:~1.1.4":
version: 1.1.4
resolution: "color-name@npm:1.1.4"
checksum: b0445859521eb4021cd0fb0cc1a75cecf67fceecae89b63f62b201cca8d345baf8b952c966862a9d9a2632987d4f6581f0ec8d957dfacece86f0a7919316f610
languageName: node
linkType: hard

"color-string@npm:^1.9.0":
version: 1.9.1
resolution: "color-string@npm:1.9.1"
dependencies:
color-name: ^1.0.0
simple-swizzle: ^0.2.2
checksum: c13fe7cff7885f603f49105827d621ce87f4571d78ba28ef4a3f1a104304748f620615e6bf065ecd2145d0d9dad83a3553f52bb25ede7239d18e9f81622f1cc5
languageName: node
linkType: hard

"color-support@npm:^1.1.3":
version: 1.1.3
resolution: "color-support@npm:1.1.3"
Expand All @@ -4664,6 +4859,16 @@ __metadata:
languageName: node
linkType: hard

"color@npm:^4.2.3":
version: 4.2.3
resolution: "color@npm:4.2.3"
dependencies:
color-convert: ^2.0.1
color-string: ^1.9.0
checksum: 0579629c02c631b426780038da929cca8e8d80a40158b09811a0112a107c62e10e4aad719843b791b1e658ab4e800558f2e87ca4522c8b32349d497ecb6adeb4
languageName: node
linkType: hard

"commander@npm:^2.20.3":
version: 2.20.3
resolution: "commander@npm:2.20.3"
Expand Down Expand Up @@ -4968,6 +5173,13 @@ __metadata:
languageName: node
linkType: hard

"detect-libc@npm:^2.0.2":
version: 2.0.2
resolution: "detect-libc@npm:2.0.2"
checksum: 2b2cd3649b83d576f4be7cc37eb3b1815c79969c8b1a03a40a4d55d83bc74d010753485753448eacb98784abf22f7dbd3911fd3b60e29fda28fed2d1a997944d
languageName: node
linkType: hard

"detect-newline@npm:^3.0.0":
version: 3.1.0
resolution: "detect-newline@npm:3.1.0"
Expand Down Expand Up @@ -6611,6 +6823,13 @@ __metadata:
languageName: node
linkType: hard

"is-arrayish@npm:^0.3.1":
version: 0.3.2
resolution: "is-arrayish@npm:0.3.2"
checksum: 977e64f54d91c8f169b59afcd80ff19227e9f5c791fa28fa2e5bce355cbaf6c2c356711b734656e80c9dd4a854dd7efcf7894402f1031dfc5de5d620775b4d5f
languageName: node
linkType: hard

"is-bigint@npm:^1.0.1":
version: 1.0.2
resolution: "is-bigint@npm:1.0.2"
Expand Down Expand Up @@ -9707,6 +9926,17 @@ __metadata:
languageName: node
linkType: hard

"semver@npm:^7.5.4":
version: 7.5.4
resolution: "semver@npm:7.5.4"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: 12d8ad952fa353b0995bf180cdac205a4068b759a140e5d3c608317098b3575ac2f1e09182206bf2eb26120e1c0ed8fb92c48c592f6099680de56bb071423ca3
languageName: node
linkType: hard

"set-blocking@npm:^2.0.0":
version: 2.0.0
resolution: "set-blocking@npm:2.0.0"
Expand All @@ -9726,6 +9956,75 @@ __metadata:
languageName: node
linkType: hard

"sharp@npm:^0.33.0":
version: 0.33.0
resolution: "sharp@npm:0.33.0"
dependencies:
"@img/sharp-darwin-arm64": 0.33.0
"@img/sharp-darwin-x64": 0.33.0
"@img/sharp-libvips-darwin-arm64": 1.0.0
"@img/sharp-libvips-darwin-x64": 1.0.0
"@img/sharp-libvips-linux-arm": 1.0.0
"@img/sharp-libvips-linux-arm64": 1.0.0
"@img/sharp-libvips-linux-s390x": 1.0.0
"@img/sharp-libvips-linux-x64": 1.0.0
"@img/sharp-libvips-linuxmusl-arm64": 1.0.0
"@img/sharp-libvips-linuxmusl-x64": 1.0.0
"@img/sharp-linux-arm": 0.33.0
"@img/sharp-linux-arm64": 0.33.0
"@img/sharp-linux-s390x": 0.33.0
"@img/sharp-linux-x64": 0.33.0
"@img/sharp-linuxmusl-arm64": 0.33.0
"@img/sharp-linuxmusl-x64": 0.33.0
"@img/sharp-wasm32": 0.33.0
"@img/sharp-win32-ia32": 0.33.0
"@img/sharp-win32-x64": 0.33.0
color: ^4.2.3
detect-libc: ^2.0.2
semver: ^7.5.4
dependenciesMeta:
"@img/sharp-darwin-arm64":
optional: true
"@img/sharp-darwin-x64":
optional: true
"@img/sharp-libvips-darwin-arm64":
optional: true
"@img/sharp-libvips-darwin-x64":
optional: true
"@img/sharp-libvips-linux-arm":
optional: true
"@img/sharp-libvips-linux-arm64":
optional: true
"@img/sharp-libvips-linux-s390x":
optional: true
"@img/sharp-libvips-linux-x64":
optional: true
"@img/sharp-libvips-linuxmusl-arm64":
optional: true
"@img/sharp-libvips-linuxmusl-x64":
optional: true
"@img/sharp-linux-arm":
optional: true
"@img/sharp-linux-arm64":
optional: true
"@img/sharp-linux-s390x":
optional: true
"@img/sharp-linux-x64":
optional: true
"@img/sharp-linuxmusl-arm64":
optional: true
"@img/sharp-linuxmusl-x64":
optional: true
"@img/sharp-wasm32":
optional: true
"@img/sharp-win32-ia32":
optional: true
"@img/sharp-win32-x64":
optional: true
checksum: a140577f7a316642c4bbc3f654e7ee7b86d32f0c5ee572df1a09519ca5972d2fe45fbb3213df65fcffafbe4b2acbc57172dc035cca844153eba2b66465910d02
languageName: node
linkType: hard

"shebang-command@npm:^2.0.0":
version: 2.0.0
resolution: "shebang-command@npm:2.0.0"
Expand Down Expand Up @@ -9767,6 +10066,15 @@ __metadata:
languageName: node
linkType: hard

"simple-swizzle@npm:^0.2.2":
version: 0.2.2
resolution: "simple-swizzle@npm:0.2.2"
dependencies:
is-arrayish: ^0.3.1
checksum: a7f3f2ab5c76c4472d5c578df892e857323e452d9f392e1b5cf74b74db66e6294a1e1b8b390b519fa1b96b5b613f2a37db6cffef52c3f1f8f3c5ea64eb2d54c0
languageName: node
linkType: hard

"sisteransi@npm:^1.0.5":
version: 1.0.5
resolution: "sisteransi@npm:1.0.5"
Expand Down

0 comments on commit 479e5fc

Please sign in to comment.