linguist-js 2.5.4 → 2.5.6
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/dist/helpers/convert-pcre.js +5 -4
- package/dist/helpers/load-data.js +2 -1
- package/dist/schema.d.ts +1 -1
- package/dist/types.d.ts +6 -6
- package/ext/documentation.yml +1 -1
- package/ext/generated.rb +5 -1
- package/ext/heuristics.yml +804 -771
- package/ext/languages.yml +272 -35
- package/ext/vendor.yml +4 -2
- package/package.json +7 -7
- package/readme.md +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linguist-js",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"node": ">=12"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"download-files": "npx tsx@
|
|
14
|
+
"download-files": "npx tsx@3 build/download-files",
|
|
15
15
|
"pre-publish": "npm run download-files && npm test && npm run test:perf",
|
|
16
16
|
"test:perf": "tsc && node test/perf",
|
|
17
17
|
"test": "tsc && node test/folder && echo --- && node test/unit"
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"homepage": "https://github.com/Nixinova/Linguist#readme",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"binary-extensions": "^2.2.0",
|
|
43
|
-
"commander": "^9.5.0",
|
|
43
|
+
"commander": "^9.5.0 <10",
|
|
44
44
|
"common-path-prefix": "^3.0.0",
|
|
45
|
-
"cross-fetch": "^3.1.
|
|
45
|
+
"cross-fetch": "^3.1.6",
|
|
46
46
|
"ignore": "^5.2.4",
|
|
47
|
-
"isbinaryfile": "^4.0.
|
|
47
|
+
"isbinaryfile": "^4.0.10 <5",
|
|
48
48
|
"js-yaml": "^4.1.0",
|
|
49
49
|
"node-cache": "^5.1.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/js-yaml": "^4.0.5",
|
|
53
|
-
"@types/node": "
|
|
53
|
+
"@types/node": "ts5.0",
|
|
54
54
|
"deep-object-diff": "^1.1.9",
|
|
55
|
-
"typescript": "
|
|
55
|
+
"typescript": "^5.1"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/readme.md
CHANGED
|
@@ -145,8 +145,9 @@ linguist --help
|
|
|
145
145
|
Analyse the language of all files found in a folder.
|
|
146
146
|
- `<folders...>`:
|
|
147
147
|
The folders to analyse (defaults to `./`).
|
|
148
|
-
- `--ignoredFiles <
|
|
149
|
-
A list of
|
|
148
|
+
- `--ignoredFiles <glob1> [[--ignoredFiles] <glob2> ...]`:
|
|
149
|
+
A list of file path globs to ignore.
|
|
150
|
+
When specifying more than one glob, this option can either be called with multiple values given (e.g., `--ignoredFiles *.txt *.json`) or be called multiple times (e.g., `--ignoredFiles *.txt --ignoredFiles *.json`). Both ways are equivalent.
|
|
150
151
|
- `--ignoredLanguages`:
|
|
151
152
|
A list of languages to ignore.
|
|
152
153
|
- `--categories <categories...>`:
|