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

main-bower-files

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

main-bower-files - npm Package Compare versions

Comparing version 2.11.0 to 2.11.1

test/_bower_with_wrong_main_path.json

4

lib/package.js

@@ -131,2 +131,6 @@ var path = require('path'),

main.forEach(function(pattern) {
if (pattern[0] === '/') {
throw new Error('absolute path in bower main is not supported');
}
var _files = globby(pattern, {

@@ -133,0 +137,0 @@ cwd: this.path

2

package.json
{
"name": "main-bower-files",
"version": "2.11.0",
"version": "2.11.1",
"description": "Get main files from your installed bower packages.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -324,2 +324,10 @@ var mainBowerFiles = require('../'),

});
it('should not giving error wrong error message when a / path was passed',function(done){
var when = expect([
]).fromConfig('/_bower_with_wrong_main_path.json', { checkExistence: true }).when;
when.should.throw('absolute path in bower main is not supported');
done();
});
});

Sorry, the diff of this file is not supported yet

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