@live-change/image-service 0.8.33 → 0.8.35
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/image.js +5 -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
|
-
/*
|
|
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.
|
|
3
|
+
"version": "0.8.35",
|
|
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.
|
|
25
|
-
"@live-change/relations-plugin": "^0.8.
|
|
24
|
+
"@live-change/framework": "^0.8.35",
|
|
25
|
+
"@live-change/relations-plugin": "^0.8.35",
|
|
26
26
|
"download": "^8.0.0",
|
|
27
27
|
"pluralize": "^8.0.0",
|
|
28
28
|
"sharp": "^0.32.5"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "90fbb746dc7270895daf17b437ca48c0b0a01c01",
|
|
31
31
|
"type": "module"
|
|
32
32
|
}
|