retire 3.2.0 → 3.2.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## [3.2.0]
4
4
 
5
+ - Remove unintended use of arrow functions
6
+
7
+ ## [3.2.0]
8
+
5
9
  - Add `--ext` to allow specifying other file extensions
6
10
 
7
11
  ## [3.1.3]
package/lib/resolve.js CHANGED
@@ -69,9 +69,9 @@ function getNodeDependencies(path, limit) {
69
69
 
70
70
  function scanJsFiles(path, options) {
71
71
  var finder = walkdir.find(path, { "follow_symlinks" : false, "no_return": true });
72
- var ext = (options.ext || "js").split(",").map(e => "." + e);
72
+ var ext = (options.ext || "js").split(",").map(function(e) { return "." + e; });
73
73
  function onFile(file){
74
- if (ext.some(e => file.endsWith(e))) {
74
+ if (ext.some(function(e) { return file.endsWith(e); })) {
75
75
  finder.emit('jsfile', file);
76
76
  }
77
77
  if (file.match(/\/bower.json$/)) {
package/lib/retire.js CHANGED
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  var exports = exports || {};
7
- exports.version = '3.2.0';
7
+ exports.version = '3.2.1';
8
8
 
9
9
  function isDefined(o) {
10
10
  return typeof o !== 'undefined';
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": "3.2.0",
5
+ "version": "3.2.1",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",