Skip to content

Commit b7daebc

Browse files
committed
✨ commit jQuery build
1 parent 8895d73 commit b7daebc

File tree

5 files changed

+99
-47
lines changed

5 files changed

+99
-47
lines changed

dist/jquery.js

Lines changed: 51 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jQuery JavaScript Library v2.2.4
2+
* jQuery JavaScript Library v2.2.5-sec
33
* http://jquery.com/
44
*
55
* Includes Sizzle.js
@@ -9,7 +9,7 @@
99
* Released under the MIT license
1010
* http://jquery.org/license
1111
*
12-
* Date: 2016-05-20T17:23Z
12+
* Date: 2024-02-21T04:25Z
1313
*/
1414

1515
(function( global, factory ) {
@@ -65,7 +65,7 @@ var support = {};
6565

6666

6767
var
68-
version = "2.2.4",
68+
version = "2.2.5-sec",
6969

7070
// Define a local copy of jQuery
7171
jQuery = function( selector, context ) {
@@ -209,8 +209,9 @@ jQuery.extend = jQuery.fn.extend = function() {
209209
src = target[ name ];
210210
copy = options[ name ];
211211

212+
// Prevent Object.prototype pollution
212213
// Prevent never-ending loop
213-
if ( target === copy ) {
214+
if ( name === "__proto__" || target === copy ) {
214215
continue;
215216
}
216217

@@ -4249,12 +4250,41 @@ var rscriptType = ( /^$|\/(?:java|ecma)script/i );
42494250

42504251

42514252

4253+
( function() {
4254+
var fragment = document.createDocumentFragment(),
4255+
div = fragment.appendChild( document.createElement( "div" ) ),
4256+
input = document.createElement( "input" );
4257+
4258+
// Support: Android 4.0-4.3, Safari<=5.1
4259+
// Check state lost if the name is set (#11217)
4260+
// Support: Windows Web Apps (WWA)
4261+
// `name` and `type` must use .setAttribute for WWA (#14901)
4262+
input.setAttribute( "type", "radio" );
4263+
input.setAttribute( "checked", "checked" );
4264+
input.setAttribute( "name", "t" );
4265+
4266+
div.appendChild( input );
4267+
4268+
// Support: Safari<=5.1, Android<4.2
4269+
// Older WebKit doesn't clone checked state correctly in fragments
4270+
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
4271+
4272+
// Support: IE<=11+
4273+
// Make sure textarea (and checkbox) defaultValue is properly cloned
4274+
div.innerHTML = "<textarea>x</textarea>";
4275+
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
4276+
4277+
// Support: IE <=9 only
4278+
// IE <=9 replaces <option> tags with their contents when inserted outside of
4279+
// the select element.
4280+
div.innerHTML = "<option></option>";
4281+
support.option = !!div.lastChild;
4282+
} )();
4283+
4284+
42524285
// We have to close these tags to support XHTML (#13200)
42534286
var wrapMap = {
42544287

4255-
// Support: IE9
4256-
option: [ 1, "<select multiple='multiple'>", "</select>" ],
4257-
42584288
// XHTML parsers do not magically insert elements in the
42594289
// same way that tag soup parsers do. So we cannot shorten
42604290
// this by omitting <tbody> or other required elements.
@@ -4266,12 +4296,14 @@ var wrapMap = {
42664296
_default: [ 0, "", "" ]
42674297
};
42684298

4269-
// Support: IE9
4270-
wrapMap.optgroup = wrapMap.option;
4271-
42724299
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
42734300
wrapMap.th = wrapMap.td;
42744301

4302+
// Support: IE <=9 only
4303+
if ( !support.option ) {
4304+
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
4305+
}
4306+
42754307

42764308
function getAll( context, tag ) {
42774309

@@ -4396,32 +4428,6 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
43964428
}
43974429

43984430

4399-
( function() {
4400-
var fragment = document.createDocumentFragment(),
4401-
div = fragment.appendChild( document.createElement( "div" ) ),
4402-
input = document.createElement( "input" );
4403-
4404-
// Support: Android 4.0-4.3, Safari<=5.1
4405-
// Check state lost if the name is set (#11217)
4406-
// Support: Windows Web Apps (WWA)
4407-
// `name` and `type` must use .setAttribute for WWA (#14901)
4408-
input.setAttribute( "type", "radio" );
4409-
input.setAttribute( "checked", "checked" );
4410-
input.setAttribute( "name", "t" );
4411-
4412-
div.appendChild( input );
4413-
4414-
// Support: Safari<=5.1, Android<4.2
4415-
// Older WebKit doesn't clone checked state correctly in fragments
4416-
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
4417-
4418-
// Support: IE<=11+
4419-
// Make sure textarea (and checkbox) defaultValue is properly cloned
4420-
div.innerHTML = "<textarea>x</textarea>";
4421-
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
4422-
} )();
4423-
4424-
44254431
var
44264432
rkeyEvent = /^key/,
44274433
rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
@@ -5121,13 +5127,10 @@ jQuery.fn.extend( {
51215127
} );
51225128

51235129

5124-
var
5125-
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
5126-
51275130
// Support: IE 10-11, Edge 10240+
51285131
// In IE/Edge using regex groups here causes severe slowdowns.
51295132
// See https://connect.microsoft.com/IE/feedback/details/1736512/
5130-
rnoInnerhtml = /<script|<style|<link/i,
5133+
var rnoInnerhtml = /<script|<style|<link/i,
51315134

51325135
// checked="checked" or checked
51335136
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
@@ -5322,7 +5325,7 @@ function remove( elem, selector, keepData ) {
53225325

53235326
jQuery.extend( {
53245327
htmlPrefilter: function( html ) {
5325-
return html.replace( rxhtmlTag, "<$1></$2>" );
5328+
return html;
53265329
},
53275330

53285331
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
@@ -9194,6 +9197,13 @@ jQuery.ajaxTransport( function( options ) {
91949197

91959198

91969199

9200+
// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
9201+
jQuery.ajaxPrefilter( function( s ) {
9202+
if ( s.crossDomain ) {
9203+
s.contents.script = false;
9204+
}
9205+
} );
9206+
91979207
// Install script dataType
91989208
jQuery.ajaxSetup( {
91999209
accepts: {

dist/jquery.min.js

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

dist/jquery.min.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.

nginx.conf

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
worker_processes 1;
2+
3+
events { worker_connections 64; }
4+
5+
http {
6+
include /opt/homebrew/etc/nginx/mime.types;
7+
8+
server {
9+
set $dir /path/to/jquery/repo/root;
10+
11+
# php-fpm endpoint
12+
set $cgi 127.0.0.1:9000;
13+
14+
access_log /tmp/jquery_access.log;
15+
error_log /tmp/jquery_error.log;
16+
17+
listen 80;
18+
server_name localhost;
19+
20+
root $dir;
21+
22+
# enable POSTs to HTML
23+
error_page 405 = $uri;
24+
location @405 {
25+
root $dir;
26+
}
27+
28+
location ~ \.php {
29+
fastcgi_param QUERY_STRING $query_string;
30+
fastcgi_param REQUEST_METHOD $request_method;
31+
fastcgi_param CONTENT_TYPE $content_type;
32+
fastcgi_param CONTENT_LENGTH $content_length;
33+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
34+
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
35+
fastcgi_param REQUEST_URI $request_uri;
36+
fastcgi_param DOCUMENT_URI $document_uri;
37+
fastcgi_param DOCUMENT_ROOT $document_root;
38+
39+
fastcgi_pass $cgi;
40+
}
41+
}
42+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jquery",
33
"title": "jQuery",
44
"description": "JavaScript library for DOM operations",
5-
"version": "2.2.4",
5+
"version": "2.2.5-sec",
66
"main": "dist/jquery.js",
77
"homepage": "http://jquery.com",
88
"author": {

0 commit comments

Comments
 (0)