repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/isAttached.js | src/core/isAttached.js | import { jQuery } from "../core.js";
import { documentElement } from "../var/documentElement.js";
var isAttached = function( elem ) {
return jQuery.contains( elem.ownerDocument, elem ) ||
elem.getRootNode( composed ) === elem.ownerDocument;
},
composed = { composed: true };
// Support: IE 9 - 11+
// Check atta... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/parseHTML.js | src/core/parseHTML.js | import { jQuery } from "../core.js";
import { rsingleTag } from "./var/rsingleTag.js";
import { buildFragment } from "../manipulation/buildFragment.js";
import { isObviousHtml } from "./isObviousHtml.js";
// Argument "data" should be string of html or a TrustedHTML wrapper of obvious HTML
// context (optional): If spe... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/toType.js | src/core/toType.js | import { class2type } from "../var/class2type.js";
import { toString } from "../var/toString.js";
export function toType( obj ) {
if ( obj == null ) {
return obj + "";
}
return typeof obj === "object" ?
class2type[ toString.call( obj ) ] || "object" :
typeof obj;
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/stripAndCollapse.js | src/core/stripAndCollapse.js | import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
// Strip and collapse whitespace according to HTML spec
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
export function stripAndCollapse( value ) {
var tokens = value.match( rnothtmlwhite ) || [];
return tokens.join( " " );
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/ready.js | src/core/ready.js | import { jQuery } from "../core.js";
import { document } from "../var/document.js";
import "../core/readyException.js";
import "../deferred.js";
// The deferred used on DOM ready
var readyList = jQuery.Deferred();
jQuery.fn.ready = function( fn ) {
readyList
.then( fn )
// Wrap jQuery.readyException in a func... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/readyException.js | src/core/readyException.js | import { jQuery } from "../core.js";
jQuery.readyException = function( error ) {
window.setTimeout( function() {
throw error;
} );
};
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/nodeName.js | src/core/nodeName.js | export function nodeName( elem, name ) {
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/parseXML.js | src/core/parseXML.js | import { jQuery } from "../core.js";
// Cross-browser xml parsing
jQuery.parseXML = function( data ) {
var xml, parserErrorElem;
if ( !data || typeof data !== "string" ) {
return null;
}
// Support: IE 9 - 11+
// IE throws on parseFromString with invalid input.
try {
xml = ( new window.DOMParser() ).parseFr... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/DOMEval.js | src/core/DOMEval.js | import { document } from "../var/document.js";
var preservedScriptAttributes = {
type: true,
src: true,
nonce: true,
noModule: true
};
export function DOMEval( code, node, doc ) {
doc = doc || document;
var i,
script = doc.createElement( "script" );
script.text = code;
for ( i in preservedScriptAttributes... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/isObviousHtml.js | src/core/isObviousHtml.js | export function isObviousHtml( input ) {
return input[ 0 ] === "<" &&
input[ input.length - 1 ] === ">" &&
input.length >= 3;
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/ready-no-deferred.js | src/core/ready-no-deferred.js | import { jQuery } from "../core.js";
import { document } from "../var/document.js";
var readyCallbacks = [],
whenReady = function( fn ) {
readyCallbacks.push( fn );
},
executeReady = function( fn ) {
// Prevent errors from freezing future callback execution (gh-1823)
// Not backwards-compatible as this does ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/isArrayLike.js | src/core/isArrayLike.js | import { toType } from "./toType.js";
import { isWindow } from "../var/isWindow.js";
export function isArrayLike( obj ) {
var length = !!obj && obj.length,
type = toType( obj );
if ( typeof obj === "function" || isWindow( obj ) ) {
return false;
}
return type === "array" || length === 0 ||
typeof length =... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/init.js | src/core/init.js | // Initialize a jQuery object
import { jQuery } from "../core.js";
import { document } from "../var/document.js";
import { rsingleTag } from "./var/rsingleTag.js";
import { isObviousHtml } from "./isObviousHtml.js";
import "../traversing/findFilter.js";
// A central reference to the root jQuery(document)
var rootjQue... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/access.js | src/core/access.js | import { jQuery } from "../core.js";
import { toType } from "../core/toType.js";
// Multifunctional method to get and set values of a collection
// The value/s can optionally be executed if it's a function
export function access( elems, fn, key, value, chainable, emptyGet, raw ) {
var i = 0,
len = elems.length,
b... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/camelCase.js | src/core/camelCase.js | // Matches dashed string for camelizing
var rdashAlpha = /-([a-z])/g;
// Used by camelCase as callback to replace()
function fcamelCase( _all, letter ) {
return letter.toUpperCase();
}
// Convert dashed to camelCase
export function camelCase( string ) {
return string.replace( rdashAlpha, fcamelCase );
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/core/var/rsingleTag.js | src/core/var/rsingleTag.js | // rsingleTag matches a string consisting of a single HTML element with no attributes
// and captures the element's name
export var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/data/Data.js | src/data/Data.js | import { jQuery } from "../core.js";
import { camelCase } from "../core/camelCase.js";
import { rnothtmlwhite } from "../var/rnothtmlwhite.js";
import { acceptData } from "./var/acceptData.js";
export function Data() {
this.expando = jQuery.expando + Data.uid++;
}
Data.uid = 1;
Data.prototype = {
cache: function(... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/data/var/acceptData.js | src/data/var/acceptData.js | /**
* Determines whether an object can have data
*/
export function acceptData( owner ) {
// Accepts only:
// - Node
// - Node.ELEMENT_NODE
// - Node.DOCUMENT_NODE
// - Object
// - Any
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/data/var/dataPriv.js | src/data/var/dataPriv.js | import { Data } from "../Data.js";
export var dataPriv = new Data();
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/src/data/var/dataUser.js | src/data/var/dataUser.js | import { Data } from "../Data.js";
export var dataUser = new Data();
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/jquery.js | test/jquery.js | // Use the right jQuery source on the test page (and iframes)
( function() {
var dynamicImportSource, config, src,
parentUrl = window.location.protocol + "//" + window.location.host,
QUnit = window.QUnit;
function getQUnitConfig() {
var config = Object.create( null );
// Default to unminified jQuery for dir... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/integration/data/gh-1764-fullscreen.js | test/integration/data/gh-1764-fullscreen.js | /* exported bootstrapFrom */
// `mode` may be "iframe" or not specified.
function bootstrapFrom( mainSelector, mode ) {
if ( mode === "iframe" && window.parent === window ) {
jQuery( mainSelector + " .result" )
.attr( "class", "result warn" )
.text( "This test should be run in an iframe. Open ../gh-1764-fulls... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/run-jsdom-tests.js | test/bundler_smoke_tests/run-jsdom-tests.js | import fs from "node:fs/promises";
import jsdom, { JSDOM } from "jsdom";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { runRollupEsmAndCommonJs, runRollupPureEsm } from "./lib/run-rollup.js";
import { runWebpack } from "./lib/run-webpack.js";
import { cleanTmpBundlersDir } from "./lib/... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/rollup-commonjs.config.js | test/bundler_smoke_tests/rollup-commonjs.config.js | import path from "node:path";
import { fileURLToPath } from "node:url";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
export default {
input: `${ dirname }/src-esm-commonjs/main.js`,
output: {
di... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/rollup-pure-esm.config.js | test/bundler_smoke_tests/rollup-pure-esm.config.js | import path from "node:path";
import { fileURLToPath } from "node:url";
import resolve from "@rollup/plugin-node-resolve";
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
export default {
input: `${ dirname }/src-pure-esm/main.js`,
output: {
dir: `${ dirname }/tmp/rollup-pure-esm`,
format: "ii... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/src-pure-esm/main.js | test/bundler_smoke_tests/src-pure-esm/main.js | import { $ } from "jquery";
import { $ as $slim } from "jquery/slim";
import { jQueryFactory } from "jquery/factory";
import { jQueryFactory as jQueryFactorySlim } from "jquery/factory-slim";
console.assert( /^jQuery/.test( $.expando ),
"jQuery.expando should be detected on full jQuery" );
console.assert( /^jQuery/.... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/src-esm-commonjs/main.js | test/bundler_smoke_tests/src-esm-commonjs/main.js | import { $ as $imported } from "jquery";
import { $ as $slimImported } from "jquery/slim";
import { jQueryFactory as jQueryFactoryImported } from "jquery/factory";
import { jQueryFactory as jQueryFactorySlimImported } from "jquery/factory-slim";
import {
$required,
$slimRequired,
jQueryFactoryRequired,
jQueryFact... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/lib/run-webpack.js | test/bundler_smoke_tests/lib/run-webpack.js | import webpack from "webpack";
// See https://webpack.js.org/api/node/#webpack
export async function runWebpack() {
return new Promise( async( resolve, reject ) => {
console.log( "Running Webpack" );
const { default: config } = await import( "../webpack.config.cjs" );
webpack( config, ( err, stats ) => {
i... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/lib/run-rollup.js | test/bundler_smoke_tests/lib/run-rollup.js | import { rollup } from "rollup";
import { loadConfigFile } from "rollup/loadConfigFile";
import path from "node:path";
import { fileURLToPath } from "node:url";
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
const pureEsmConfigPath = path.resolve(
dirname, "..", "rollup-pure-esm.config.js" );
cons... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/bundler_smoke_tests/lib/utils.js | test/bundler_smoke_tests/lib/utils.js | import fs from "node:fs/promises";
import path from "node:path";
import { fileURLToPath } from "node:url";
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
const TMP_BUNDLERS_DIR = path.resolve( dirname, "..", "tmp" );
export async function cleanTmpBundlersDir() {
await fs.rm( TMP_BUNDLERS_DIR, {
... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/effects.js | test/unit/effects.js | ( function() {
// Can't test what ain't there
if ( !includesModule( "effects" ) ) {
return;
}
var fxInterval = 13,
oldRaf = window.requestAnimationFrame,
hideOptions = {
inline: function() {
jQuery.style( this, "display", "none" );
},
cascade: function() {
this.className = "hidden";
}
};
QUnit.modu... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/css.js | test/unit/css.js | if ( includesModule( "css" ) ) {
QUnit.module( "css", { afterEach: moduleTeardown } );
QUnit.test( "css(String|Hash)", function( assert ) {
assert.expect( 42 );
assert.equal( jQuery( "#qunit-fixture" ).css( "display" ), "block", "Check for css property \"display\"" );
var $child, div, div2, child, prctval, check... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/core.js | test/unit/core.js | QUnit.module( "core", {
beforeEach: function() {
this.sandbox = sinon.createSandbox();
},
afterEach: function() {
this.sandbox.restore();
return moduleTeardown.apply( this, arguments );
}
} );
QUnit.test( "Basic requirements", function( assert ) {
assert.expect( 7 );
assert.ok( Array.prototype.push, "Array... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/wrap.js | test/unit/wrap.js | ( function() {
if ( !includesModule( "wrap" ) ) {
return;
}
QUnit.module( "wrap", {
afterEach: moduleTeardown
} );
// See test/unit/manipulation.js for explanation about these 2 functions
function manipulationBareObj( value ) {
return value;
}
function manipulationFunctionReturningObj( value ) {
return function... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/callbacks.js | test/unit/callbacks.js | QUnit.module( "callbacks", {
afterEach: moduleTeardown
} );
( function() {
if ( !includesModule( "callbacks" ) ) {
return;
}
( function() {
var output,
addToOutput = function( string ) {
return function() {
output += string;
};
},
outputA = addToOutput( "A" ),
outputB = addToOutput( "B" ),
outputC = a... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/basic.js | test/unit/basic.js | QUnit.module( "basic", { afterEach: moduleTeardown } );
if ( includesModule( "ajax" ) ) {
QUnit.test( "ajax", function( assert ) {
assert.expect( 4 );
var done = assert.async( 3 );
jQuery.ajax( {
type: "GET",
url: url( "mock.php?action=name&name=foo" ),
success: function( msg ) {
assert.strictEqual( msg,... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/support.js | test/unit/support.js | QUnit.module( "support", { afterEach: moduleTeardown } );
var computedSupport = getComputedSupport( jQuery.support );
function getComputedSupport( support ) {
var prop,
result = {};
for ( prop in support ) {
if ( typeof support[ prop ] === "function" ) {
result[ prop ] = support[ prop ]();
} else {
res... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/ready.js | test/unit/ready.js | QUnit.module( "ready" );
( function() {
var notYetReady, noEarlyExecution,
whenified = jQuery.when && jQuery.when( jQuery.ready ),
promisified = Promise.resolve( jQuery.ready ),
start = new Date(),
order = [],
args = {};
notYetReady = !jQuery.isReady;
QUnit.test( "jQuery.isReady", function( assert ) {
... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/ajax.js | test/unit/ajax.js | QUnit.module( "ajax", {
afterEach: function() {
jQuery( document ).off( "ajaxStart ajaxStop ajaxSend ajaxComplete ajaxError ajaxSuccess" );
moduleTeardown.apply( this, arguments );
}
} );
( function() {
QUnit.test( "Unit Testing Environment", function( assert ) {
assert.expect( 2 );
assert.ok( hasPHP, "Run... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/data.js | test/unit/data.js | QUnit.module( "data", { afterEach: moduleTeardown } );
QUnit.test( "expando", function( assert ) {
assert.expect( 1 );
assert.equal( jQuery.expando !== undefined, true, "jQuery is exposing the expando" );
} );
QUnit.test( "jQuery.data & removeData, expected returns", function( assert ) {
assert.expect( 4 );
var ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/attributes.js | test/unit/attributes.js | QUnit.module( "attributes", {
afterEach: moduleTeardown
} );
function bareObj( value ) {
return value;
}
function functionReturningObj( value ) {
return function() {
return value;
};
}
function arrayFromString( value ) {
return value ? value.split( " " ) : [];
}
/*
======== local reference =======
bareObj ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/offset.js | test/unit/offset.js | ( function() {
if ( !includesModule( "offset" ) ) {
return;
}
var alwaysScrollable,
forceScroll = supportjQuery( "<div></div>" ).css( { width: 2000, height: 2000 } ),
checkSupport = function( assert ) {
// Only run once
checkSupport = false;
// Append forceScroll to the body instead of #qunit-fixture becau... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/manipulation.js | test/unit/manipulation.js | QUnit.module( "manipulation", {
afterEach: moduleTeardown
} );
// Ensure that an extended Array prototype doesn't break jQuery
Array.prototype.arrayProtoFn = function() {
};
function manipulationBareObj( value ) {
return value;
}
function manipulationFunctionReturningObj( value ) {
return function() {
return va... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/deprecated.js | test/unit/deprecated.js | QUnit.module( "deprecated", { afterEach: moduleTeardown } );
if ( includesModule( "deprecated" ) ) {
QUnit.test( "bind/unbind", function( assert ) {
assert.expect( 4 );
var markup = jQuery(
"<div><p><span><b>b</b></span></p></div>"
);
markup
.find( "b" )
.bind( "click", { bindData: 19 }, function( e, trig... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/dimensions.js | test/unit/dimensions.js | ( function() {
if ( !includesModule( "dimensions" ) ) {
return;
}
QUnit.module( "dimensions", { afterEach: moduleTeardown } );
function pass( val ) {
return val;
}
function fn( val ) {
return function() {
return val;
};
}
/*
======== local reference =======
pass and fn can be used to test passing functions... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/exports.js | test/unit/exports.js | QUnit.module( "exports", { afterEach: moduleTeardown } );
QUnit.test( "amdModule", function( assert ) {
assert.expect( 1 );
assert.equal( jQuery, amdDefined, "Make sure defined module matches jQuery" );
} );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/deferred.js | test/unit/deferred.js | QUnit.module( "deferred", {
afterEach: moduleTeardown
} );
( function() {
if ( !includesModule( "deferred" ) ) {
return;
}
jQuery.each( [ "", " - new operator" ], function( _, withNew ) {
function createDeferred( fn ) {
return withNew ? new jQuery.Deferred( fn ) : jQuery.Deferred( fn );
}
QUnit.test( "jQuer... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/selector.js | test/unit/selector.js | QUnit.module( "selector", {
beforeEach: function() {
// Playwright WebKit on macOS doesn't expose `Safari` in its user agent
// string; use the "AppleWebKit" token. This token is also present
// in the Chromium UA, but it is locked to an older version there.
// Modern WebKit (Safari 13+) locks it to `605.1.15... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/animation.js | test/unit/animation.js | ( function() {
// Can't test what ain't there
if ( !includesModule( "effects" ) ) {
return;
}
var fxInterval = 13,
oldRaf = window.requestAnimationFrame,
defaultPrefilter = jQuery.Animation.prefilters[ 0 ],
defaultTweener = jQuery.Animation.tweeners[ "*" ][ 0 ],
startTime = 505877050;
// This module tests jQuer... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/serialize.js | test/unit/serialize.js | QUnit.module( "serialize", { afterEach: moduleTeardown } );
QUnit.test( "jQuery.param()", function( assert ) {
assert.expect( 24 );
var params;
params = { "foo": "bar", "baz": 42, "quux": "All your base are belong to us" };
assert.equal( jQuery.param( params ), "foo=bar&baz=42&quux=All%20your%20base%20are%20belo... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/tween.js | test/unit/tween.js | ( function() {
// Can't test what ain't there
if ( !includesModule( "effects" ) ) {
return;
}
var oldRaf = window.requestAnimationFrame;
QUnit.module( "tween", {
beforeEach: function() {
this.sandbox = sinon.createSandbox();
this.clock = this.sandbox.useFakeTimers( 505877050 );
window.requestAnimationFrame =... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/event.js | test/unit/event.js | QUnit.module( "event", {
beforeEach: function() {
document.body.focus();
},
afterEach: moduleTeardown
} );
QUnit.test( "null or undefined handler", function( assert ) {
assert.expect( 4 );
// Supports Fixes bug trac-7229
try {
jQuery( "#firstp" ).on( "click", null );
assert.ok( true, "Passing a null handl... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/queue.js | test/unit/queue.js | QUnit.module( "queue", { afterEach: moduleTeardown } );
( function() {
if ( !includesModule( "queue" ) ) {
return;
}
QUnit.test( "queue() with other types", function( assert ) {
var done = assert.async( 2 );
assert.expect( 14 );
var $div = jQuery( {} ),
counter = 0;
$div.promise( "foo" ).done( function() {... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/unit/traversing.js | test/unit/traversing.js | QUnit.module( "traversing", { afterEach: moduleTeardown } );
QUnit.test( "find(String)", function( assert ) {
assert.expect( 1 );
assert.equal( jQuery( "#foo" ).find( ".blogTest" ).text(), "Yahoo", "Basic selector" );
} );
QUnit.test( "find(String) under non-elements", function( assert ) {
assert.expect( 2 );
va... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/nomodule.js | test/data/nomodule.js | /* global outerExternalCallback */
outerExternalCallback( "evaluated: nomodule script with src" );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/csp-nonce-external.js | test/data/csp-nonce-external.js | jQuery( function() {
$( "body" ).append( "<script nonce='jquery+hardcoded+nonce' src='csp-nonce.js'></script>" );
} );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/jquery-3.7.1.js | test/data/jquery-3.7.1.js | /*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/
( function( global, factory ) {
"use strict";
if ( typeof module === "object" && typeof module.exp... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | true |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/csp-ajax-script-downloaded.js | test/data/csp-ajax-script-downloaded.js | window.downloadedScriptCalled = true;
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/inner_nomodule.js | test/data/inner_nomodule.js | /* global innerExternalCallback */
innerExternalCallback( "evaluated: inner nomodule script with src" );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/json_obj.js | test/data/json_obj.js | { "data": {"lang": "en", "length": 25} }
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/csp-nonce-globaleval.js | test/data/csp-nonce-globaleval.js | jQuery( function() {
$.globalEval( "startIframeTest()", { nonce: "jquery+hardcoded+nonce" } );
} );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/inner_module.js | test/data/inner_module.js | /* global innerExternalCallback */
innerExternalCallback( "evaluated: inner module with src" );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/testrunner.js | test/data/testrunner.js | ( function() {
"use strict";
// Store the old count so that we only assert on tests that have actually leaked,
// instead of asserting every time a test has leaked sometime in the past
var oldActive = 0,
splice = [].splice,
ajaxSettings = jQuery.ajaxSettings;
/**
* QUnit configuration
*/
// Max time for done() ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/badcall.js | test/data/badcall.js | undefined();
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/badjson.js | test/data/badjson.js | {bad: toTheBone}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/iframeTest.js | test/data/iframeTest.js | window.startIframeTest = function() {
var args = Array.prototype.slice.call( arguments );
// Note: jQuery may be undefined if page did not load it
args.unshift( window.jQuery, window, document );
window.parent.iframeCallback.apply( null, args );
};
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/csp-nonce.js | test/data/csp-nonce.js | jQuery( function() {
var script = document.createElement( "script" );
script.setAttribute( "nonce", "jquery+hardcoded+nonce" );
script.innerHTML = "startIframeTest()";
$( document.head ).append( script );
} );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/testinit.js | test/data/testinit.js | /* eslint no-multi-str: "off" */
"use strict";
var parentUrl = window.location.protocol + "//" + window.location.host,
// baseURL is intentionally set to "data/" instead of "".
// This is not just for convenience (since most files are in data/)
// but also to ensure that urls without prefix fail.
baseURL = parent... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/csp-ajax-script.js | test/data/csp-ajax-script.js | /* global startIframeTest */
var timeoutId, type;
function finalize() {
startIframeTest( type, window.downloadedScriptCalled );
}
timeoutId = setTimeout( function() {
finalize();
}, 1000 );
jQuery
.ajax( {
url: "csp-ajax-script-downloaded.js",
dataType: "script",
method: "POST",
beforeSend: function( _jq... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/module.js | test/data/module.js | /* global outerExternalCallback */
outerExternalCallback( "evaluated: module with src" );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/trusted-types-attributes.js | test/data/trusted-types-attributes.js | window.testMessage = "script run";
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/support/getComputedSupport.js | test/data/support/getComputedSupport.js | function getComputedSupport( support ) {
var prop,
result = {};
for ( prop in support ) {
if ( typeof support[ prop ] === "function" ) {
result[ prop ] = support[ prop ]();
} else {
result[ prop ] = support[ prop ];
}
}
return result;
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/support/csp.js | test/data/support/csp.js | jQuery( function() {
startIframeTest( getComputedSupport( jQuery.support ) );
} );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/manipulation/set-global-scripttest.js | test/data/manipulation/set-global-scripttest.js | window.scriptTest = true;
parent.finishTest();
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/data/core/jquery-iterability-transpiled-es6.js | test/data/core/jquery-iterability-transpiled-es6.js | /* global startIframeTest */
jQuery( function() {
"use strict";
var elem = jQuery( "<div></div><span></span><a></a>" );
var result = "";
var i;
for ( i of elem ) {
result += i.nodeName;
}
startIframeTest( result );
} );
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/lib/ensure_iterability_es6.js | test/node_smoke_tests/module/lib/ensure_iterability_es6.js | import assert from "node:assert/strict";
const { JSDOM } = await import( "jsdom" );
const { ensureJQuery } = await import( "./ensure_jquery.js" );
export const ensureIterability = async( jQueryModuleSpecifier ) => {
const { window } = new JSDOM( "" );
const { jQueryFactory } = await import( jQueryModuleSpecifier )... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/lib/ensure_jquery.js | test/node_smoke_tests/module/lib/ensure_jquery.js | import assert from "node:assert/strict";
// Check if the object we got is the jQuery object by invoking a basic API.
export const ensureJQuery = ( jQuery ) => {
assert( /^jQuery/.test( jQuery.expando ),
"jQuery.expando was not detected, the jQuery bootstrap process has failed" );
};
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/lib/ensure_global_not_created.js | test/node_smoke_tests/module/lib/ensure_global_not_created.js | import assert from "node:assert/strict";
// Ensure the jQuery property on global/window/module "this"/etc. was not
// created in a CommonJS environment.
// `global` is always checked in addition to passed parameters.
export const ensureGlobalNotCreated = ( ...args ) => {
[ ...args, global ].forEach( function( object ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/lib/jquery-module-specifier.js | test/node_smoke_tests/module/lib/jquery-module-specifier.js | import path from "node:path";
import { fileURLToPath } from "node:url";
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
const ROOT_DIR = path.resolve( dirname, "..", "..", "..", ".." );
// import does not work with Windows-style paths
function ensureUnixPath( path ) {
return path.replace( /^[a-z]:... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/regular/window_present_originally.js | test/node_smoke_tests/module/regular/window_present_originally.js | import { JSDOM } from "jsdom";
import { ensureJQuery } from "../lib/ensure_jquery.js";
import { ensureGlobalNotCreated } from "../lib/ensure_global_not_created.js";
import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js";
const jQueryModuleSpecifier = getJQueryModuleSpecifier();
const { window }... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/factory/iterable_with_native_symbol.js | test/node_smoke_tests/module/factory/iterable_with_native_symbol.js | import process from "node:process";
import { ensureIterability } from "../lib/ensure_iterability_es6.js";
import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js";
if ( typeof Symbol === "undefined" ) {
console.log( "Symbols not supported, skipping the test..." );
process.exit();
}
const jQuery... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/factory/document_passed.js | test/node_smoke_tests/module/factory/document_passed.js | import { JSDOM } from "jsdom";
import { ensureJQuery } from "../lib/ensure_jquery.js";
import { ensureGlobalNotCreated } from "../lib/ensure_global_not_created.js";
import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js";
const { window } = new JSDOM( "" );
const jQueryModuleSpecifier = getJQuer... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/module/factory/document_missing.js | test/node_smoke_tests/module/factory/document_missing.js | import assert from "node:assert/strict";
import { ensureGlobalNotCreated } from "../lib/ensure_global_not_created.js";
import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js";
const jQueryModuleSpecifier = getJQueryModuleSpecifier();
const { jQueryFactory } = await import( jQueryModuleSpecifier )... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/dual/regular/import-and-require.js | test/node_smoke_tests/dual/regular/import-and-require.js | import assert from "node:assert/strict";
import { JSDOM } from "jsdom";
const { window } = new JSDOM( "" );
// Set the window global.
globalThis.window = window;
const { $: $imported } = await import( process.argv[ 2 ] );
const { $: $required } = await import( "../lib/jquery-require.cjs" );
assert( $imported === $r... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/test/node_smoke_tests/dual/factory/import-and-require-factory.js | test/node_smoke_tests/dual/factory/import-and-require-factory.js | import assert from "node:assert/strict";
import { JSDOM } from "jsdom";
const { window } = new JSDOM( "" );
const { jQueryFactory: factoryImported } = await import( process.argv[ 2 ] );
const { jQueryFactory: factoryRequired } = await import( "../lib/jquery-require-factory.cjs" );
assert( factoryImported === factory... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/command.js | build/command.js | import yargs from "yargs/yargs";
import { build } from "./tasks/build.js";
import slimExclude from "./tasks/lib/slim-exclude.js";
const argv = yargs( process.argv.slice( 2 ) )
.version( false )
.command( {
command: "[options]",
describe: "Build a jQuery bundle"
} )
.option( "filename", {
alias: "f",
type: ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/npmcopy.js | build/tasks/npmcopy.js | import fs from "node:fs/promises";
import path from "node:path";
const projectDir = path.resolve( "." );
const files = {
"bootstrap/bootstrap.css": "bootstrap/dist/css/bootstrap.css",
"bootstrap/bootstrap.min.css": "bootstrap/dist/css/bootstrap.min.css",
"bootstrap/bootstrap.min.css.map": "bootstrap/dist/css/boots... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/build.js | build/tasks/build.js | /**
* Special build task to handle various jQuery build requirements.
* Compiles JS modules into one bundle, sets the custom AMD name,
* and includes/excludes specified modules
*/
import fs from "node:fs/promises";
import path from "node:path";
import util from "node:util";
import { exec as nodeExec } from "nod... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/node_smoke_tests.js | build/tasks/node_smoke_tests.js | import fs from "node:fs/promises";
import util from "node:util";
import { exec as nodeExec } from "node:child_process";
const exec = util.promisify( nodeExec );
const allowedLibraryTypes = new Set( [ "regular", "factory" ] );
const allowedSourceTypes = new Set( [ "commonjs", "module", "dual" ] );
// Fire up all test... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/qunit-fixture.js | build/tasks/qunit-fixture.js | import fs from "node:fs/promises";
async function generateFixture() {
const fixture = await fs.readFile( "./test/data/qunit-fixture.html", "utf8" );
await fs.writeFile(
"./test/data/qunit-fixture.js",
"// Generated by build/tasks/qunit-fixture.js\n" +
"QUnit.config.fixture = " +
JSON.stringify( fixture.repl... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/dist.js | build/tasks/dist.js | // Process files for distribution.
export default function processForDist( text, filename ) {
if ( !text ) {
throw new Error( "text required for processForDist" );
}
if ( !filename ) {
throw new Error( "filename required for processForDist" );
}
// Ensure files use only \n for line endings, not \r\n
if ( /\... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/promises_aplus_tests.js | build/tasks/promises_aplus_tests.js | import path from "node:path";
import os from "node:os";
import { spawn } from "node:child_process";
const command = path.resolve(
`node_modules/.bin/promises-aplus-tests${ os.platform() === "win32" ? ".cmd" : "" }`
);
const args = [ "--reporter", "dot", "--timeout", "2000" ];
const tests = [
"test/promises_aplus_ada... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/minify.js | build/tasks/minify.js | import fs from "node:fs/promises";
import path from "node:path";
import swc from "@swc/core";
import processForDist from "./dist.js";
import getTimestamp from "./lib/getTimestamp.js";
const rjs = /\.js$/;
export default async function minify( { filename, dir, esm } ) {
const contents = await fs.readFile( path.join( ... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/lib/getTimestamp.js | build/tasks/lib/getTimestamp.js | export default function getTimestamp() {
const now = new Date();
const hours = now.getHours().toString().padStart( 2, "0" );
const minutes = now.getMinutes().toString().padStart( 2, "0" );
const seconds = now.getSeconds().toString().padStart( 2, "0" );
return `${ hours }:${ minutes }:${ seconds }`;
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/lib/rollupFileOverridesPlugin.js | build/tasks/lib/rollupFileOverridesPlugin.js | /**
* A Rollup plugin accepting a file overrides map and changing
* module sources to the overridden ones where provided. Files
* without overrides are loaded from disk.
*
* @param {Map<string, string>} fileOverrides
*/
export default function rollupFileOverrides( fileOverrides ) {
return {
name: "jquery-file-... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/lib/slim-exclude.js | build/tasks/lib/slim-exclude.js | // NOTE: keep it in sync with test/data/testinit.js
export default [
"ajax",
"callbacks",
"deferred",
"effects",
"queue"
];
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/lib/isCleanWorkingDir.js | build/tasks/lib/isCleanWorkingDir.js | import util from "node:util";
import { exec as nodeExec } from "node:child_process";
const exec = util.promisify( nodeExec );
export default async function isCleanWorkingDir() {
const { stdout } = await exec( "git status --untracked-files=no --porcelain" );
return !stdout.trim();
}
| javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/tasks/lib/compareSize.js | build/tasks/lib/compareSize.js | import fs from "node:fs/promises";
import { promisify } from "node:util";
import zlib from "node:zlib";
import { exec as nodeExec } from "node:child_process";
import chalk from "chalk";
import isCleanWorkingDir from "./isCleanWorkingDir.js";
const VERSION = 2;
const lastRunBranch = " last run";
const gzip = promisify... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/release/archive.js | build/release/archive.js | import { readdir, writeFile } from "node:fs/promises";
import { createReadStream, createWriteStream } from "node:fs";
import path from "node:path";
import util from "node:util";
import os from "node:os";
import { exec as nodeExec } from "node:child_process";
import archiver from "archiver";
const exec = util.promisify... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
jquery/jquery | https://github.com/jquery/jquery/blob/546a1eb03c345e1bafb72ae1aeb898abb5b3e51b/build/release/authors.js | build/release/authors.js |
import fs from "node:fs/promises";
import util from "node:util";
import { exec as nodeExec } from "node:child_process";
const exec = util.promisify( nodeExec );
const rnewline = /\r?\n/;
const rdate = /^\[(\d+)\] /;
const ignore = [
/dependabot\[bot\]/
];
function compareAuthors( a, b ) {
const aName = a.replac... | javascript | MIT | 546a1eb03c345e1bafb72ae1aeb898abb5b3e51b | 2026-01-04T14:56:53.033090Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.