Skip to content

Commit

Permalink
fix(dependencies): 2.0.1 updated dependencies and fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Oct 29, 2022
1 parent 645b0b1 commit d2bd9f8
Show file tree
Hide file tree
Showing 6 changed files with 2,826 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/node_modules/
.vscode
.idea
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# matchdep [![Build Status](https://secure.travis-ci.org/tkellen/js-matchdep.svg?branch=master)](http://travis-ci.org/tkellen/js-matchdep)

> ### Forked Version using updated dependencies
> Original repo at https://github.com/tkellen/js-matchdep
> Use [micromatch] to filter npm module dependencies by name.
[![NPM](https://nodei.co/npm/matchdep.png)](https://nodei.co/npm/matchdep/)
Expand Down
2 changes: 1 addition & 1 deletion lib/matchdep.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ Object.keys(methods).forEach(function(method) {
var search = props.reduce(function(result, prop) {
return result.concat(config[prop]);
}, []);
return micromatch(search, pattern);
return pattern !== '' ? micromatch(search, pattern) : [];
};
});
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
{
"name": "matchdep",
"name": "@fomantic/matchdep",
"description": "Use micromatch to filter npm module dependencies by name.",
"version": "2.0.0",
"homepage": "https://github.com/tkellen/js-matchdep",
"version": "2.0.1",
"homepage": "https://github.com/fomantic/js-matchdep",
"author": {
"name": "Tyler Kellen",
"url": "http://goingslowly.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/tkellen/js-matchdep.git"
"url": "git://github.com/fomantic/js-matchdep.git"
},
"bugs": {
"url": "https://github.com/tkellen/js-matchdep/issues"
},
"license": "MIT",
"main": "lib/matchdep",
"engines": {
"node": ">= 0.10.0"
"node": ">= 12"
},
"scripts": {
"test": "grunt"
},
"dependencies": {
"findup-sync": "^2.0.0",
"micromatch": "^3.0.4",
"resolve": "^1.4.0",
"stack-trace": "0.0.10"
"findup-sync": "^5.0.0",
"micromatch": "^4.0.5",
"resolve": "^1.22.1",
"stack-trace": "^0.0.10"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-jshint": "^1.1.0",
"grunt-contrib-nodeunit": "^1.0.0"
"grunt": "^1.5.3",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-nodeunit": "^4.0.0"
},
"keywords": [
"package.json",
Expand Down
2 changes: 1 addition & 1 deletion test/matchdep_test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
'use strict';
'use strict';

var matchdep = require('../lib/matchdep');

Expand Down
Loading

0 comments on commit d2bd9f8

Please sign in to comment.