@financial-times/x-teaser 6.2.10 → 6.3.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/dist/Teaser.es5.js +9 -21
- package/package.json +13 -7
package/dist/Teaser.es5.js
CHANGED
|
@@ -159,14 +159,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
159
159
|
|
|
160
160
|
if (Object.getOwnPropertySymbols) {
|
|
161
161
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
keys.push.apply(keys, symbols);
|
|
162
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
163
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
164
|
+
})), keys.push.apply(keys, symbols);
|
|
170
165
|
}
|
|
171
166
|
|
|
172
167
|
return keys;
|
|
@@ -174,19 +169,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
174
169
|
|
|
175
170
|
function _objectSpread2(target) {
|
|
176
171
|
for (var i = 1; i < arguments.length; i++) {
|
|
177
|
-
var source = arguments[i]
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
184
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
185
|
-
} else {
|
|
186
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
187
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
188
|
-
});
|
|
189
|
-
}
|
|
172
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
173
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
174
|
+
_defineProperty(target, key, source[key]);
|
|
175
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
176
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
177
|
+
});
|
|
190
178
|
}
|
|
191
179
|
|
|
192
180
|
return target;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/x-teaser",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
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",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"types": "Props.d.ts",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "node rollup.js",
|
|
12
|
-
"start": "node rollup.js --watch"
|
|
12
|
+
"start": "node rollup.js --watch",
|
|
13
|
+
"preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
|
|
13
14
|
},
|
|
14
15
|
"keywords": [
|
|
15
16
|
"x-dash"
|
|
@@ -17,12 +18,13 @@
|
|
|
17
18
|
"author": "",
|
|
18
19
|
"license": "ISC",
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@financial-times/x-engine": "^6.
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"@financial-times/x-engine": "^6.3.1",
|
|
22
|
+
"date-fns": "^1.29.0",
|
|
23
|
+
"dateformat": "^3.0.3"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@financial-times/x-rollup": "file:../../packages/x-rollup"
|
|
26
|
+
"@financial-times/x-rollup": "file:../../packages/x-rollup",
|
|
27
|
+
"check-engine": "^1.10.1"
|
|
26
28
|
},
|
|
27
29
|
"repository": {
|
|
28
30
|
"type": "git",
|
|
@@ -30,9 +32,13 @@
|
|
|
30
32
|
},
|
|
31
33
|
"homepage": "https://github.com/Financial-Times/x-dash/tree/HEAD/components/x-teaser",
|
|
32
34
|
"engines": {
|
|
33
|
-
"node": "12.x"
|
|
35
|
+
"node": "12.x",
|
|
36
|
+
"npm": "7.x || 8.x"
|
|
34
37
|
},
|
|
35
38
|
"publishConfig": {
|
|
36
39
|
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"volta": {
|
|
42
|
+
"extends": "../../package.json"
|
|
37
43
|
}
|
|
38
44
|
}
|