Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jquery

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery - npm Package Compare versions

Comparing version 1.12.1 to 1.12.2

sizzle/dist/sizzle.js

2

package.json

@@ -5,3 +5,3 @@ {

"description": "JavaScript library for DOM operations",
"version": "1.12.1",
"version": "1.12.2",
"main": "dist/jquery.js",

@@ -8,0 +8,0 @@ "homepage": "http://jquery.com",

@@ -103,4 +103,7 @@ define( [

// Support: Safari, IE9+
// mis-reports the default selected property of an option
// Accessing the parent's selectedIndex property fixes it
// Accessing the selectedIndex property
// forces the browser to respect setting selected
// on the option
// The getter ensures a default option is selected
// when in an optgroup
if ( !support.optSelected ) {

@@ -120,2 +123,12 @@ jQuery.propHooks.selected = {

return null;
},
set: function( elem ) {
var parent = elem.parentNode;
if ( parent ) {
parent.selectedIndex;
if ( parent.parentNode ) {
parent.parentNode.selectedIndex;
}
}
}

@@ -122,0 +135,0 @@ };

@@ -7,3 +7,4 @@ define( [

var rreturn = /\r/g;
var rreturn = /\r/g,
rspaces = /[\x20\t\r\n\f]+/g;

@@ -88,3 +89,5 @@ jQuery.fn.extend( {

// option.text throws exceptions (#14686, #14858)
jQuery.trim( jQuery.text( elem ) );
// Strip and collapse whitespace
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
}

@@ -143,3 +146,3 @@ },

if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) >= 0 ) {
if ( jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) {

@@ -146,0 +149,0 @@ // Support: IE6

@@ -5,8 +5,5 @@ define( [

"./var/rsingleTag",
"../manipulation/buildFragment",
"../manipulation/buildFragment"
], function( jQuery, document, rsingleTag, buildFragment ) {
// This is the only module that needs core/support
"./support"
], function( jQuery, document, rsingleTag, buildFragment, support ) {
// data: string of html

@@ -24,9 +21,4 @@ // context (optional): If specified, the fragment will be created in this context,

}
context = context || document;
// document.implementation stops scripts or inline event handlers from
// being executed immediately
context = context || ( support.createHTMLDocument ?
document.implementation.createHTMLDocument( "" ) :
document );
var parsed = rsingleTag.exec( data ),

@@ -33,0 +25,0 @@ scripts = !keepScripts && [];

@@ -12,8 +12,5 @@ define( [

support.createHTMLDocument = ( function() {
if ( !document.implementation.createHTMLDocument ) {
return false;
}
var doc = document.implementation.createHTMLDocument( "" );
doc.body.innerHTML = "<form></form><form></form>";
return doc.body.childNodes.length === 2;
var body = document.implementation.createHTMLDocument( "" ).body;
body.innerHTML = "<form></form><form></form>";
return body.childNodes.length === 2;
} )();

@@ -20,0 +17,0 @@

@@ -9,3 +9,3 @@ define( function() {

if ( !view.opener ) {
if ( !view || !view.opener ) {
view = window;

@@ -12,0 +12,0 @@ }

@@ -15,4 +15,31 @@ define( [

register: function( owner, initial ) {
var value = initial || {};
// If it is a node unlikely to be stringify-ed or looped over
// use plain assignment
if ( owner.nodeType ) {
owner[ this.expando ] = value;
// Otherwise secure it in a non-enumerable, non-writable property
// configurability must be true to allow the property to be
// deleted with the delete operator
} else {
Object.defineProperty( owner, this.expando, {
value: value,
writable: true,
configurable: true
} );
}
return owner[ this.expando ];
},
cache: function( owner ) {
// We can accept data for non-element nodes in modern browsers,
// but we should not, see #8335.
// Always return an empty object.
if ( !acceptData( owner ) ) {
return {};
}
// Check if the owner object already has a cache

@@ -54,5 +81,4 @@ var value = owner[ this.expando ];

// Handle: [ owner, key, value ] args
// Always use camelCase key (gh-2257)
if ( typeof data === "string" ) {
cache[ jQuery.camelCase( data ) ] = value;
cache[ data ] = value;

@@ -64,3 +90,3 @@ // Handle: [ owner, { properties } ] args

for ( prop in data ) {
cache[ jQuery.camelCase( prop ) ] = data[ prop ];
cache[ prop ] = data[ prop ];
}

@@ -73,7 +99,6 @@ }

this.cache( owner ) :
// Always use camelCase key (gh-2257)
owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ];
owner[ this.expando ] && owner[ this.expando ][ key ];
},
access: function( owner, key, value ) {
var stored;

@@ -94,3 +119,6 @@ // In cases where either:

return this.get( owner, key );
stored = this.get( owner, key );
return stored !== undefined ?
stored : this.get( owner, jQuery.camelCase( key ) );
}

@@ -111,3 +139,3 @@

remove: function( owner, key ) {
var i,
var i, name, camel,
cache = owner[ this.expando ];

@@ -119,24 +147,37 @@

if ( key !== undefined ) {
if ( key === undefined ) {
this.register( owner );
} else {
// Support array or space separated string of keys
if ( jQuery.isArray( key ) ) {
// If key is an array of keys...
// We always set camelCase keys, so remove that.
key = key.map( jQuery.camelCase );
// If "name" is an array of keys...
// When data is initially created, via ("key", "val") signature,
// keys will be converted to camelCase.
// Since there is no way to tell _how_ a key was added, remove
// both plain key and camelCase key. #12786
// This will only penalize the array argument path.
name = key.concat( key.map( jQuery.camelCase ) );
} else {
key = jQuery.camelCase( key );
camel = jQuery.camelCase( key );
// If a key with the spaces exists, use it.
// Otherwise, create an array by matching non-whitespace
key = key in cache ?
[ key ] :
( key.match( rnotwhite ) || [] );
// Try the string as a key before any manipulation
if ( key in cache ) {
name = [ key, camel ];
} else {
// If a key with the spaces exists, use it.
// Otherwise, create an array by matching non-whitespace
name = camel;
name = name in cache ?
[ name ] : ( name.match( rnotwhite ) || [] );
}
}
i = key.length;
i = name.length;
while ( i-- ) {
delete cache[ key[ i ] ];
delete cache[ name[ i ] ];
}

@@ -143,0 +184,0 @@ }

@@ -124,3 +124,3 @@ define( [

// Call a native DOM method on the target with the same name as the event.
// Call a native DOM method on the target with the same name name as the event.
// Don't do default actions on window, that's where global variables be (#6170)

@@ -168,3 +168,3 @@ if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {

//
// For the compat branch though, guard for "click" and "submit"
// For the 1.x branch though, guard for "click" and "submit"
// events is still used, but was moved to jQuery.event.stopPropagation function

@@ -171,0 +171,0 @@ // because `originalEvent` should point to the original event for the constancy

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc