Skip to content
Permalink
Browse files

chore(package): update lodash to version 4.0.0

  • Loading branch information...
greenkeeperio-bot authored and patrickkettner committed Jan 12, 2016
1 parent 69fe729 commit 4738f5a957e1ecd25850007293f5c8c59cf03bbe
@@ -139,7 +139,7 @@ if (inBrowser) {

baseRequireConfig.baseUrl = __dirname + '/../src';
baseRequireConfig.paths = {
lodash: __dirname + '/../node_modules/lodash/index',
lodash: __dirname + '/../node_modules/lodash/lodash',
test: __dirname + '/../feature-detects',
lib: __dirname
};
@@ -24,7 +24,7 @@ define(['lodash', 'package', 'lib/build-query'], function(_, pkg, buildQuery) {
' * ' + pkg.name + ' v' + pkg.version + '\n' +
' * Build http://' + domain + '/download' + query + '\n' +
' *\n' +
' * Copyright (c)\n * ' + _.pluck(pkg.contributors, 'name').join('\n * ') + '\n\n' +
' * Copyright (c)\n * ' + _.map(pkg.contributors, 'name').join('\n * ') + '\n\n' +
' * ' + pkg.license + ' License\n */\n' +
'\n' +
'/*\n' +
@@ -64,8 +64,8 @@ function options(cb, allMetadata) {
});

return {
name: _.where(tags, {title: 'optionName'})[0].description,
property: _.where(tags, {title: 'optionProp'})[0].description
name: _.filter(tags, {title: 'optionName'})[0].description,
property: _.filter(tags, {title: 'optionProp'})[0].description
};
}
})
@@ -9,7 +9,7 @@
"doctrine": "1.1.0",
"file": "0.2.2",
"find-parent-dir": "0.3.0",
"lodash": "3.10.1",
"lodash": "4.0.0",
"marked": "0.3.5",
"mkdirp": "0.5.1",
"requirejs": "2.1.22",
@@ -21,7 +21,7 @@ define(['lodash'], function(_) {
config['feature-detects'] = config['feature-detects'] || [];

// Some special cases
var setClasses = _.contains(config.options, 'setClasses');
var setClasses = _.includes(config.options, 'setClasses');

var output = 'require(["ModernizrProto", "Modernizr", "testRunner"';

@@ -16,7 +16,7 @@ html
#fixtures
script(src='../dist/modernizr-build.js')
script(src='../node_modules/jquery/dist/jquery.min.js')
script(src='../node_modules/lodash/index.js')
script(src='../node_modules/lodash/lodash.js')
script(src='../node_modules/mocha/mocha.js')
script(src='../test/js/lib/uaparser.js')
script.
@@ -158,7 +158,7 @@ window.caniusecb = function(caniuse) {
**************************************************************/

// caniuse says audio/video are yes/no, Modernizr has more detail which we'll dumb down.
if (_.contains(['video', 'audio', 'webglextensions'], o.feature)) {
if (_.includes(['video', 'audio', 'webglextensions'], o.feature)) {
o.result = o.result.valueOf();
}

@@ -255,7 +255,7 @@ window.caniusecb = function(caniuse) {
}

// caniuse bundles progress and meter elements, so we do too.
if (_.contains(['meter', 'progressbar'], o.feature)) {
if (_.includes(['meter', 'progressbar'], o.feature)) {
return it('Caniuse result for ' + o.ciufeature + ' matches Modernizr\'s result for ' + o.feature, function() {
return expect([
Modernizr.meter,
@@ -21,7 +21,7 @@ describe('classes', function() {
var result = name.indexOf('no-') === -1;
name = name.replace(/no-/, '');
it(name + ' is correctly ' + result + ' in the classes and object', function() {
if (_.contains(name, '-')) {
if (_.includes(name, '-')) {

if (name.replace('-', '') in Modernizr) {
name = name.replace('-', '');
@@ -36,7 +36,7 @@ $(document).ready(function() {
runner.on('fail', logFailure);

function logFailure(test, err) {
var isTimeout = _.contains(err.toString(), 'Ensure the done() callback is being called in this test.');
var isTimeout = _.includes(err.toString(), 'Ensure the done() callback is being called in this test.');

if (isTimeout) {
return window.global_test_results = {message: err};
@@ -11,7 +11,7 @@ html
#fixtures
script(src='../node_modules/json3/lib/json3.min.js')
script(src='../node_modules/jquery/dist/jquery.min.js')
script(src='../node_modules/lodash/index.js')
script(src='../node_modules/lodash/lodash.js')
script(src='../node_modules/requirejs/require.js')
script(src='../node_modules/mocha/mocha.js')
script.
@@ -23,7 +23,7 @@ describe('build-query', function() {
context: Math.random().toString().slice(2),
paths: {
lib: filesRoot + '/lib',
lodash: projectRoot + '/node_modules/lodash/index',
lodash: projectRoot + '/node_modules/lodash/lodash',
metadata: projectRoot + '/test/mocks/lib/metadata',
cleanup: projectRoot + '/test/cleanup'
}

0 comments on commit 4738f5a

Please sign in to comment.
You can’t perform that action at this time.