Socket
Socket
Sign inDemoInstall

bower-requirejs

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bower-requirejs - npm Package Compare versions

Comparing version 0.9.1 to 0.9.2

7

lib/index.js

@@ -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 @@ },

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