@mjhls/mjh-framework 1.0.625 → 1.0.626-iOS-chrome-fix-v2

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 (141) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleQueue.js +12 -12
  15. package/dist/cjs/ArticleSeriesListing.js +5 -5
  16. package/dist/cjs/Auth.js +249 -300
  17. package/dist/cjs/{BlockContent-f942392e.js → BlockContent-c2168db0.js} +1 -1
  18. package/dist/cjs/CMEDeck.js +5 -5
  19. package/dist/cjs/Column3.js +4 -4
  20. package/dist/cjs/ConferenceArticleCard.js +2 -2
  21. package/dist/cjs/DeckContent.js +8 -8
  22. package/dist/cjs/DeckQueue.js +7 -7
  23. package/dist/cjs/{Dfp-fbe32b96.js → Dfp-fcdeabc4.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +8 -8
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +12 -12
  29. package/dist/cjs/GridHero.js +2 -2
  30. package/dist/cjs/GroupDeck.js +1 -1
  31. package/dist/cjs/HamMagazine.js +4 -4
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +2 -2
  34. package/dist/cjs/IssueContentDeck.js +2 -2
  35. package/dist/cjs/IssueDeck.js +2 -2
  36. package/dist/cjs/IssueLanding.js +8 -8
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +10 -10
  39. package/dist/cjs/NavMagazine.js +4 -4
  40. package/dist/cjs/NavNative.js +2 -2
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +1211 -15
  44. package/dist/cjs/PublicationDeck.js +2 -2
  45. package/dist/cjs/QueueDeckExpanded.js +10 -10
  46. package/dist/cjs/RecentNews.js +2 -2
  47. package/dist/cjs/RelatedContent.js +2 -2
  48. package/dist/cjs/{SocialSearchComponent-5cbde5e0.js → SocialSearchComponent-7febe148.js} +5 -3
  49. package/dist/cjs/TaxonomyCard.js +2 -2
  50. package/dist/cjs/TemplateNormal.js +3 -3
  51. package/dist/cjs/ThumbnailCard.js +1 -1
  52. package/dist/cjs/Ustream.js +2 -2
  53. package/dist/cjs/VerticalHero.js +2 -2
  54. package/dist/cjs/VideoSeriesListing.js +5 -5
  55. package/dist/cjs/View.js +27 -21
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getSerializers.js +7 -7
  59. package/dist/cjs/{index-77531536.js → index-2cc1225c.js} +10 -10
  60. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  61. package/dist/cjs/{index-b5eb3ff8.js → index-39beccb3.js} +18 -18
  62. package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
  63. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  64. package/dist/cjs/index.js +13 -14
  65. package/dist/cjs/{inherits-dca612fa.js → inherits-227da8e1.js} +4 -4
  66. package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
  67. package/dist/cjs/{main-bc4db521.js → main-a4cb15bb.js} +36 -66
  68. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  69. package/dist/cjs/urlFor.js +1 -1
  70. package/dist/esm/AD.js +1 -1
  71. package/dist/esm/AD300x250.js +3 -3
  72. package/dist/esm/AD300x250x600.js +3 -3
  73. package/dist/esm/AD728x90.js +4 -4
  74. package/dist/esm/ADFloatingFooter.js +2 -2
  75. package/dist/esm/ADGutter.js +2 -2
  76. package/dist/esm/ADSkyscraper.js +2 -2
  77. package/dist/esm/ADSponsoredResources.js +2 -2
  78. package/dist/esm/ADWebcast.js +2 -2
  79. package/dist/esm/ADWelcome.js +2 -2
  80. package/dist/esm/AdSlot.js +2 -2
  81. package/dist/esm/AdSlotsProvider.js +1 -1
  82. package/dist/esm/ArticleQueue.js +11 -11
  83. package/dist/esm/ArticleSeriesListing.js +4 -4
  84. package/dist/esm/Auth.js +249 -300
  85. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-c409aca5.js} +1 -1
  86. package/dist/esm/CMEDeck.js +5 -5
  87. package/dist/esm/Column3.js +4 -4
  88. package/dist/esm/ConferenceArticleCard.js +2 -2
  89. package/dist/esm/DeckContent.js +7 -7
  90. package/dist/esm/DeckQueue.js +6 -6
  91. package/dist/esm/{Dfp-40c70a33.js → Dfp-380bef62.js} +1 -1
  92. package/dist/esm/EventsDeck.js +5 -5
  93. package/dist/esm/ExternalResources.js +7 -7
  94. package/dist/esm/Feature.js +3 -3
  95. package/dist/esm/ForbesHero.js +2 -2
  96. package/dist/esm/GridContent.js +11 -11
  97. package/dist/esm/GridHero.js +2 -2
  98. package/dist/esm/GroupDeck.js +1 -1
  99. package/dist/esm/HamMagazine.js +4 -4
  100. package/dist/esm/Hero.js +1 -1
  101. package/dist/esm/HorizontalHero.js +2 -2
  102. package/dist/esm/IssueContentDeck.js +2 -2
  103. package/dist/esm/IssueDeck.js +2 -2
  104. package/dist/esm/IssueLanding.js +8 -8
  105. package/dist/esm/LeftNav.js +2 -2
  106. package/dist/esm/MasterDeck.js +9 -9
  107. package/dist/esm/NavMagazine.js +4 -4
  108. package/dist/esm/NavNative.js +2 -2
  109. package/dist/esm/OncliveHero.js +2 -2
  110. package/dist/esm/OncliveLargeHero.js +2 -2
  111. package/dist/esm/PartnerDetailListing.js +1210 -14
  112. package/dist/esm/PublicationDeck.js +2 -2
  113. package/dist/esm/QueueDeckExpanded.js +10 -10
  114. package/dist/esm/RecentNews.js +2 -2
  115. package/dist/esm/RelatedContent.js +2 -2
  116. package/dist/esm/{SocialSearchComponent-00385695.js → SocialSearchComponent-74c5add5.js} +5 -3
  117. package/dist/esm/TaxonomyCard.js +2 -2
  118. package/dist/esm/TemplateNormal.js +3 -3
  119. package/dist/esm/ThumbnailCard.js +1 -1
  120. package/dist/esm/Ustream.js +2 -2
  121. package/dist/esm/VerticalHero.js +2 -2
  122. package/dist/esm/VideoSeriesListing.js +4 -4
  123. package/dist/esm/View.js +26 -20
  124. package/dist/esm/YahooHero.js +2 -2
  125. package/dist/esm/YoutubeGroup.js +1 -1
  126. package/dist/esm/getSerializers.js +6 -6
  127. package/dist/esm/{index-8a3465af.js → index-1df8b68e.js} +9 -9
  128. package/dist/esm/{index-51a80699.js → index-3849e3fe.js} +18 -18
  129. package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
  130. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  131. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  132. package/dist/esm/index.js +12 -13
  133. package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
  134. package/dist/esm/{main-7255814e.js → main-5d1e4bd3.js} +34 -65
  135. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  136. package/dist/esm/urlFor.js +1 -1
  137. package/package.json +3 -3
  138. /package/dist/cjs/{ADInfeed-ce11d87d.js → ADInfeed-cbdb3a85.js} +0 -0
  139. /package/dist/cjs/{ADlgInfeed-7fc40444.js → ADlgInfeed-abcaf930.js} +0 -0
  140. /package/dist/esm/{ADInfeed-5fb6c05e.js → ADInfeed-cab1e5a5.js} +0 -0
  141. /package/dist/esm/{ADlgInfeed-5eab5705.js → ADlgInfeed-b65e5399.js} +0 -0
