retire 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/retire.js CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
  var exports = exports || {};
8
- exports.version = '1.1.5';
8
+ exports.version = '1.1.6';
9
9
 
10
10
  function isDefined(o) {
11
11
  return typeof o !== 'undefined';
@@ -120,7 +120,7 @@ exports.check = function(component, version, repo) {
120
120
  };
121
121
 
122
122
  exports.replaceVersion = function(jsRepoJsonAsText) {
123
- return jsRepoJsonAsText.replace(/§§version§§/g, '[0-9][0-9.a-z_\\\\-]+');
123
+ return jsRepoJsonAsText.replace(/§§version§§/g, '[0-9][0-9.a-z_\\\\-]+?');
124
124
  };
125
125
 
126
126
  exports.isVulnerable = function(results) {
package/lib/scanner.js CHANGED
@@ -113,8 +113,11 @@ function toModulePath(dep) {
113
113
 
114
114
 
115
115
  function scanBowerFile(file, repo, options) {
116
+ if (options.ignore && shouldIgnore([file], options.ignore)) {
117
+ return;
118
+ }
116
119
  try {
117
- var bower = JSON.parse(fs.readFileSync(file));
120
+ var bower = JSON.parse(fs.readFileSync(file));
118
121
  if (bower.version) {
119
122
  var results = retire.check(bower.name, bower.version, repo);
120
123
  printResults(file, results, options);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Erlend Oftedal <erlend@oftedal.no>",
3
3
  "name": "retire",
4
4
  "description": "Retire is a tool for detecting use of vulnerable libraries",
5
- "version": "1.1.5",
5
+ "version": "1.1.6",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/RetireJS/retire.js.git"