@live-change/image-service 0.8.32 → 0.8.34

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/image.js +5 -2
  2. package/package.json +4 -4
package/image.js CHANGED
@@ -173,16 +173,19 @@ definition.trigger({
173
173
  const downloadPath = `${uploadsPath}download_${image}`
174
174
  await download(url, uploadsPath, { filename: `download_${image}` })
175
175
 
176
- /*console.log("DOWNLOADED", url, uploadsPath, '=>', downloadPath)
176
+ /*
177
+ console.log("DOWNLOADED", url, uploadsPath, '=>', downloadPath)
177
178
  const downloadExists = await fs.promises.access(downloadPath, fs.constants.F_OK)
178
179
  .then(() => true)
179
180
  .catch(() => false)
180
- console.log("DOWNLOAD EXISTS", downloadExists)*/
181
+ console.log("DOWNLOAD EXISTS", downloadExists)//*/
181
182
 
182
183
  const data = await fs.promises.readFile(downloadPath)
183
184
  const metadata = await sharp(data).metadata()
184
185
  //const metadata = await sharp(downloadPath).metadata()
185
186
 
187
+ //console.log("IMAGE METADATA", metadata)
188
+
186
189
  emit({
187
190
  type: "ownerOwnedImageCreated",
188
191
  image,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/image-service",
3
- "version": "0.8.32",
3
+ "version": "0.8.34",
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.32",
25
- "@live-change/relations-plugin": "^0.8.32",
24
+ "@live-change/framework": "^0.8.34",
25
+ "@live-change/relations-plugin": "^0.8.34",
26
26
  "download": "^8.0.0",
27
27
  "pluralize": "^8.0.0",
28
28
  "sharp": "^0.32.5"
29
29
  },
30
- "gitHead": "9ea7767670a99404794087726223064c45d798d3",
30
+ "gitHead": "40e61928bf43b35352c76fc135f36a2d8bd76c4a",
31
31
  "type": "module"
32
32
  }