@@ -60,35 +60,35 @@ function parseSource(source) {
60
60
  if (typeof source === 'string' && isUrl(source)) {
61
61
  // Someone passed an existing image url?
62
62
  image = {
63
- asset: { _ref: urlToId(source) },
63
+ asset: { _ref: urlToId(source) }
64
64
  };
65
65
  }
66
66
  else if (typeof source === 'string') {
67
67
  // Just an asset id
68
68
  image = {
69
- asset: { _ref: source },
69
+ asset: { _ref: source }
70
70
  };
71
71
  }
72
72
  else if (isRef(source)) {
73
73
  // We just got passed an asset directly
74
74
  image = {
75
- asset: source,
75
+ asset: source
76
76
  };
77
77
  }
78
78
  else if (isAsset(source)) {
79
79
  // If we were passed an image asset document
80
80
  image = {
81
81
  asset: {
82
- _ref: source._id || '',
83
- },
82
+ _ref: source._id || ''
83
+ }
84
84
  };
85
85
  }
86
86
  else if (isAssetStub(source)) {
87
87
  // If we were passed a partial asset (`url`, but no `_id`)
88
88
  image = {
89
89
  asset: {
90
- _ref: urlToId(source.asset.url),
91
- },
90
+ _ref: urlToId(source.asset.url)
91
+ }
92
92
  };
