Comparing version 1.4.1 to 2.0.0
/*! | ||
* modernizr v3.9.1 | ||
* modernizr v3.10.0 | ||
* Build https://modernizr.com/download?-cors-input-smil-addtest-printshiv-setclasses-testprop-dontmin-cssclassprefix:prefixed- | ||
@@ -26,3 +26,3 @@ * | ||
;(function(window, document, undefined){ | ||
;(function(scriptGlobalObject, window, document, undefined){ | ||
@@ -40,3 +40,3 @@ var tests = []; | ||
// The current version, dummy | ||
_version: '3.9.1', | ||
_version: '3.10.0', | ||
@@ -361,7 +361,7 @@ // Any settings that don't work as separate modules | ||
* @function addTest | ||
* @param {string|Object} feature - The string name of the feature detect, or an | ||
* @param {string|object} feature - The string name of the feature detect, or an | ||
* object of feature detect names and test | ||
* @param {Function|boolean} test - Function returning true if feature is supported, | ||
* false if not. Otherwise a boolean representing the results of a feature detection | ||
* @returns {Object} the Modernizr object to allow chaining | ||
* @returns {object} the Modernizr object to allow chaining | ||
* @example | ||
@@ -1239,3 +1239,3 @@ * | ||
* @function nativeTestProps | ||
* @param {array} props - An array of property names | ||
* @param {Array} props - An array of property names | ||
* @param {string} value - A string representing the value we want to check via @supports | ||
@@ -1515,3 +1515,3 @@ * @returns {boolean|undefined} A boolean when @supports exists, undefined otherwise | ||
* @function toStringFn | ||
* @returns {function} An abstracted toString function | ||
* @returns {Function} An abstracted toString function | ||
*/ | ||
@@ -1555,3 +1555,3 @@ var toStringFn = ({}).toString; | ||
// Leak Modernizr namespace | ||
window.Modernizr = Modernizr; | ||
scriptGlobalObject.Modernizr = Modernizr; | ||
@@ -1561,2 +1561,2 @@ | ||
})(window, document); | ||
})(window, window, document); |
/*! | ||
* modernizr v3.9.1 | ||
* modernizr v3.10.0 | ||
* Build https://modernizr.com/download?-cssgrid_cssgridlegacy-siblinggeneral-svg-addtest-printshiv-setclasses-testprop-dontmin | ||
@@ -26,3 +26,3 @@ * | ||
;(function(window, document, undefined){ | ||
;(function(scriptGlobalObject, window, document, undefined){ | ||
@@ -40,3 +40,3 @@ var tests = []; | ||
// The current version, dummy | ||
_version: '3.9.1', | ||
_version: '3.10.0', | ||
@@ -361,7 +361,7 @@ // Any settings that don't work as separate modules | ||
* @function addTest | ||
* @param {string|Object} feature - The string name of the feature detect, or an | ||
* @param {string|object} feature - The string name of the feature detect, or an | ||
* object of feature detect names and test | ||
* @param {Function|boolean} test - Function returning true if feature is supported, | ||
* false if not. Otherwise a boolean representing the results of a feature detection | ||
* @returns {Object} the Modernizr object to allow chaining | ||
* @returns {object} the Modernizr object to allow chaining | ||
* @example | ||
@@ -1239,3 +1239,3 @@ * | ||
* @function nativeTestProps | ||
* @param {array} props - An array of property names | ||
* @param {Array} props - An array of property names | ||
* @param {string} value - A string representing the value we want to check via @supports | ||
@@ -1429,7 +1429,7 @@ * @returns {boolean|undefined} A boolean when @supports exists, undefined otherwise | ||
* elem.style.webkitBorderRadius | ||
* | ||
* WebKit ghosts their properties in lowercase but Opera & Moz do not. | ||
* Microsoft uses a lowercase `ms` instead of the correct `Ms` in IE8+ | ||
* erik.eae.net/archives/2008/03/10/21.48.10/ | ||
* | ||
* More here: github.com/Modernizr/Modernizr/issues/issue/21 | ||
@@ -1474,3 +1474,3 @@ * | ||
* @param {Function} fn - a function you want to change `this` reference to | ||
* @param {Object} that - the `this` you want to call the function with | ||
* @param {object} that - the `this` you want to call the function with | ||
* @returns {Function} The wrapped version of the supplied function | ||
@@ -1493,5 +1493,5 @@ */ | ||
* @param {Array<string>} props - An array of properties to test for | ||
* @param {Object} obj - An object or Element you want to use to test the parameters again | ||
* @param {boolean|Object} elem - An Element to bind the property lookup again. Use `false` to prevent the check | ||
* @returns {false|*} returns false if the prop is unsupported, otherwise the value that is supported | ||
* @param {object} obj - An object or Element you want to use to test the parameters again | ||
* @param {boolean|object} elem - An Element to bind the property lookup again. Use `false` to prevent the check | ||
* @returns {boolean|*} returns `false` if the prop is unsupported, otherwise the value that is supported | ||
*/ | ||
@@ -1535,7 +1535,7 @@ function testDOMProps(props, obj, elem) { | ||
* @param {string} prop - A string of the property to test for | ||
* @param {string|Object} [prefixed] - An object to check the prefixed properties on. Use a string to skip | ||
* @param {string|object} [prefixed] - An object to check the prefixed properties on. Use a string to skip | ||
* @param {HTMLElement|SVGElement} [elem] - An element used to test the property and value against | ||
* @param {string} [value] - A string of a css value | ||
* @param {boolean} [skipValueTest] - An boolean representing if you want to test if value sticks when set | ||
* @returns {false|string} returns the string version of the property, or false if it is unsupported | ||
* @returns {string|boolean} returns the string version of the property, or `false` if it is unsupported | ||
*/ | ||
@@ -1579,3 +1579,3 @@ function testPropsAll(prop, prefixed, elem, value, skipValueTest) { | ||
* @param {boolean} [skipValueTest=false] - Whether to skip testing that the value is supported when using non-native detection | ||
* @returns {false|string} returns the string version of the property, or false if it is unsupported | ||
* @returns {string|boolean} returns the string version of the property, or `false` if it is unsupported | ||
* @example | ||
@@ -1643,3 +1643,3 @@ * | ||
* @param {string} rule - String representing a css rule | ||
* @param {function} callback - A function that is used to test the injected element | ||
* @param {Function} callback - A function that is used to test the injected element | ||
* @param {number} [nodes] - An integer representing the number of additional nodes you want injected | ||
@@ -1751,3 +1751,3 @@ * @param {string[]} [testnames] - An array of strings that are used as ids for the additional nodes | ||
// Leak Modernizr namespace | ||
window.Modernizr = Modernizr; | ||
scriptGlobalObject.Modernizr = Modernizr; | ||
@@ -1757,2 +1757,2 @@ | ||
})(window, document); | ||
})(window, window, document); |
{ | ||
"version": "1.4.0", | ||
"version": "2.0.0", | ||
"modernizr": "^3", | ||
@@ -209,4 +209,10 @@ "options": { | ||
"test/es6/promises", | ||
"test/es6/rest-parameters", | ||
"test/es6/spread-array", | ||
"test/es6/string-template", | ||
"test/es6/string", | ||
"test/es6/symbol", | ||
"test/es7/array", | ||
"test/es7/rest-destructuring", | ||
"test/es7/spread-object", | ||
"test/event/deviceorientation-motion", | ||
@@ -213,0 +219,0 @@ "test/event/oninput", |
{ | ||
"name": "customizr", | ||
"description": "Build out a lean, mean Modernizr machine.", | ||
"version": "1.4.1", | ||
"version": "2.0.0", | ||
"main": "src", | ||
@@ -13,12 +13,21 @@ "bin": { | ||
"repository": "https://github.com/Modernizr/customizr.git", | ||
"author": "Richard Herrera", | ||
"author": { | ||
"name": "Modernizr", | ||
"url": "https://modernizr.com/" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Richard Herrera", | ||
"url": "https://twitter.com/doctyper" | ||
} | ||
], | ||
"dependencies": { | ||
"colors": "^1.4.0", | ||
"cross-spawn": "^7.0.1", | ||
"cross-spawn": "^7.0.2", | ||
"fast-deep-equal": "^3.1.1", | ||
"glob": "^7.1.6", | ||
"lodash": "^4.17.15", | ||
"mkdirp": "^1.0.3", | ||
"mkdirp": "^1.0.4", | ||
"modernizr": "^3", | ||
"nopt": "^4.0.1", | ||
"nopt": "^4.0.3", | ||
"optimist": "^0.6.1", | ||
@@ -29,6 +38,9 @@ "promised-io": "^0.3.5" | ||
"chai": "^4.2.0", | ||
"fs-extra": "^8.1.0", | ||
"mocha": "^7.0.1", | ||
"fs-extra": "^9.0.0", | ||
"mocha": "^7.1.1", | ||
"nexpect": "^0.6.0" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"keywords": [ | ||
@@ -35,0 +47,0 @@ "modernizr", |
@@ -258,3 +258,3 @@ # customizr | ||
## License | ||
Copyright (c) 2013 Richard Herrera | ||
Copyright (c) 2020 The Modernizr team | ||
Licensed under the MIT license. |
@@ -253,5 +253,16 @@ /* global define */ | ||
"promises": M.promises, | ||
"rest-parameters": M.restparameters, | ||
"spread-array": M.spreadarray, | ||
"string-template": M.stringtemplate, | ||
"string": M.es6string, | ||
"symbol": M.es6symbol | ||
}, | ||
"es7": { | ||
"array": M.es7array, | ||
"rest-destructuring": [ | ||
M["restdestructuringarray"], | ||
M["restdestructuringobject"] | ||
], | ||
"spread-object": M.spreadobject | ||
}, | ||
"event": { | ||
@@ -258,0 +269,0 @@ "deviceorientation-motion": [ |
@@ -251,5 +251,16 @@ var Modernizr = window.Modernizr; | ||
"promises": Modernizr.promises, | ||
"rest-parameters": Modernizr.restparameters, | ||
"spread-array": Modernizr.spreadarray, | ||
"string-template": Modernizr.stringtemplate, | ||
"string": Modernizr.es6string, | ||
"symbol": Modernizr.es6symbol | ||
}, | ||
"es7": { | ||
"array": Modernizr.es7array, | ||
"rest-destructuring": [ | ||
Modernizr["restdestructuringarray"], | ||
Modernizr["restdestructuringobject"] | ||
], | ||
"spread-object": Modernizr.spreadobject | ||
}, | ||
"event": { | ||
@@ -256,0 +267,0 @@ "deviceorientation-motion": [ |
@@ -14,3 +14,3 @@ /*global describe, before, it, after*/ | ||
var tests = "Proxy, adownload, ambientlight, apng, appearance, applicationcache, arrow, atobbtoa, audio, audioautoplay, audioloop, audiopreload, backdropfilter, backgroundblendmode, backgroundcliptext, backgroundsize, batteryapi, bdi, beacon, bgpositionshorthand, bgpositionxy, bgrepeatround, bgrepeatspace, bgsizecover, blobconstructor, bloburls, blobworkers, borderimage, borderradius, boxdecorationbreak, boxshadow, boxsizing, canvas, canvasblending, canvastext, canvaswinding, capture, checked, classlist, connectioneffectivetype, contains, contenteditable, contextmenu, cookies, cors, createelement-attrs, createelementattrs, cryptography, cssall, cssanimations, csscalc, csschunit, csscolumns, cssescape, cssexunit, cssfilters, cssgradients, cssgrid, cssgridlegacy, csshyphens, cssinvalid, cssmask, csspointerevents, csspositionsticky, csspseudoanimations, csspseudotransitions, cssreflections, cssremunit, cssresize, cssscrollbar, csstransforms, csstransforms3d, csstransformslevel2, csstransitions, cssvalid, cssvhunit, cssvmaxunit, cssvminunit, cssvwunit, cubicbezierrange, customelements, customevent, customproperties, customprotocolhandler, dart, datachannel, datalistelem, dataset, datauri, dataview, dataworkers, details, devicemotion, deviceorientation, directory, display-runin, displaytable, documentfragment, ellipsis, emoji, es5, es5array, es5date, es5function, es5object, es5string, es5syntax, es5undefined, es6array, es6collections, es6math, es6number, es6object, es6string, es6symbol, eventlistener, eventsource, exiforientation, fetch, fileinput, filereader, filesystem, flash, flexbox, flexboxlegacy, flexboxtweener, flexgap, flexwrap, focuswithin, fontdisplay, fontface, forcetouch, formattribute, formvalidation, framed, fullscreen, gamepads, generatedcontent, generators, geolocation, getrandomvalues, getusermedia, hairline, hashchange, hidden, hiddenscroll, history, hovermq, hsla, htmlimports, ie8compat, imgcrossorigin, indexeddb, indexeddbblob, inlinesvg, input, inputformaction, inputformenctype, inputformmethod, inputformnovalidate, inputformtarget, inputsearchevent, inputtypes, intersectionobserver, intl, jpeg2000, jpegxr, json, lastchild, lazyloading, ligatures, localizednumber, localstorage, lowbandwidth, lowbattery, matchmedia, mathml, mediaqueries, mediasource, messagechannel, meter, microdata, multiplebgs, mutationobserver, notification, nthchild, objectfit, olreversed, oninput, opacity, outputelem, overflowscrolling, pagevisibility, passiveeventlisteners, peerconnection, performance, picture, placeholder, pointerevents, pointerlock, pointermq, postmessage, preserve3d, progressbar, promises, proximity, publicKeyCredential, queryselector, quotamanagement, regions, requestanimationframe, requestautocomplete, rgba, ruby, sandbox, scriptasync, scriptdefer, scrollsnappoints, seamless, serviceworker, sessionstorage, shadowroot, shadowrootlegacy, shapes, sharedworkers, siblinggeneral, sizes, smil, softhyphens, softhyphensfind, speechrecognition, speechsynthesis, srcdoc, srcset, strictmode, stylescoped, subpixelfont, supports, svg, svgasimg, svgclippaths, svgfilters, svgforeignobject, target, template, templatestrings, textalignlast, textareamaxlength, textdecoration, textshadow, texttrackapi, time, todataurljpeg, todataurlpng, todataurlwebp, touchevents, track, transferables, typedarrays, unicode, unicoderange, unknownelements, urlparser, urlsearchparams, userdata, userselect, variablefonts, vibrate, video, videoautoplay, videocrossorigin, videoloop, videopreload, vml, webanimations, webaudio, webgl, webglextensions, webintents, webp, webp-lossless, webpalpha, webpanimation, webplossless, websockets, websocketsbinary, websqldatabase, webworkers, willchange, wrapflow, xdomainrequest, xhr2, xhrresponsetype, xhrresponsetypearraybuffer, xhrresponsetypeblob, xhrresponsetypedocument, xhrresponsetypejson, xhrresponsetypetext"; | ||
var tests = "Proxy, adownload, ambientlight, apng, appearance, applicationcache, arrow, atobbtoa, audio, audioautoplay, audioloop, audiopreload, backdropfilter, backgroundblendmode, backgroundcliptext, backgroundsize, batteryapi, bdi, beacon, bgpositionshorthand, bgpositionxy, bgrepeatround, bgrepeatspace, bgsizecover, blobconstructor, bloburls, blobworkers, borderimage, borderradius, boxdecorationbreak, boxshadow, boxsizing, canvas, canvasblending, canvastext, canvaswinding, capture, checked, classlist, connectioneffectivetype, contains, contenteditable, contextmenu, cookies, cors, createelement-attrs, createelementattrs, cryptography, cssall, cssanimations, csscalc, csschunit, csscolumns, cssescape, cssexunit, cssfilters, cssgradients, cssgrid, cssgridlegacy, csshyphens, cssinvalid, cssmask, csspointerevents, csspositionsticky, csspseudoanimations, csspseudotransitions, cssreflections, cssremunit, cssresize, cssscrollbar, csstransforms, csstransforms3d, csstransformslevel2, csstransitions, cssvalid, cssvhunit, cssvmaxunit, cssvminunit, cssvwunit, cubicbezierrange, customelements, customevent, customproperties, customprotocolhandler, dart, datachannel, datalistelem, dataset, datauri, dataview, dataworkers, details, devicemotion, deviceorientation, directory, display-runin, displaytable, documentfragment, ellipsis, emoji, es5, es5array, es5date, es5function, es5object, es5string, es5syntax, es5undefined, es6array, es6collections, es6math, es6number, es6object, es6string, es6symbol, es7array, eventlistener, eventsource, exiforientation, fetch, fileinput, filereader, filesystem, flash, flexbox, flexboxlegacy, flexboxtweener, flexgap, flexwrap, focuswithin, fontdisplay, fontface, forcetouch, formattribute, formvalidation, framed, fullscreen, gamepads, generatedcontent, generators, geolocation, getrandomvalues, getusermedia, hairline, hashchange, hidden, hiddenscroll, history, hovermq, hsla, htmlimports, ie8compat, imgcrossorigin, indexeddb, indexeddbblob, inlinesvg, input, inputformaction, inputformenctype, inputformmethod, inputformnovalidate, inputformtarget, inputsearchevent, inputtypes, intersectionobserver, intl, jpeg2000, jpegxr, json, lastchild, lazyloading, ligatures, localizednumber, localstorage, lowbandwidth, lowbattery, matchmedia, mathml, mediaqueries, mediasource, messagechannel, meter, microdata, multiplebgs, mutationobserver, notification, nthchild, objectfit, olreversed, oninput, opacity, outputelem, overflowscrolling, pagevisibility, passiveeventlisteners, peerconnection, performance, picture, placeholder, pointerevents, pointerlock, pointermq, postmessage, preserve3d, progressbar, promises, proximity, publicKeyCredential, queryselector, quotamanagement, regions, requestanimationframe, requestautocomplete, restdestructuringarray, restdestructuringobject, restparameters, rgba, ruby, sandbox, scriptasync, scriptdefer, scrollsnappoints, seamless, serviceworker, sessionstorage, shadowroot, shadowrootlegacy, shapes, sharedworkers, siblinggeneral, sizes, smil, softhyphens, softhyphensfind, speechrecognition, speechsynthesis, spreadarray, spreadobject, srcdoc, srcset, strictmode, stringtemplate, stylescoped, subpixelfont, supports, svg, svgasimg, svgclippaths, svgfilters, svgforeignobject, target, template, templatestrings, textalignlast, textareamaxlength, textdecoration, textshadow, texttrackapi, time, todataurljpeg, todataurlpng, todataurlwebp, touchevents, track, transferables, typedarrays, unicode, unicoderange, unknownelements, urlparser, urlsearchparams, userdata, userselect, variablefonts, vibrate, video, videoautoplay, videocrossorigin, videoloop, videopreload, vml, webanimations, webaudio, webgl, webglextensions, webintents, webp, webp-lossless, webpalpha, webpanimation, webplossless, websockets, websocketsbinary, websqldatabase, webworkers, willchange, wrapflow, xdomainrequest, xhr2, xhrresponsetype, xhrresponsetypearraybuffer, xhrresponsetypeblob, xhrresponsetypedocument, xhrresponsetypejson, xhrresponsetypetext"; | ||
var testArray = tests.split(", "); | ||
@@ -17,0 +17,0 @@ |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
722067
15272
Updatedcross-spawn@^7.0.2
Updatedmkdirp@^1.0.4
Updatednopt@^4.0.3