@toa.io/extensions.exposition 1.0.0-alpha.182 → 1.0.0-alpha.183
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.
|
@@ -78,6 +78,16 @@ Feature: Octets with Cloudinary storage
|
|
|
78
78
|
200 OK
|
|
79
79
|
content-type: image/jpeg
|
|
80
80
|
"""
|
|
81
|
+
When the following request is received:
|
|
82
|
+
"""
|
|
83
|
+
GET /${{ id }}.icon.jpeg HTTP/1.1
|
|
84
|
+
host: nex.toa.io
|
|
85
|
+
"""
|
|
86
|
+
Then the following reply is sent:
|
|
87
|
+
"""
|
|
88
|
+
200 OK
|
|
89
|
+
content-type: image/jpeg
|
|
90
|
+
"""
|
|
81
91
|
|
|
82
92
|
Scenario: Upload a video
|
|
83
93
|
When the stream of `plank.mp4` is received with the following headers:
|
|
@@ -31,6 +31,17 @@ process.env.TOA_STORAGES = encode({
|
|
|
31
31
|
type: 'image',
|
|
32
32
|
prefix: 'toa-dev',
|
|
33
33
|
transformations: [
|
|
34
|
+
{
|
|
35
|
+
extension: 'icon',
|
|
36
|
+
transformation: [{
|
|
37
|
+
width: 48,
|
|
38
|
+
height: 48,
|
|
39
|
+
crop: 'fill'
|
|
40
|
+
}, {
|
|
41
|
+
border: '10px_solid_white'
|
|
42
|
+
}],
|
|
43
|
+
optional: true
|
|
44
|
+
},
|
|
34
45
|
{
|
|
35
46
|
extension: '(?<width>\\d*)x(?<height>\\d*)(z(?<zoom>\\d*))?',
|
|
36
47
|
transformation: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toa.io/extensions.exposition",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.183",
|
|
4
4
|
"description": "Toa Exposition",
|
|
5
5
|
"author": "temich <tema.gurtovoy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/toa-io/toa#readme",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@toa.io/agent": "1.0.0-alpha.175",
|
|
54
|
-
"@toa.io/extensions.storages": "1.0.0-alpha.
|
|
54
|
+
"@toa.io/extensions.storages": "1.0.0-alpha.183",
|
|
55
55
|
"@types/bcryptjs": "2.4.3",
|
|
56
56
|
"@types/cors": "2.8.13",
|
|
57
57
|
"@types/negotiator": "0.6.1",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
},
|
|
64
64
|
"testEnvironment": "node"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "7114300663597f808595c7bfcae896724d71ed2b"
|
|
67
67
|
}
|