find-cli 1.7.2 → 1.7.4

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.
@@ -14,6 +14,8 @@ const { UTF8_ENCODING } = encodings,
14
14
  NEW_LINE_CHARACTER,
15
15
  CARRIAGE_RETURN_CHARACTER } = characters;
16
16
 
17
+ function isAnswerIgnore(answer) { return /^(:?ignore|i)$/i.test(answer); }
18
+
17
19
  function selectPreviousRule(previousRules, callback) {
18
20
  let index = 0,
19
21
  previousRule = previousRules[index];
@@ -111,6 +113,7 @@ function selectPreviousRule(previousRules, callback) {
111
113
  }
112
114
 
113
115
  module.exports = {
116
+ isAnswerIgnore,
114
117
  selectPreviousRule
115
118
  };
116
119
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "find-cli",
3
3
  "author": "James Smith",
4
- "version": "1.7.2",
4
+ "version": "1.7.4",
5
5
  "license": "MIT, Anti-996",
6
6
  "homepage": "https://github.com/djalbat/find-cli",
7
7
  "description": "An alternative to grep.",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "argumentative": "^2.0.32",
17
- "necessary": "^14.3.2"
17
+ "necessary": "^15.0.1"
18
18
  },
19
19
  "scripts": {}
20
20
  }