93
93
  }
94
94
  else if (typeof source.asset === 'object') {
@@ -129,7 +129,7 @@ function applyDefaults(image) {
129
129
  left: 0,
130
130
  top: 0,
131
131
  bottom: 0,
132
- right: 0,
132
+ right: 0
133
133
  };
134
134
  }
135
135
  if (!result.hotspot) {
@@ -137,7 +137,7 @@ function applyDefaults(image) {
137
137
  x: 0.5,
138
138
  y: 0.5,
139
139
  height: 1.0,
140
- width: 1.0,
140
+ width: 1.0
141
141
  };
142
142
  }
143
143
  return result;
@@ -184,7 +184,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
184
184
  ['crop', 'crop'],
185
185
  ['saturation', 'sat'],
186
186
  ['auto', 'auto'],
187
- ['dpr', 'dpr'],
187
+ ['dpr', 'dpr']
188
188
  ];
189
189
  function urlForImage(options) {
190
190
  var spec = __assign({}, (options || {}));
@@ -203,7 +203,7 @@ function urlForImage(options) {
203
203
  left: cropLeft,
204
204
  top: cropTop,
205
205
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
206
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
206
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
207
207
  };
208
208
  // Compute hot spot rect in terms of pixel coordinates
209
209
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -214,7 +214,7 @@ function urlForImage(options) {
214
214
  left: hotSpotCenterX - hotSpotHorizontalRadius,
215
215
  top: hotSpotCenterY - hotSpotVerticalRadius,
216
216
  right: hotSpotCenterX + hotSpotHorizontalRadius,
217
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
217
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
218
218
  };
219
219
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
220
220
  // the crop/hotspot.
@@ -296,7 +296,7 @@ function fit(source, spec) {
296
296
  left: Math.round(left),
297
297
  top: Math.round(top_2),
298
298
  width: Math.round(width),
299
- height: Math.round(height),
299
+ height: Math.round(height)
300
300
  };
301
301
  }
302
302
  else {
@@ -318,13 +318,13 @@ function fit(source, spec) {
318
318
  left: Math.max(0, Math.floor(left)),
319
319
  top: Math.max(0, Math.floor(top_3)),
320
320
  width: Math.round(width),
321
- height: Math.round(height),
321
+ height: Math.round(height)
322
322
  };
323
323
  }
324
324
  return {
325
325
  width: imgWidth,
326
326
  height: imgHeight,
327
- rect: cropRect,
327
+ rect: cropRect
328
328
  };
329
329
  }
330
330
 
@@ -382,7 +382,7 @@ function urlBuilder(options) {
382
382
  return new ImageUrlBuilder(null, {
383
383
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
384
384
  projectId: projectId,
385
- dataset: dataset,
385
+ dataset: dataset
386
386
  });
387
387
  }
388
388
  // Or just accept the options as given
