Skip to content

Commit d2e7e61

Browse files
committed
Update autogenerated files for 1.13.7
1 parent b1d4f23 commit d2e7e61

13 files changed

+47
-37
lines changed

docs/modules/_setup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ <h1>_setup.js</h1>
850850

851851
</div>
852852

853-
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">var</span> <span class="hljs-variable constant_">VERSION</span> = <span class="hljs-string">&#x27;1.13.6&#x27;</span>;</pre></div></div>
853+
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">var</span> <span class="hljs-variable constant_">VERSION</span> = <span class="hljs-string">&#x27;1.13.7&#x27;</span>;</pre></div></div>
854854

855855
</li>
856856

docs/modules/_stringTagBug.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -863,12 +863,15 @@ <h1>_stringTagBug.js</h1>
863863
</div>
864864
<p>In IE 10 - Edge 13, <code>DataView</code> has string tag <code>&#39;[object Object]&#39;</code>.
865865
In IE 11, the most common among them, this problem also applies to
866-
<code>Map</code>, <code>WeakMap</code> and <code>Set</code>.</p>
866+
<code>Map</code>, <code>WeakMap</code> and <code>Set</code>.
867+
Also, there are cases where an application can override the native
868+
<code>DataView</code> object, in cases like that we can’t use the constructor
869+
safely and should just rely on alternate <code>DataView</code> checks</p>
867870

868871
</div>
869872

