main-bower-files
Advanced tools
Comparing version 2.11.0 to 2.11.1
@@ -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 |
{ | ||
"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
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
41749
69
863