bower-requirejs
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -8,2 +8,3 @@ 'use strict'; | ||
var _ = require('lodash'); | ||
var assign = require('object-assign'); | ||
var chalk = require('chalk'); | ||
@@ -40,3 +41,3 @@ var success = chalk.green; | ||
function run() { | ||
bower.commands.list() | ||
bower.commands.list({}, { offline: true }) | ||
.on('end', function (data) { | ||
@@ -66,3 +67,3 @@ if (data) { | ||
if (pathsObj) { | ||
dependencies = _.extend(dependencies, pathsObj.paths); | ||
dependencies = assign(dependencies, pathsObj.paths); | ||
} | ||
@@ -86,3 +87,3 @@ }); | ||
if (config.paths) { | ||
_.extend(config.paths, dependencies); | ||
assign(config.paths, dependencies); | ||
} else { | ||
@@ -89,0 +90,0 @@ config.paths = dependencies; |
@@ -5,2 +5,3 @@ 'use strict'; | ||
var slash = require('slash'); | ||
var assign = require('object-assign'); | ||
var slice = Array.prototype.slice; | ||
@@ -16,3 +17,2 @@ var warn = require('chalk').black.bgYellow; | ||
module.exports = function (dep, name, baseUrl) { | ||
var canonicalDir = dep.canonicalDir; | ||
@@ -23,3 +23,3 @@ var main; | ||
var pkgMain = dep.pkgMeta.main; | ||
if (! _.isArray(pkgMain)) { | ||
if (!Array.isArray(pkgMain)) { | ||
pkgMain = [pkgMain]; | ||
@@ -48,3 +48,3 @@ } | ||
// If main should be turned into an Array | ||
if (_.isArray(main)) { | ||
if (Array.isArray(main)) { | ||
dep = main; | ||
@@ -96,5 +96,5 @@ } else { | ||
if (arr.length > 1) { | ||
_.extend(dependencies, dependencyByFilename(val)); | ||
assign(dependencies, dependencyByFilename(val)); | ||
} else { | ||
_.extend(dependencies, dependencyByComponentName(name, val)); | ||
assign(dependencies, dependencyByComponentName(name, val)); | ||
} | ||
@@ -101,0 +101,0 @@ }; |
{ | ||
"name": "bower-requirejs", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Automagically wire-up installed Bower components into your RequireJS config", | ||
@@ -50,20 +50,21 @@ "keywords": [ | ||
"lodash": "~2.4.1", | ||
"chalk": "~0.3.0", | ||
"chalk": "~0.4.0", | ||
"glob": "~3.2.6", | ||
"file-utils": "~0.1.2", | ||
"file-utils": "~0.2.0", | ||
"sudo-block": "~0.3.0", | ||
"update-notifier": "~0.1.7" | ||
"update-notifier": "~0.1.7", | ||
"object-assign": "~0.1.1" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.0", | ||
"grunt-contrib-jshint": "~0.7.2", | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-copy": "~0.4.0", | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt-contrib-copy": "~0.5.0", | ||
"grunt-contrib-nodeunit": "~0.3.0", | ||
"grunt-simple-mocha": "~0.4.0", | ||
"bower": "~1.x", | ||
"durable-json-lint": "0.0.1", | ||
"mocha": "~1.15.1", | ||
"should": "~2.1.1", | ||
"load-grunt-tasks": "~0.2.0", | ||
"mocha": "*", | ||
"should": "~3.1.2", | ||
"load-grunt-tasks": "~0.3.0", | ||
"mockery": "~1.4.0" | ||
@@ -70,0 +71,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18260
438
11
+ Addedobject-assign@~0.1.1
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfile-utils@0.2.2(transitive)
+ Addedfindup-sync@0.2.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@4.3.54.5.37.2.3(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedisbinaryfile@2.0.4(transitive)
+ Addedminimatch@2.0.103.1.2(transitive)
+ Addedobject-assign@0.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedfile-utils@0.1.5(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removediconv-lite@0.2.11(transitive)
- Removedisbinaryfile@0.1.9(transitive)
- Removedlodash@2.1.0(transitive)
- Removedminimatch@0.2.14(transitive)
- Removedrimraf@2.2.8(transitive)
Updatedchalk@~0.4.0
Updatedfile-utils@~0.2.0