@yamato-daiwa/es-extensions-nodejs 1.9.0-alpha.4 → 1.9.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.
@@ -10,6 +10,10 @@ export default class ImprovedGlob {
10
10
  filePath: string;
11
11
  globSelectors: ReadonlyArray<string> | string;
12
12
  }>): boolean;
13
+ static isFilePathMatchingWithAtLeastOneGlobSelector({ filePath, globSelectors }: Readonly<{
14
+ filePath: string;
15
+ globSelectors: ReadonlyArray<string> | ReadonlySet<string>;
16
+ }>): boolean;
13
17
  static isExcludingGlobSelector(globSelector: string): boolean;
14
18
  static buildAllFilesInCurrentDirectoryButNotBelowGlobSelector(compoundParameter: {
15
19
  basicDirectoryPath: string;
@@ -40,6 +40,10 @@ class ImprovedGlob {
40
40
  compoundParameter.globSelectors : [compoundParameter.globSelectors]).
41
41
  every((globSelector) => (0, minimatch_1.minimatch)(compoundParameter.filePath, globSelector));
42
42
  }
43
+ static isFilePathMatchingWithAtLeastOneGlobSelector({ filePath, globSelectors }) {
44
+ return (Array.isArray(globSelectors) ? globSelectors : [...globSelectors]).
45
+ some((globSelector) => (0, minimatch_1.minimatch)(filePath, globSelector));
46
+ }
43
47
  static isExcludingGlobSelector(globSelector) {
44
48
  return globSelector.startsWith("!");
45
49
  }
@@ -118,7 +122,8 @@ class ImprovedGlob {
118
122
  ] :
119
123
  [],
120
124
  ...fileNamesExtensions.size > 0 ?
121
- [ImprovedGlob.createMultipleFilenameExtensionsGlobPostfix(fileNamesExtensions)] : []
125
+ [ImprovedGlob.createMultipleFilenameExtensionsGlobPostfix(fileNamesExtensions)] :
126
+ penultimateFileNamesExtensions.size > 0 ? ["/*"] : []
122
127
  ].join("");
123
128
  }
124
129
  static buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(polymorphicParameter) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @yamato-daiwa/es-extensions-nodejs v1.8
2
+ * @yamato-daiwa/es-extensions-nodejs v1.9
3
3
  * (c) 2023 Yamato Daiwa Co., Ltd.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*!
3
- * @yamato-daiwa/es-extensions-nodejs v1.8
3
+ * @yamato-daiwa/es-extensions-nodejs v1.9
4
4
  * (c) 2023 Yamato Daiwa Co., Ltd.
5
5
  * Released under the MIT License.
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/es-extensions-nodejs",
3
- "version": "1.9.0-alpha.4",
3
+ "version": "1.9.1",
4
4
  "description": "Additional to @yamato-daiwa/es-extensions functionality for Node.js environment. Helper functions and classes aimed to reduce the routine code. Build-in TypeScript type safety.",
5
5
  "keywords": [
6
6
  "nodejs",
@@ -32,7 +32,7 @@
32
32
  "node": ">=22.0.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@yamato-daiwa/es-extensions": "1.9.0-alpha.4"
35
+ "@yamato-daiwa/es-extensions": "1.9.1"
36
36
  },
37
37
  "dependencies": {
38
38
  "dotenv": "17.4.2",
@@ -45,16 +45,16 @@
45
45
  "@types/json5": "0.0.30",
46
46
  "@types/node": "22.15.31",
47
47
  "@types/yamljs": "0.2.34",
48
- "@yamato-daiwa/es-extensions": "1.9.0-alpha.4",
49
- "@yamato-daiwa/style_guides": "0.14.2",
48
+ "@yamato-daiwa/es-extensions": "1.9.1",
49
+ "@yamato-daiwa/style_guides": "0.14.3",
50
50
  "rimraf": "6.1.3",
51
- "tsx": "4.22.0",
51
+ "tsx": "4.23.0",
52
52
  "typescript": "6.0.3"
53
53
  },
54
54
  "scripts": {
55
55
  "Check Types": "tsc --noEmit",
56
- "Lint": "eslint Source Tests",
57
- "Run Tests": "node --require tsx/cjs --test \"Tests/**/*.test.ts\"",
56
+ "Lint": "eslint",
57
+ "Run Tests": "node --require tsx/cjs --test \"Tests/Automated/**/*.test.ts\"",
58
58
  "Rebuild Distributable Without Preliminary Cleaning": "tsc -p tsconfig.build.json",
59
59
  "Rebuild Distributable": "rimraf --glob Distributable/* && tsc -p tsconfig.build.json",
60
60
  "Rebuild Distributable and Realize Alpha": "npm run \"Rebuild Distributable\" && npm publish --tag alpha",