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

customizr

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

customizr - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

LICENSE

288

cache/options.json
{
"version": "1.2.0",
"version": "1.2.1",
"modernizr": "^3",
"options": {
"feature-detects": [
"test/ambientlight",
"test/applicationcache",
"test/audio",
"test/battery",
"test/blob",
"test/canvas",
"test/canvastext",
"test/contenteditable",
"test/contextmenu",
"test/cookies",
"test/cors",
"test/crypto",
"test/custom-elements",
"test/custom-protocol-handler",
"test/customevent",
"test/dart",
"test/dataview-api",
"test/emoji",
"test/eventlistener",
"test/exif-orientation",
"test/flash",
"test/forcetouch",
"test/fullscreen-api",
"test/gamepad",
"test/geolocation",
"test/hashchange",
"test/hiddenscroll",
"test/history",
"test/htmlimports",
"test/ie8compat",
"test/indexeddb",
"test/indexeddbblob",
"test/input",
"test/svg/smil"
"test/inputsearchevent",
"test/inputtypes",
"test/intl",
"test/json",
"test/ligatures",
"test/lists-reversed",
"test/mathml",
"test/media-source-extension-api",
"test/messagechannel",
"test/notification",
"test/pagevisibility-api",
"test/performance",
"test/pointerevents",
"test/pointerlock-api",
"test/postmessage",
"test/proximity",
"test/queryselector",
"test/quota-management-api",
"test/requestanimationframe",
"test/serviceworker",
"test/svg",
"test/templatestrings",
"test/touchevents",
"test/typed-arrays",
"test/unicode-range",
"test/unicode",
"test/userdata",
"test/vibration",
"test/video",
"test/vml",
"test/web-intents",
"test/webanimations",
"test/webgl",
"test/websockets",
"test/xdomainrequest",
"test/a/download",
"test/audio/autoplay",
"test/audio/loop",
"test/audio/preload",
"test/audio/webaudio",
"test/battery/lowbattery",
"test/canvas/blending",
"test/canvas/todataurl",
"test/canvas/winding",
"test/crypto/getrandomvalues",
"test/css/all",
"test/css/animations",
"test/css/appearance",
"test/css/backdropfilter",
"test/css/backgroundblendmode",
"test/css/backgroundcliptext",
"test/css/backgroundposition-shorthand",
"test/css/backgroundposition-xy",
"test/css/backgroundrepeat",
"test/css/backgroundsize",
"test/css/backgroundsizecover",
"test/css/borderimage",
"test/css/borderradius",
"test/css/boxdecorationbreak",
"test/css/boxshadow",
"test/css/boxsizing",
"test/css/calc",
"test/css/checked",
"test/css/chunit",
"test/css/columns",
"test/css/cssgrid",
"test/css/cubicbezierrange",
"test/css/customproperties",
"test/css/displayrunin",
"test/css/displaytable",
"test/css/ellipsis",
"test/css/escape",
"test/css/exunit",
"test/css/filters",
"test/css/flexbox",
"test/css/flexboxlegacy",
"test/css/flexboxtweener",
"test/css/flexwrap",
"test/css/focuswithin",
"test/css/fontdisplay",
"test/css/fontface",
"test/css/generatedcontent",
"test/css/gradients",
"test/css/hairline",
"test/css/hsla",
"test/css/hyphens",
"test/css/invalid",
"test/css/lastchild",
"test/css/mask",
"test/css/mediaqueries",
"test/css/multiplebgs",
"test/css/nthchild",
"test/css/objectfit",
"test/css/opacity",
"test/css/overflow-scrolling",
"test/css/pointerevents",
"test/css/positionsticky",
"test/css/pseudoanimations",
"test/css/pseudotransitions",
"test/css/reflections",
"test/css/regions",
"test/css/remunit",
"test/css/resize",
"test/css/rgba",
"test/css/scrollbars",
"test/css/scrollsnappoints",
"test/css/shapes",
"test/css/siblinggeneral",
"test/css/subpixelfont",
"test/css/supports",
"test/css/target",
"test/css/textalignlast",
"test/css/textdecoration",
"test/css/textshadow",
"test/css/transforms",
"test/css/transforms3d",
"test/css/transformslevel2",
"test/css/transformstylepreserve3d",
"test/css/transitions",
"test/css/userselect",
"test/css/valid",
"test/css/variablefonts",
"test/css/vhunit",
"test/css/vmaxunit",
"test/css/vminunit",
"test/css/vwunit",
"test/css/will-change",
"test/css/wrapflow",
"test/dom/classlist",
"test/dom/createElement-attrs",
"test/dom/dataset",
"test/dom/documentfragment",
"test/dom/hidden",
"test/dom/intersection-observer",
"test/dom/microdata",
"test/dom/mutationObserver",
"test/dom/passiveeventlisteners",
"test/elem/bdi",
"test/elem/datalist",
"test/elem/details",
"test/elem/output",
"test/elem/picture",
"test/elem/progress-meter",
"test/elem/ruby",
"test/elem/template",
"test/elem/time",
"test/elem/track",
"test/elem/unknown",
"test/es5/array",
"test/es5/date",
"test/es5/function",
"test/es5/object",
"test/es5/specification",
"test/es5/strictmode",
"test/es5/string",
"test/es5/syntax",
"test/es5/undefined",
"test/es6/array",
"test/es6/arrow",
"test/es6/collections",
"test/es6/contains",
"test/es6/generators",
"test/es6/math",
"test/es6/number",
"test/es6/object",
"test/es6/promises",
"test/es6/string",
"test/event/deviceorientation-motion",
"test/event/oninput",
"test/file/api",
"test/file/filesystem",
"test/forms/capture",
"test/forms/fileinput",
"test/forms/fileinputdirectory",
"test/forms/formattribute",
"test/forms/inputnumber-l10n",
"test/forms/placeholder",
"test/forms/requestautocomplete",
"test/forms/validation",
"test/iframe/sandbox",
"test/iframe/seamless",
"test/iframe/srcdoc",
"test/img/apng",
"test/img/crossorigin",
"test/img/jpeg2000",
"test/img/jpegxr",
"test/img/sizes",
"test/img/srcset",
"test/img/webp-alpha",
"test/img/webp-animation",
"test/img/webp-lossless",
"test/img/webp",
"test/input/formaction",
"test/input/formenctype",
"test/input/formmethod",
"test/input/formnovalidate",
"test/input/formtarget",
"test/mediaquery/hovermq",
"test/mediaquery/pointermq",
"test/network/beacon",
"test/network/connection-effectivetype",
"test/network/connection",
"test/network/eventsource",
"test/network/fetch",
"test/network/xhr-responsetype-arraybuffer",
"test/network/xhr-responsetype-blob",
"test/network/xhr-responsetype-document",
"test/network/xhr-responsetype-json",
"test/network/xhr-responsetype-text",
"test/network/xhr-responsetype",
"test/network/xhr2",
"test/script/async",
"test/script/defer",
"test/speech/speech-recognition",
"test/speech/speech-synthesis",
"test/storage/localstorage",
"test/storage/sessionstorage",
"test/storage/websqldatabase",
"test/style/scoped",
"test/svg/asimg",
"test/svg/clippaths",
"test/svg/filters",
"test/svg/foreignobject",
"test/svg/inline",
"test/svg/smil",
"test/textarea/maxlength",
"test/url/bloburls",
"test/url/data-uri",
"test/url/parser",
"test/url/urlsearchparams",
"test/video/autoplay",
"test/video/crossorigin",
"test/video/loop",
"test/video/preload",
"test/webauthn/publickeycredential",
"test/webgl/extensions",
"test/webrtc/datachannel",
"test/webrtc/getusermedia",
"test/webrtc/peerconnection",
"test/websockets/binary",
"test/window/atob-btoa",
"test/window/framed",
"test/window/matchmedia",
"test/workers/blobworkers",
"test/workers/dataworkers",
"test/workers/sharedworkers",
"test/workers/transferables",
"test/workers/webworkers"
],

@@ -16,6 +294,6 @@ "options": [

],
"minify": false,
"dest": "build/modernizr-prefixed.js",
"classPrefix": "prefixed-"
"minify": true,
"dest": "build/modernizr-custom.js",
"classPrefix": ""
}
}