870-
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">var</span> hasStringTagBug = (
871-
supportsDataView &amp;&amp; <span class="hljs-title function_">hasObjectTag</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">DataView</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">ArrayBuffer</span>(<span class="hljs-number">8</span>)))
873+
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">export</span> <span class="hljs-keyword">var</span> hasDataViewBug = (
874+
supportsDataView &amp;&amp; (!<span class="hljs-regexp">/\[native code\]/</span>.<span class="hljs-title function_">test</span>(<span class="hljs-title class_">String</span>(<span class="hljs-title class_">DataView</span>)) || <span class="hljs-title function_">hasObjectTag</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">DataView</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">ArrayBuffer</span>(<span class="hljs-number">8</span>))))
872875
),
873876
isIE11 = (<span class="hljs-keyword">typeof</span> <span class="hljs-title class_">Map</span> !== <span class="hljs-string">&#x27;undefined&#x27;</span> &amp;&amp; <span class="hljs-title function_">hasObjectTag</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">Map</span>));</pre></div></div>
874877

docs/modules/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,9 +865,9 @@ <h1 id="named-exports">Named Exports</h1>
865865
<div class="pilwrap ">
866866
<a class="pilcrow" href="#section-3">&#182;</a>
867867
</div>
868-
<pre><code><span class="hljs-title class_">Underscore</span>.<span class="hljs-property">js</span> <span class="hljs-number">1.13</span><span class="hljs-number">.6</span>
868+
<pre><code><span class="hljs-title class_">Underscore</span>.<span class="hljs-property">js</span> <span class="hljs-number">1.13</span><span class="hljs-number">.7</span>
869869
<span class="hljs-attr">https</span>:<span class="hljs-comment">//underscorejs.org</span>
870-
(c) <span class="hljs-number">2009</span>-<span class="hljs-number">2022</span> <span class="hljs-title class_">Jeremy</span> <span class="hljs-title class_">Ashkenas</span>, <span class="hljs-title class_">Julian</span> <span class="hljs-title class_">Gonggrijp</span>, and <span class="hljs-title class_">DocumentCloud</span> and <span class="hljs-title class_">Investigative</span> <span class="hljs-title class_">Reporters</span> &amp; <span class="hljs-title class_">Editors</span>
870+
(c) <span class="hljs-number">2009</span>-<span class="hljs-number">2024</span> <span class="hljs-title class_">Jeremy</span> <span class="hljs-title class_">Ashkenas</span>, <span class="hljs-title class_">Julian</span> <span class="hljs-title class_">Gonggrijp</span>, and <span class="hljs-title class_">DocumentCloud</span> and <span class="hljs-title class_">Investigative</span> <span class="hljs-title class_">Reporters</span> &amp; <span class="hljs-title class_">Editors</span>
871871
<span class="hljs-title class_">Underscore</span> may be freely distributed under the <span class="hljs-variable constant_">MIT</span> license.
872872
</code></pre>
873873

docs/modules/isDataView.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ <h1>isDataView.js</h1>
852852
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">import</span> tagTester <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_tagTester.js&#x27;</span>;
853853
<span class="hljs-keyword">import</span> isFunction <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isFunction.js&#x27;</span>;
854854
<span class="hljs-keyword">import</span> isArrayBuffer <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isArrayBuffer.js&#x27;</span>;
855-
<span class="hljs-keyword">import</span> { hasStringTagBug } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_stringTagBug.js&#x27;</span>;
855+
<span class="hljs-keyword">import</span> { hasDataViewBug } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_stringTagBug.js&#x27;</span>;
856856

857857
<span class="hljs-keyword">var</span> isDataView = <span class="hljs-title function_">tagTester</span>(<span class="hljs-string">&#x27;DataView&#x27;</span>);</pre></div></div>
858858

@@ -866,15 +866,17 @@ <h1>isDataView.js</h1>
866866
<a class="pilcrow" href="#section-2">&#182;</a>
867867
</div>
868868
<p>In IE 10 - Edge 13, we need a different heuristic
869-
to determine whether an object is a <code>DataView</code>.</p>
869+
to determine whether an object is a <code>DataView</code>.
870+
Also, in cases where the native <code>DataView</code> is
871+
overridden we can’t rely on the tag itself.</p>
870872

871873
</div>
872874

873-
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">function</span> <span class="hljs-title function_">ie10IsDataView</span>(<span class="hljs-params">obj</span>) {
875+
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">function</span> <span class="hljs-title function_">alternateIsDataView</span>(<span class="hljs-params">obj</span>) {
874876
<span class="hljs-keyword">return</span> obj != <span class="hljs-literal">null</span> &amp;&amp; <span class="hljs-title function_">isFunction</span>(obj.<span class="hljs-property">getInt8</span>) &amp;&amp; <span class="hljs-title function_">isArrayBuffer</span>(obj.<span class="hljs-property">buffer</span>);
875877
}
876878

877-
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> (hasStringTagBug ? ie10IsDataView : isDataView);</pre></div></div>
879+
<span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> (hasDataViewBug ? alternateIsDataView : isDataView);</pre></div></div>
878880

879881
</li>
880882

docs/modules/isEqual.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ <h1>isEqual.js</h1>
854854
<span class="hljs-keyword">import</span> getByteLength <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_getByteLength.js&#x27;</span>;
855855
<span class="hljs-keyword">import</span> isTypedArray <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isTypedArray.js&#x27;</span>;
856856
<span class="hljs-keyword">import</span> isFunction <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isFunction.js&#x27;</span>;
857-
<span class="hljs-keyword">import</span> { hasStringTagBug } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_stringTagBug.js&#x27;</span>;
857+
<span class="hljs-keyword">import</span> { hasDataViewBug } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_stringTagBug.js&#x27;</span>;
858858
<span class="hljs-keyword">import</span> isDataView <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./isDataView.js&#x27;</span>;
859859
<span class="hljs-keyword">import</span> keys <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./keys.js&#x27;</span>;
860860
<span class="hljs-keyword">import</span> has <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;./_has.js&#x27;</span>;
@@ -1014,7 +1014,7 @@ <h1>isEqual.js</h1>
10141014

10151015
</div>
10161016

1017-
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (hasStringTagBug &amp;&amp; className == <span class="hljs-string">&#x27;[object Object]&#x27;</span> &amp;&amp; <span class="hljs-title function_">isDataView</span>(a)) {
1017+
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (hasDataViewBug &amp;&amp; className == <span class="hljs-string">&#x27;[object Object]&#x27;</span> &amp;&amp; <span class="hljs-title function_">isDataView</span>(a)) {
10181018
<span class="hljs-keyword">if</span> (!<span class="hljs-title function_">isDataView</span>(b)) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;
10191019
className = tagDataView;
10201020
}

docs/underscore-esm.html

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ <h1>underscore-esm.js</h1>
2727
<div class="pilwrap ">
2828
<a class="pilcrow" href="#section-1">&#182;</a>
2929
</div>
30-
<pre><code><span class="hljs-title class_">Underscore</span>.<span class="hljs-property">js</span> <span class="hljs-number">1.13</span><span class="hljs-number">.6</span>
30+
<pre><code><span class="hljs-title class_">Underscore</span>.<span class="hljs-property">js</span> <span class="hljs-number">1.13</span><span class="hljs-number">.7</span>
3131
<span class="hljs-attr">https</span>:<span class="hljs-comment">//underscorejs.org</span>
32-
(c) <span class="hljs-number">2009</span>-<span class="hljs-number">2022</span> <span class="hljs-title class_">Jeremy</span> <span class="hljs-title class_">Ashkenas</span>, <span class="hljs-title class_">Julian</span> <span class="hljs-title class_">Gonggrijp</span>, and <span class="hljs-title class_">DocumentCloud</span> and <span class="hljs-title class_">Investigative</span> <span class="hljs-title class_">Reporters</span> &amp; <span class="hljs-title class_">Editors</span>
32+
(c) <span class="hljs-number">2009</span>-<span class="hljs-number">2024</span> <span class="hljs-title class_">Jeremy</span> <span class="hljs-title class_">Ashkenas</span>, <span class="hljs-title class_">Julian</span> <span class="hljs-title class_">Gonggrijp</span>, and <span class="hljs-title class_">DocumentCloud</span> and <span class="hljs-title class_">Investigative</span> <span class="hljs-title class_">Reporters</span> &amp; <span class="hljs-title class_">Editors</span>
3333
<span class="hljs-title class_">Underscore</span> may be freely distributed under the <span class="hljs-variable constant_">MIT</span> license.
3434
</code></pre>
3535

@@ -48,7 +48,7 @@ <h1>underscore-esm.js</h1>
4848

4949
</div>
5050

51-
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">var</span> <span class="hljs-variable constant_">VERSION</span> = <span class="hljs-string">&#x27;1.13.6&#x27;</span>;</pre></div></div>
51+
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">var</span> <span class="hljs-variable constant_">VERSION</span> = <span class="hljs-string">&#x27;1.13.7&#x27;</span>;</pre></div></div>
5252

5353
</li>
5454

@@ -385,12 +385,15 @@ <h1>underscore-esm.js</h1>
385385
</div>
386386
<p>In IE 10 - Edge 13, <code>DataView</code> has string tag <code>&#39;[object Object]&#39;</code>.
387387
In IE 11, the most common among them, this problem also applies to
388-
<code>Map</code>, <code>WeakMap</code> and <code>Set</code>.</p>
388+
<code>Map</code>, <code>WeakMap</code> and <code>Set</code>.
389+
Also, there are cases where an application can override the native
390+
<code>DataView</code> object, in cases like that we can’t use the constructor
391+
safely and should just rely on alternate <code>DataView</code> checks</p>
389392

390393
</div>
391394

392-
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">var</span> hasStringTagBug = (
393-
supportsDataView &amp;&amp; <span class="hljs-title function_">hasObjectTag</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">DataView</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">ArrayBuffer</span>(<span class="hljs-number">8</span>)))
395+
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">var</span> hasDataViewBug = (
396+
supportsDataView &amp;&amp; (!<span class="hljs-regexp">/\[native code\]/</span>.<span class="hljs-title function_">test</span>(<span class="hljs-title class_">String</span>(<span class="hljs-title class_">DataView</span>)) || <span class="hljs-title function_">hasObjectTag</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">DataView</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">ArrayBuffer</span>(<span class="hljs-number">8</span>))))
394397
),
395398
isIE11 = (<span class="hljs-keyword">typeof</span> <span class="hljs-title class_">Map</span> !== <span class="hljs-string">&#x27;undefined&#x27;</span> &amp;&amp; <span class="hljs-title function_">hasObjectTag</span>(<span class="hljs-keyword">new</span> <span class="hljs-title class_">Map</span>));
396399

@@ -406,15 +409,17 @@ <h1>underscore-esm.js</h1>
406409
<a class="pilcrow" href="#section-20">&#182;</a>
407410
</div>
408411
<p>In IE 10 - Edge 13, we need a different heuristic
409-
to determine whether an object is a <code>DataView</code>.</p>
412+
to determine whether an object is a <code>DataView</code>.
413+
Also, in cases where the native <code>DataView</code> is
414+
overridden we can’t rely on the tag itself.</p>
410415

411416
</div>
412417

413-
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">function</span> <span class="hljs-title function_">ie10IsDataView</span>(<span class="hljs-params">obj</span>) {
418+
<div class="content"><div class='highlight'><pre><span class="hljs-keyword">function</span> <span class="hljs-title function_">alternateIsDataView</span>(<span class="hljs-params">obj</span>) {
414419
<span class="hljs-keyword">return</span> obj != <span class="hljs-literal">null</span> &amp;&amp; <span class="hljs-title function_">isFunction$1</span>(obj.<span class="hljs-property">getInt8</span>) &amp;&amp; <span class="hljs-title function_">isArrayBuffer</span>(obj.<span class="hljs-property">buffer</span>);
415420
}
416421

417-
<span class="hljs-keyword">var</span> isDataView$<span class="hljs-number">1</span> = (hasStringTagBug ? ie10IsDataView : isDataView);</pre></div></div>
422+
<span class="hljs-keyword">var</span> isDataView$<span class="hljs-number">1</span> = (hasDataViewBug ? alternateIsDataView : isDataView);</pre></div></div>
418423

419424
</li>
420425

@@ -1057,7 +1062,7 @@ <h1>underscore-esm.js</h1>
10571062

10581063
</div>
10591064

1060-
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (hasStringTagBug &amp;&amp; className == <span class="hljs-string">&#x27;[object Object]&#x27;</span> &amp;&amp; <span class="hljs-title function_">isDataView$1</span>(a)) {
1065+
<div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> (hasDataViewBug &amp;&amp; className == <span class="hljs-string">&#x27;[object Object]&#x27;</span> &amp;&amp; <span class="hljs-title function_">isDataView$1</span>(a)) {
10611066
<span class="hljs-keyword">if</span> (!<span class="hljs-title function_">isDataView$1</span>(b)) <span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;
10621067
className = tagDataView;
10631068
}

underscore-esm-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

underscore-esm-min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

underscore-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

underscore-min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)