watskeburt 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -75,7 +75,7 @@ node >=18.11).
75
75
  ```shell
76
76
  # list all JavaScript-ish files changed since main in a regular expression
77
77
  $ npx watskeburt main
78
- ^(src/cli\.mjs|src/formatters/regex\.mjs|src/version\.mjs)$
78
+ ^(src/cli[.]mjs|src/formatters/regex[.]mjs|src/version[.]mjs)$
79
79
  ```
80
80
 
81
81
  By default this returns a regex that contains all changed files that could be
@@ -31,10 +31,12 @@ export default function formatToRegex(
31
31
  pChangeTypes = DEFAULT_CHANGE_TYPES,
32
32
  ) {
33
33
  const lChanges = pChanges
34
- .filter((pChange) => pChangeTypes.has(pChange.changeType))
35
- .map(({ name }) => name)
36
- .filter((pName) => pExtensions.has(extname(pName)))
37
- .map((pName) => pName.replace(/\\/g, "\\\\").replace(/\./g, "[.]"))
34
+ .filter(
35
+ (pChange) =>
36
+ pChangeTypes.has(pChange.changeType) &&
37
+ pExtensions.has(extname(pChange.name)),
38
+ )
39
+ .map(({ name }) => name.replace(/\\/g, "\\\\").replace(/\./g, "[.]"))
38
40
  .join("|");
39
41
  return `^(${lChanges})$`;
40
42
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "2.0.3";
1
+ export const VERSION = "2.0.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watskeburt",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "List files changed since a git revision",
5
5
  "keywords": [
6
6
  "git",
@@ -45,24 +45,24 @@
45
45
  "README.md"
46
46
  ],
47
47
  "devDependencies": {
48
- "@types/node": "20.10.1",
49
- "@typescript-eslint/eslint-plugin": "6.13.1",
48
+ "@types/node": "20.10.5",
49
+ "@typescript-eslint/eslint-plugin": "6.16.0",
50
50
  "c8": "8.0.1",
51
51
  "dependency-cruiser": "15.5.0",
52
- "eslint": "8.54.0",
52
+ "eslint": "8.56.0",
53
53
  "eslint-config-moving-meadow": "4.0.2",
54
- "eslint-config-prettier": "9.0.0",
54
+ "eslint-config-prettier": "9.1.0",
55
55
  "eslint-plugin-budapestian": "6.0.0",
56
56
  "eslint-plugin-eslint-comments": "3.2.0",
57
- "eslint-plugin-import": "2.29.0",
57
+ "eslint-plugin-import": "2.29.1",
58
58
  "eslint-plugin-mocha": "10.2.0",
59
59
  "eslint-plugin-node": "11.1.0",
60
- "eslint-plugin-security": "1.7.1",
61
- "eslint-plugin-unicorn": "49.0.0",
60
+ "eslint-plugin-security": "2.1.0",
61
+ "eslint-plugin-unicorn": "50.0.1",
62
62
  "npm-run-all": "4.1.5",
63
- "prettier": "3.1.0",
64
- "tsx": "4.6.1",
65
- "typescript": "5.3.2",
63
+ "prettier": "3.1.1",
64
+ "tsx": "4.7.0",
65
+ "typescript": "5.3.3",
66
66
  "upem": "9.0.2"
67
67
  },
68
68
  "engines": {