41

package.json
{
"name": "customizr",
"version": "1.2.1",
"description": "Build out a lean, mean Modernizr machine.",
"version": "1.3.0",
"main": "src",

@@ -9,20 +9,7 @@ "bin": {

},
"scripts": {
"pretest": "node test/pretest.js",
"test": "node test/runner.js"
},
"repository": {
"type": "git",
"url": "https://github.com/Modernizr/customizr.git"
},
"keywords": [
"modernizr",
"customizr"
],
"author": "Richard Herrera",
"license": "MIT",
"bugs": {
"url": "https://github.com/Modernizr/customizr/issues"
},
"bugs": "https://github.com/Modernizr/customizr/issues",
"homepage": "https://github.com/Modernizr/customizr",
"repository": "https://github.com/Modernizr/customizr.git",
"author": "Richard Herrera",
"dependencies": {

@@ -43,5 +30,21 @@ "colors": "^1.3.3",

"fs-extra": "^7.0.1",
"mocha": "^6.0.2",
"nexpect": "^0.5.0"
"mocha": "^6.1.4",
"nexpect": "^0.6.0"
},
"keywords": [
"modernizr",
"customizr"
],
"scripts": {
"pretest": "node test/pretest.js",
"test": "node test/runner.js"
},
"customizr": {
"dest": "build/modernizr-package.js",
"files": {
"src": [
"test/{js,css}/*"
]
}
}
}

