tg-core-components 6.1.18 → 6.1.19

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.
@@ -35,7 +35,7 @@ var Picture = function Picture(_ref) {
35
35
  });
36
36
  }),
37
37
  React.createElement('img', _extends({
38
- src: typeof src === 'string' && src,
38
+ src: typeof src === 'string' ? src : undefined,
39
39
  width: width,
40
40
  height: height,
41
41
  loading: loading
@@ -9,7 +9,7 @@ var translate = function translate(_ref, intl) {
9
9
  values = _ref.values,
10
10
  rest = _objectWithoutProperties(_ref, ['id', 'values']);
11
11
 
12
- var cacheId = id + (JSON.stringify(values) || '');
12
+ var cacheId = id + (typeof intl !== 'undefined' ? intl.locale : '') + (JSON.stringify(values) || '');
13
13
  if (cache[cacheId]) return cache[cacheId];
14
14
 
15
15
  var g = typeof window !== 'undefined' && window || typeof global !== 'undefined' && global || {};
@@ -52,7 +52,7 @@ var Picture = function Picture(_ref) {
52
52
  });
53
53
  }),
54
54
  _react2.default.createElement('img', _extends({
55
- src: typeof src === 'string' && src,
55
+ src: typeof src === 'string' ? src : undefined,
56
56
  width: width,
57
57
  height: height,
58
58
  loading: loading
@@ -15,7 +15,7 @@ var translate = function translate(_ref, intl) {
15
15
  values = _ref.values,
16
16
  rest = _objectWithoutProperties(_ref, ['id', 'values']);
17
17
 
18
- var cacheId = id + (JSON.stringify(values) || '');
18
+ var cacheId = id + (typeof intl !== 'undefined' ? intl.locale : '') + (JSON.stringify(values) || '');
19
19
  if (cache[cacheId]) return cache[cacheId];
20
20
 
21
21
  var g = typeof window !== 'undefined' && window || typeof global !== 'undefined' && global || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tg-core-components",
3
- "version": "6.1.18",
3
+ "version": "6.1.19",
4
4
  "description": "tg-core-components",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -76,5 +76,5 @@
76
76
  "webpack": "^3.0.0",
77
77
  "webpack-blocks": "^1.0.0"
78
78
  },
79
- "gitHead": "655fb1956cc5f772c25bcb3a193836eb387d5122"
79
+ "gitHead": "f0c8788ebfd0bd8ae189b72e3c4c3092ce2aef09"
80
80
  }