@financial-times/x-teaser 8.2.2 → 8.2.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.
Files changed (2) hide show
  1. package/dist/Teaser.es5.js +15 -0
  2. package/package.json +2 -2
@@ -163,6 +163,7 @@ function _objectSpread2(target) {
163
163
  return target;
164
164
  }
165
165
  function _defineProperty(obj, key, value) {
166
+ key = _toPropertyKey(key);
166
167
  if (key in obj) {
167
168
  Object.defineProperty(obj, key, {
168
169
  value: value,
@@ -202,6 +203,20 @@ function _objectWithoutProperties(source, excluded) {
202
203
  }
203
204
  return target;
204
205
  }
206
+ function _toPrimitive(input, hint) {
207
+ if (typeof input !== "object" || input === null) return input;
208
+ var prim = input[Symbol.toPrimitive];
209
+ if (prim !== undefined) {
210
+ var res = prim.call(input, hint || "default");
211
+ if (typeof res !== "object") return res;
212
+ throw new TypeError("@@toPrimitive must return a primitive value.");
213
+ }
214
+ return (hint === "string" ? String : Number)(input);
215
+ }
216
+ function _toPropertyKey(arg) {
217
+ var key = _toPrimitive(arg, "string");
218
+ return typeof key === "symbol" ? key : String(key);
219
+ }
205
220
 
206
221
  var BASE_URL = 'https://www.ft.com/__origami/service/image/v2/images/raw';
207
222
  var OPTIONS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/x-teaser",
3
- "version": "8.2.2",
3
+ "version": "8.2.4",
4
4
  "description": "This module provides templates for use with o-teaser. Teasers are used to present content.",
5
5
  "source": "src/Teaser.jsx",
6
6
  "main": "dist/Teaser.cjs.js",
@@ -18,7 +18,7 @@
18
18
  "author": "",
19
19
  "license": "ISC",
20
20
  "dependencies": {
21
- "@financial-times/x-engine": "^8.2.2",
21
+ "@financial-times/x-engine": "^8.2.4",
22
22
  "date-fns": "^1.29.0",
23
23
  "dateformat": "^3.0.3"
24
24
  },