@live-change/image-service 0.8.141 → 0.8.142

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.
Files changed (2) hide show
  1. package/endpoint.js +1 -1
  2. package/package.json +4 -4
package/endpoint.js CHANGED
@@ -139,7 +139,7 @@ async function handleImageGet(req, res, params) {
139
139
  height = Math.round(height * metadata.width / width)
140
140
  width = metadata.width
141
141
  }
142
- if(width == metadata.width && height == metadata.height) return res.sendFile(sourceFilePath)
142
+ if(width === metadata.width && height === metadata.height) return res.sendFile(sourceFilePath)
143
143
  const normalized = normalizeFormat(params.format || metadata.extension)
144
144
  const convertedFilePath = path.resolve(imagePrefix + `rect-${width}-${height}.${normalized}`)
145
145
  if(!(await fileExists(convertedFilePath))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/image-service",
3
- "version": "0.8.141",
3
+ "version": "0.8.142",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -21,12 +21,12 @@
21
21
  "url": "https://www.viamage.com/"
22
22
  },
23
23
  "dependencies": {
24
- "@live-change/framework": "^0.8.141",
25
- "@live-change/relations-plugin": "^0.8.141",
24
+ "@live-change/framework": "^0.8.142",
25
+ "@live-change/relations-plugin": "^0.8.142",
26
26
  "download": "^8.0.0",
27
27
  "pluralize": "^8.0.0",
28
28
  "sharp": "^0.32.5"
29
29
  },
30
- "gitHead": "cafaa203cb334801a288116970521929ae3465a9",
30
+ "gitHead": "6c6de9015268e09f3517dc2dbb28e673ea19fe74",
31
31
  "type": "module"
32
32
  }