@live-change/image-service 0.4.2 → 0.4.4
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 +2 -2
- package/package.json +4 -4
package/image.js
CHANGED
|
@@ -107,7 +107,7 @@ definition.action({
|
|
|
107
107
|
}
|
|
108
108
|
const uploadRow = await Upload.get(upload)
|
|
109
109
|
if(!uploadRow) throw new Error("upload_not_found")
|
|
110
|
-
if(uploadRow.state!='done') throw new Error("upload_not_done")
|
|
110
|
+
if(uploadRow.state != 'done') throw new Error("upload_not_done")
|
|
111
111
|
|
|
112
112
|
let extension = uploadRow.fileName.match(/\.([A-Z0-9]+)$/i)[1].toLowerCase()
|
|
113
113
|
if(extension == 'jpg') extension = "jpeg"
|
|
@@ -127,7 +127,7 @@ definition.action({
|
|
|
127
127
|
})
|
|
128
128
|
|
|
129
129
|
await mkdir(dir)
|
|
130
|
-
await move(`${uploadsPath}${uploadRow.
|
|
130
|
+
await move(`${uploadsPath}${uploadRow.internalName}`, `${dir}/original.${extension}`)
|
|
131
131
|
|
|
132
132
|
await app.trigger({
|
|
133
133
|
type: 'uploadUsed',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/image-service",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
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.1",
|
|
25
|
+
"@live-change/relations-plugin": "0.8.1",
|
|
26
26
|
"download": "^8.0.0",
|
|
27
27
|
"pluralize": "^8.0.0",
|
|
28
28
|
"sharp": "^0.32.5"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "111996516a012d66af8de99362a2254fb63bfc7d",
|
|
31
31
|
"type": "module"
|
|
32
32
|
}
|