@@ -1,2 +0,1 @@

/* jshint sub: true */
/* global define */

@@ -3,0 +2,0 @@

@@ -1,3 +0,1 @@

/* jshint sub: true */
var Modernizr = window.Modernizr;

@@ -4,0 +2,0 @@

@@ -68,3 +68,2 @@ "use strict";

var vanilla = [
"/* jshint sub: true */",
"var Modernizr = window.Modernizr;",

@@ -80,3 +79,3 @@ "var tests = " + string + ";"

var amd = [
"/* jshint sub: true */\n/* global define */",
"/* global define */",
"define([\"Modernizr\"], function (M) {",

@@ -83,0 +82,0 @@ " var tests = " + string.replace(/\n/g, "\n\t").replace(/Modernizr/g, "M") + ";",

{
"dest": "build/modernizr-select.js",
"tests": [
"webintents",
["cssgrid", "cssgridlegacy"],
"siblinggeneral",

@@ -6,0 +6,0 @@ "svg"

@@ -190,3 +190,3 @@ /*global describe, before, it, after*/

.wait(">> Explicitly including these tests:")
.expect(">> siblinggeneral, svg, webintents")
.expect(">> cssgrid,cssgridlegacy, siblinggeneral, svg")

@@ -210,3 +210,4 @@ .expect("Skipping file traversal")

var includedTestArray = [
"webintents",
"cssgrid",
"cssgridlegacy",
"siblinggeneral",

@@ -366,1 +367,52 @@ "svg"

});
describe("settings", function() {
var testsLength = testArray.length,
existingBuild = path.join(cwd, "build", "modernizr-package.js");
it("should honor configs in package.json", function (done) {
process.stdout.write("\n\n");
nexpect.spawn(cli, [
"--config", 'package.json'
], {
stripColors: true
})
.wait("Looking for Modernizr references")
.wait(">> " + testsLength + " matches in")
.expect(">> " + tests)
.expect(">> " + testsLength + " matches in")
.expect(">> " + tests)
.expect(">> " + testsLength + " matches in")
.expect(">> " + tests)
.expect(">> Ready to build using these settings:")
.wait("Building your customized Modernizr").wait("OK")
.expect(">> Success! Saved file to build/modernizr-package.js")
.run(function (err) {
if (!err) {
done();
} else {
throw err;
}
});
describe("should include all tests", function () {
var contents;
testArray.forEach(function (test) {
it(test, function (done) {
contents = contents || fs.readFileSync(existingBuild, "utf8");
expect(contents.indexOf(test)).to.not.equal(-1);
done();
});
});
});
});
});

Sorry, the diff of this file is not supported yet

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

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