@cspell/filetypes 9.5.0 → 9.6.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.
- package/dist/definitions.js +4 -2
- package/dist/filetypes.d.ts +2 -1
- package/dist/filetypes.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/definitions.js
CHANGED
|
@@ -11,6 +11,7 @@ export const definitions = [
|
|
|
11
11
|
{ id: 'cache_files', extensions: [], filenames: ['.DS_Store', '.cspellcache', '.eslintcache'] },
|
|
12
12
|
{ id: 'clojure', extensions: ['.clj', '.cljc', '.cljs', '.cljx', '.clojure', '.edn'] },
|
|
13
13
|
{ id: 'cmake', extensions: ['.cmake'], filenames: ['CMakeLists.txt'] },
|
|
14
|
+
{ id: 'codeowners', extensions: [], filenames: ['codeowners'] },
|
|
14
15
|
{ id: 'coffeescript', extensions: ['.coffee', '.cson', '.iced'] },
|
|
15
16
|
{
|
|
16
17
|
id: 'cpp',
|
|
@@ -71,13 +72,13 @@ export const definitions = [
|
|
|
71
72
|
{ id: 'haxe', extensions: ['.hx'] },
|
|
72
73
|
{ id: 'hlsl', extensions: ['.cginc', '.compute', '.fx', '.fxh', '.hlsl', '.hlsli', '.psh', '.vsh'] },
|
|
73
74
|
{ id: 'html', extensions: ['.asp', '.aspx', '.ejs', '.htm', '.html', '.jshtm', '.jsp', '.mdoc', '.rhtml', '.shtml', '.volt', '.vue', '.xht', '.xhtml'] },
|
|
74
|
-
{ id: 'ignore', extensions: ['.git-blame-ignore-revs', '.gitignore', '.gitignore_global', '.npmignore'], filenames: ['
|
|
75
|
+
{ id: 'ignore', extensions: ['.git-blame-ignore-revs', '.gitignore', '.gitignore_global', '.npmignore'], filenames: ['.*ignore'] },
|
|
75
76
|
{ id: 'ini', extensions: ['.conf', '.ini'] },
|
|
76
77
|
{ id: 'jade', extensions: ['.jade', '.pug'] },
|
|
77
78
|
{ id: 'java', extensions: ['.jav', '.java'] },
|
|
78
79
|
{ id: 'javascript', extensions: ['.cjs', '.es6', '.js', '.mjs', '.pac'], filenames: ['jakefile'] },
|
|
79
80
|
{ id: 'javascriptreact', extensions: ['.jsx'] },
|
|
80
|
-
{ id: 'jinja', extensions: ['.jinja'] },
|
|
81
|
+
{ id: 'jinja', extensions: ['.j2', '.jinja', '.jinja2'] },
|
|
81
82
|
{
|
|
82
83
|
id: 'json',
|
|
83
84
|
extensions: [
|
|
@@ -181,6 +182,7 @@ export const definitions = [
|
|
|
181
182
|
extensions: ['.cfg', '.conf', '.directory', '.editorconfig', '.gitattributes', '.gitconfig', '.gitmodules', '.npmrc', '.properties', '.repo'],
|
|
182
183
|
filenames: ['.env', 'gitconfig'],
|
|
183
184
|
},
|
|
185
|
+
{ id: 'protobuf', extensions: ['.proto', '.txtpb', '.textproto', '.textpb', '.pbtxt'] },
|
|
184
186
|
{ id: 'puppet', extensions: ['.puppet'] },
|
|
185
187
|
{ id: 'purescript', extensions: ['.purs'] },
|
|
186
188
|
{ id: 'python', extensions: ['.cpy', '.gyp', '.gypi', '.ipy', '.py', '.pyi', '.pyt', '.pyw', '.rpy'], filenames: ['SConscript', 'SConstruct'] },
|
package/dist/filetypes.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { FileTypeId } from './types.js';
|
|
1
|
+
import type { FileTypeDefinitions, FileTypeId } from './types.js';
|
|
2
2
|
export declare const binaryLanguages: Set<string>;
|
|
3
3
|
export declare const generatedFiles: Set<string>;
|
|
4
4
|
export declare const languageIds: FileTypeId[];
|
|
5
|
+
export declare const fileTypeDefinitions: FileTypeDefinitions;
|
|
5
6
|
/**
|
|
6
7
|
* Checks to see if a file type is considered to be a binary file type.
|
|
7
8
|
* @param ext - the file extension to check
|
package/dist/filetypes.js
CHANGED
|
@@ -13,6 +13,7 @@ export const generatedFiles = new Set([
|
|
|
13
13
|
'log',
|
|
14
14
|
]);
|
|
15
15
|
export const languageIds = definitions.map(({ id }) => id);
|
|
16
|
+
export const fileTypeDefinitions = definitions;
|
|
16
17
|
const mapExtensionToSetOfLanguageIds = buildLanguageExtensionMapSet(definitions);
|
|
17
18
|
const mapExtensionToLanguageIds = buildExtensionToLanguageIdMap(mapExtensionToSetOfLanguageIds);
|
|
18
19
|
const idsWithRegExp = definitions.map(defToRegExp).filter((f) => !!f);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { findMatchingFileTypes as findMatchingFileTypes, getFileTypesForExt, isBinaryExt, isBinaryFile, isBinaryFileType, isFileTypeGenerated, isGeneratedExt, isGeneratedFile, } from './filetypes.js';
|
|
1
|
+
export { fileTypeDefinitions, findMatchingFileTypes as findMatchingFileTypes, getFileTypesForExt, isBinaryExt, isBinaryFile, isBinaryFileType, isFileTypeGenerated, isGeneratedExt, isGeneratedFile, } from './filetypes.js';
|
|
2
2
|
export type { FileTypeId } from './types.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { findMatchingFileTypes as findMatchingFileTypes, getFileTypesForExt, isBinaryExt, isBinaryFile, isBinaryFileType, isFileTypeGenerated, isGeneratedExt, isGeneratedFile, } from './filetypes.js';
|
|
1
|
+
export { fileTypeDefinitions, findMatchingFileTypes as findMatchingFileTypes, getFileTypesForExt, isBinaryExt, isBinaryFile, isBinaryFileType, isFileTypeGenerated, isGeneratedExt, isGeneratedFile, } from './filetypes.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "9.
|
|
7
|
+
"version": "9.6.1",
|
|
8
8
|
"description": "Library to determine file types based upon the file name.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"cspell",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=20"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "666fb79096d25c53af9519cad07030e7aca597e1"
|
|
55
55
|
}
|