@live-change/image-service 0.8.149 → 0.9.1
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 +3 -19
- package/package.json +4 -4
package/image.js
CHANGED
|
@@ -115,7 +115,7 @@ definition.action({
|
|
|
115
115
|
const dir = `${imagesPath}${image}`
|
|
116
116
|
|
|
117
117
|
emit({
|
|
118
|
-
type: "
|
|
118
|
+
type: "ImageCreated",
|
|
119
119
|
image,
|
|
120
120
|
identifiers: {
|
|
121
121
|
owner, ownerType
|
|
@@ -191,7 +191,7 @@ definition.trigger({
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
emit({
|
|
194
|
-
type: "
|
|
194
|
+
type: "ImageCreated",
|
|
195
195
|
image,
|
|
196
196
|
identifiers: {
|
|
197
197
|
owner, ownerType
|
|
@@ -256,7 +256,7 @@ definition.trigger({
|
|
|
256
256
|
//console.log("IMAGE METADATA", metadata)
|
|
257
257
|
|
|
258
258
|
emit({
|
|
259
|
-
type: "
|
|
259
|
+
type: "ImageCreated",
|
|
260
260
|
image,
|
|
261
261
|
identifiers: {
|
|
262
262
|
owner, ownerType
|
|
@@ -294,20 +294,4 @@ definition.trigger({
|
|
|
294
294
|
}
|
|
295
295
|
})
|
|
296
296
|
|
|
297
|
-
definition.view({
|
|
298
|
-
name: 'image',
|
|
299
|
-
properties: {
|
|
300
|
-
image: {
|
|
301
|
-
type: Image,
|
|
302
|
-
validation: ['nonEmpty']
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
returns: {
|
|
306
|
-
type: Image
|
|
307
|
-
},
|
|
308
|
-
daoPath({ image }, { client, context }) {
|
|
309
|
-
return Image.path( image )
|
|
310
|
-
}
|
|
311
|
-
})
|
|
312
|
-
|
|
313
297
|
export { Image }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/image-service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
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.
|
|
25
|
-
"@live-change/relations-plugin": "^0.
|
|
24
|
+
"@live-change/framework": "^0.9.1",
|
|
25
|
+
"@live-change/relations-plugin": "^0.9.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": "d00e08ee081d6993421e4573fc25588345aaabca",
|
|
31
31
|
"type": "module"
|
|
32
32
|
}
|