ace-helpers 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -154,7 +154,10 @@ class Helpers {
154
154
  }
155
155
 
156
156
  if (/(video)/.test(thumbnail.type)) {
157
- return `${this.config.assistUrl}/${this.config.slug}/transform/${settingsString}/${thumbnail.name}/thumb.jpg${query}`;
157
+ // `poster` is a frame picked in the CMS (fokus-assist file/thumbnail)
158
+ return `${this.config.assistUrl}/${this.config.slug}/transform/${settingsString}/${thumbnail.name}/${
159
+ thumbnail.poster ? thumbnail.poster.fileName : 'thumb.jpg'
160
+ }${query}`;
158
161
  }
159
162
 
160
163
  if (/(oembed|proxy)/.test(thumbnail.type)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ace-helpers",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Helper module for ACE projects",
5
5
  "main": "index.js",
6
6
  "scripts": {