@@ -395,7 +395,7 @@ var ImageUrlBuilder = /** @class */ (function () {
395
395
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
396
396
  }
397
397
  ImageUrlBuilder.prototype.withOptions = function (options) {
398
- var baseUrl = options.baseUrl || this.options.baseUrl;
398
+ var baseUrl = options.baseUrl || '';
399
399
  var newOptions = { baseUrl: baseUrl };
400
400
  for (var key in options) {
401
401
  if (options.hasOwnProperty(key)) {
@@ -523,7 +523,7 @@ var ImageUrlBuilder = /** @class */ (function () {
523
523
  ImageUrlBuilder.prototype.url = function () {
524
524
  return urlForImage_1$1.default(this.options);
525
525
  };
526
- // Alias for url()
526
+ // Synonym for url()
527
527
  ImageUrlBuilder.prototype.toString = function () {
528
528
  return this.url();
529
529
  };
@@ -826,13 +826,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
826
826
  });
827
827
 
828
828
  if (_this5.lazyLoadIsEnabled()) {
829
+ var args = [];
830
+
829
831
  var config = _this5.getLazyLoadConfig();
830
832
 
831
- if (config) {
832
- pubadsService.enableLazyLoad(config);
833
- } else {
834
- pubadsService.enableLazyLoad();
833
+ if (config !== null) {
834
+ args.push(config);
835
835
  }
836
+
837
+ pubadsService.enableLazyLoad.call(args);
836
838
  }
837
839
 
838
840
  if (_this5.singleRequestIsEnabled()) {
@@ -268,9 +268,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
268
268
  _this.dragging = false;
269
269
  if (_this.state.pullToRefreshThresholdBreached) {
270
270
  _this.props.refreshFunction && _this.props.refreshFunction();
271
- _this.setState({
272
- pullToRefreshThresholdBreached: false,
273
- });
274
271
  }
275
272
  requestAnimationFrame(function () {
276
273
  // this._infScroll
@@ -377,6 +374,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
377
374
  // update state when new data was sent in
378
375
  this.setState({
379
376
  showLoader: false,
377
+ pullToRefreshThresholdBreached: false,
380
378
  });
381
379
  };
382
380
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
package/dist/cjs/index.js CHANGED
@@ -11,28 +11,28 @@ require('./toConsumableArray-bee80df5.js');
11
11
  require('./_object-pie-68c5bcbc.js');
12
12
  require('./extends-60837c34.js');
13
13
  require('./_object-sap-5e74ba08.js');
14
- require('./inherits-dca612fa.js');
14
+ require('./inherits-227da8e1.js');
15
15
  require('./define-property-f4d12f4e.js');
16
16
  require('./web.dom.iterable-43c3e277.js');
17
17
  require('./typeof-1869832c.js');
18
18
  require('./_is-array-754e012d.js');
19
19
  require('react');
20
- require('./index-f7ee1612.js');
20
+ require('./index-fa3cec70.js');
21
21
  require('prop-types');
22
22
  require('react-bootstrap/Container');
23
23
  require('react-bootstrap/Row');
24
24
  require('react-bootstrap/Col');
25
25
  require('react-bootstrap/Card');
26
- require('./moment-66a6a284.js');
26
+ require('./moment-575fe24c.js');
27
27
  require('next/router');
28
28
  require('./isSymbol-488934a7.js');
29
29
  require('./debounce-32e57002.js');
30
- require('./index.es-ab3f2690.js');
30
+ require('./index.es-9110add6.js');
31
31
  require('react-dom');
32
32
  require('./visibility-sensor-0c45a583.js');
33
- require('./index-b5eb3ff8.js');
33
+ require('./index-39beccb3.js');
34
34
  require('./index-fa0fb52c.js');
35
- require('./main-bc4db521.js');
35
+ require('./main-a4cb15bb.js');
36
36
  require('./entities-310b46ee.js');
37
37
  require('./stringify-7c5aff47.js');
38
38
  require('./slicedToArray-8063ee51.js');
@@ -40,10 +40,10 @@ require('./asyncToGenerator-8e707718.js');
40
40
  require('./_set-species-4458e975.js');
41
41
  var Segment = require('./beam-d22818d3.js');
42
42
  var AdSlot = require('./AdSlot.js');
43
- require('./ADInfeed-ce11d87d.js');
43
+ require('./ADInfeed-cbdb3a85.js');
44
44
  var DeckContent = require('./DeckContent.js');
45
- require('./lodash-fc2922d0.js');
46
- require('./ADlgInfeed-7fc40444.js');
45
+ require('./lodash-7fd85bcf.js');
46
+ require('./ADlgInfeed-abcaf930.js');
47
47
  require('./_arrayMap-3b4a0f75.js');
48
48
  require('./get-5dfcdc33.js');
49
49
  var AD = require('./AD.js');
@@ -52,7 +52,7 @@ var GridContent = require('./GridContent.js');
52
52
  var DeckQueue = require('./DeckQueue.js');
53
53
  require('react-bootstrap/Media');
54
54
  var ThumbnailCard = require('./ThumbnailCard.js');
55
- require('./BlockContent-f942392e.js');
55
+ require('./BlockContent-c2168db0.js');
56
56
  require('./react-social-icons-cd0d9d3b.js');
57
57
  var TaxonomyCard = require('./TaxonomyCard.js');
58
58
  var RolesDeck = require('./RolesDeck.js');
@@ -72,11 +72,11 @@ var IssueDeck = require('./IssueDeck.js');
72
72
  require('react-bootstrap/Badge');
73
73
  var IssueContentDeck = require('./IssueContentDeck.js');
74
74
  require('react-bootstrap/Spinner');
75
- require('./index-5be2866f.js');
75
+ require('./index-3294d3bc.js');
76
76
  require('./js.cookie-a511c430.js');
77
77
  var EventsDeck = require('./EventsDeck.js');
78
78
  var CMEDeck = require('./CMEDeck.js');
79
- var getSerializers = require('./index-77531536.js');
79
+ var getSerializers = require('./index-2cc1225c.js');
80
80
  require('./util-f2c1b65b.js');
81
81
  require('./brightcove-react-player-loader.es-156bd4d6.js');
82
82
  require('react-bootstrap/Pagination');
@@ -109,7 +109,7 @@ require('./index.esm-d1259b34.js');
109
109
  var SocialIcons = require('./SocialIcons.js');
110
110
  require('react-bootstrap/Form');
111
111
  require('react-bootstrap/FormControl');
112
- require('./SocialSearchComponent-5cbde5e0.js');
112
+ require('./SocialSearchComponent-7febe148.js');
113
113
  var NavMagazine = require('./NavMagazine.js');
114
114
  var NavNative = require('./NavNative.js');
115
115
  var Search = require('./Search.js');
@@ -168,7 +168,6 @@ require('mysql');
168
168
  var getTargeting = require('./getTargeting-5a0b8ee4.js');
169
169
  var View = require('./View.js');
170
170
  var urlFor = require('./urlFor.js');
171
- require('react-twitter-embed');
172
171
  var PartnerDetailListing = require('./PartnerDetailListing.js');
173
172
 
174
173
 
@@ -5,7 +5,7 @@ var _toObject = require('./_to-object-329a650b.js');
5
5
  var core_getIteratorMethod = require('./core.get-iterator-method-41e87ec1.js');
6
6
  var _objectSap = require('./_object-sap-5e74ba08.js');
7
7
  var defineProperty = require('./define-property-f4d12f4e.js');
8
- var _typeof = require('./typeof-1869832c.js');
8
+ var _typeof$1 = require('./typeof-1869832c.js');
9
9
 
10
10
  // 19.1.2.9 Object.getPrototypeOf(O)
11
11
 
@@ -75,7 +75,7 @@ exports.__esModule = true;
75
75
 
76
76
 
77
77
 
78
- var _typeof3 = _interopRequireDefault(_typeof._typeof_1);
78
+ var _typeof3 = _interopRequireDefault(_typeof$1._typeof_1);
79
79
 
80
80
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
81
81
 
@@ -102,7 +102,7 @@ var _setProto = {
102
102
  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
103
103
  function (test, buggy, set) {
104
104
  try {
105
- set = _toObject._ctx(Function.call, _typeof._objectGopd.f(Object.prototype, '__proto__').set, 2);
105
+ set = _toObject._ctx(Function.call, _typeof$1._objectGopd.f(Object.prototype, '__proto__').set, 2);
106
106
  set(test, []);
107
107
  buggy = !(test instanceof Array);
108
108
  } catch (e) { buggy = true; }
@@ -156,7 +156,7 @@ var _create2 = _interopRequireDefault(create$1);
156
156
 
157
157
 
158
158
 
159
- var _typeof3 = _interopRequireDefault(_typeof._typeof_1);
159
+ var _typeof3 = _interopRequireDefault(_typeof$1._typeof_1);
160
160
 
161
161
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
162
162
 
@@ -9,7 +9,7 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
9
9
  var undefined$1;
10
10
 
11
11
  /** Used as the semantic version number. */
12
- var VERSION = '4.17.15';
12
+ var VERSION = '4.17.20';
13
13
 
14
14
  /** Used as the size to enable large array optimizations. */
15
15
  var LARGE_ARRAY_SIZE = 200;
@@ -3716,8 +3716,21 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3716
3716
  * @returns {Array} Returns the new sorted array.
3717
3717
  */
3718
3718
  function baseOrderBy(collection, iteratees, orders) {
3719
+ if (iteratees.length) {
3720
+ iteratees = arrayMap(iteratees, function(iteratee) {
3721
+ if (isArray(iteratee)) {
3722
+ return function(value) {
3723
+ return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
3724
+ }
3725
+ }
3726
+ return iteratee;
3727
+ });
3728
+ } else {
3729
+ iteratees = [identity];
3730
+ }
3731
+
3719
3732
  var index = -1;
3720
- iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));
3733
+ iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
3721
3734
 
3722
3735
  var result = baseMap(collection, function(value, key, collection) {
3723
3736
  var criteria = arrayMap(iteratees, function(iteratee) {
@@ -3974,6 +3987,10 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
3974
3987
  var key = toKey(path[index]),
3975
3988
  newValue = value;
3976
3989
 
3990
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
3991
+ return object;
3992
+ }
3993
+
3977
3994
  if (index != lastIndex) {
3978
3995
  var objValue = nested[key];
3979
3996
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
@@ -4126,11 +4143,14 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
4126
4143
  * into `array`.
4127
4144
  */
4128
4145
  function baseSortedIndexBy(array, value, iteratee, retHighest) {
4129
- value = iteratee(value);
4130
-
4131
4146
  var low = 0,
4132
- high = array == null ? 0 : array.length,
4133
- valIsNaN = value !== value,
4147
+ high = array == null ? 0 : array.length;
4148
+ if (high === 0) {
4149
+ return 0;
4150
+ }
4151
+
4152
+ value = iteratee(value);
4153
+ var valIsNaN = value !== value,
4134
4154
  valIsNull = value === null,
4135
4155
  valIsSymbol = isSymbol(value),
4136
4156
  valIsUndefined = value === undefined$1;
@@ -5615,10 +5635,11 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5615
5635
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
5616
5636
  return false;
5617
5637
  }
5618
- // Assume cyclic values are equal.
5619
- var stacked = stack.get(array);
5620
- if (stacked && stack.get(other)) {
5621
- return stacked == other;
5638
+ // Check that cyclic values are equal.
5639
+ var arrStacked = stack.get(array);
5640
+ var othStacked = stack.get(other);
5641
+ if (arrStacked && othStacked) {
5642
+ return arrStacked == other && othStacked == array;
5622
5643
  }
5623
5644
  var index = -1,
5624
5645
  result = true,
@@ -5780,10 +5801,11 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
5780
5801
  return false;
5781
5802
  }
5782
5803
  }
5783
- // Assume cyclic values are equal.
5784
- var stacked = stack.get(object);
5785
- if (stacked && stack.get(other)) {
5786
- return stacked == other;
5804
+ // Check that cyclic values are equal.
5805
+ var objStacked = stack.get(object);
5806
+ var othStacked = stack.get(other);
5807
+ if (objStacked && othStacked) {
5808
+ return objStacked == other && othStacked == object;
5787
5809
  }
5788
5810
  var result = true;
5789
5811
  stack.set(object, other);
@@ -9164,6 +9186,10 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
9164
9186
  * // The `_.property` iteratee shorthand.
9165
9187
  * _.filter(users, 'active');
9166
9188
  * // => objects for ['barney']
9189
+ *
9190
+ * // Combining several predicates using `_.overEvery` or `_.overSome`.
9191
+ * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
9192
+ * // => objects for ['fred', 'barney']
9167
9193
  */
9168
9194
  function filter(collection, predicate) {
9169
9195
  var func = isArray(collection) ? arrayFilter : baseFilter;
@@ -9913,15 +9939,15 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
9913
9939
  * var users = [
9914
9940
  * { 'user': 'fred', 'age': 48 },
9915
9941
  * { 'user': 'barney', 'age': 36 },
9916
- * { 'user': 'fred', 'age': 40 },
9942
+ * { 'user': 'fred', 'age': 30 },
9917
9943
  * { 'user': 'barney', 'age': 34 }
9918
9944
  * ];
9919
9945
  *
9920
9946
  * _.sortBy(users, [function(o) { return o.user; }]);
9921
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
9947
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
9922
9948
  *
9923
9949
  * _.sortBy(users, ['user', 'age']);
9924
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
9950
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
9925
9951
  */
9926
9952
  var sortBy = baseRest(function(collection, iteratees) {
9927
9953
  if (collection == null) {
@@ -14796,11 +14822,11 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
14796
14822
 
14797
14823
  // Use a sourceURL for easier debugging.
14798
14824
  // The sourceURL gets injected into the source that's eval-ed, so be careful
14799
- // with lookup (in case of e.g. prototype pollution), and strip newlines if any.
14800
- // A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
14825
+ // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
14826
+ // and escape the comment, thus injecting code that gets evaled.
14801
14827
  var sourceURL = '//# sourceURL=' +
14802
14828
  (hasOwnProperty.call(options, 'sourceURL')
14803
- ? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
14829
+ ? (options.sourceURL + '').replace(/\s/g, ' ')
14804
14830
  : ('lodash.templateSources[' + (++templateCounter) + ']')
14805
14831
  ) + '\n';
14806
14832
 
@@ -14833,8 +14859,6 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
14833
14859
 
14834
14860
  // If `variable` is not specified wrap a with-statement around the generated
14835
14861
  // code to add the data object to the top of the scope chain.
14836
- // Like with sourceURL, we take care to not check the option's prototype,
14837
- // as this configuration is a code injection vector.
14838
14862
  var variable = hasOwnProperty.call(options, 'variable') && options.variable;
14839
14863
  if (!variable) {
14840
14864
  source = 'with (obj) {\n' + source + '\n}\n';
@@ -15541,6 +15565,9 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15541
15565
  * values against any array or object value, respectively. See `_.isEqual`
15542
15566
  * for a list of supported value comparisons.
15543
15567
  *
15568
+ * **Note:** Multiple values can be checked by combining several matchers
15569
+ * using `_.overSome`
15570
+ *
15544
15571
  * @static
15545
15572
  * @memberOf _
15546
15573
  * @since 3.0.0
@@ -15556,6 +15583,10 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15556
15583
  *
15557
15584
  * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
15558
15585
  * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
15586
+ *
15587
+ * // Checking for several possible values
15588
+ * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
15589
+ * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15559
15590
  */
15560
15591
  function matches(source) {
15561
15592
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
@@ -15570,6 +15601,9 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15570
15601
  * `srcValue` values against any array or object value, respectively. See
15571
15602
  * `_.isEqual` for a list of supported value comparisons.
15572
15603
  *
15604
+ * **Note:** Multiple values can be checked by combining several matchers
15605
+ * using `_.overSome`
15606
+ *
15573
15607
  * @static
15574
15608
  * @memberOf _
15575
15609
  * @since 3.2.0
@@ -15586,6 +15620,10 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15586
15620
  *
15587
15621
  * _.find(objects, _.matchesProperty('a', 4));
15588
15622
  * // => { 'a': 4, 'b': 5, 'c': 6 }
15623
+ *
15624
+ * // Checking for several possible values
15625
+ * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
15626
+ * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
15589
15627
  */
15590
15628
  function matchesProperty(path, srcValue) {
15591
15629
  return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
@@ -15809,6 +15847,10 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15809
15847
  * Creates a function that checks if **all** of the `predicates` return
15810
15848
  * truthy when invoked with the arguments it receives.
15811
15849
  *
15850
+ * Following shorthands are possible for providing predicates.
15851
+ * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15852
+ * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15853
+ *
15812
15854
  * @static
15813
15855
  * @memberOf _
15814
15856
  * @since 4.0.0
@@ -15835,6 +15877,10 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15835
15877
  * Creates a function that checks if **any** of the `predicates` return
15836
15878
  * truthy when invoked with the arguments it receives.
15837
15879
  *
15880
+ * Following shorthands are possible for providing predicates.
15881
+ * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
15882
+ * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
15883
+ *
15838
15884
  * @static
15839
15885
  * @memberOf _
15840
15886
  * @since 4.0.0
@@ -15854,6 +15900,9 @@ var lodash = _commonjsHelpers.createCommonjsModule(function (module, exports) {
15854
15900
  *
15855
15901
  * func(NaN);
15856
15902
  * // => false
15903
+ *
15904
+ * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
15905
+ * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
15857
15906
  */
15858
15907
  var overSome = createOver(arraySome);
15859
15908