@markuplint/file-resolver
Advanced tools
Comparing version 4.0.0-dev.10 to 4.0.0-dev.12
@@ -21,2 +21,3 @@ import path from 'node:path'; | ||
}, | ||
searchStrategy: 'project', | ||
}); | ||
@@ -23,0 +24,0 @@ export async function search(filePath, cacheClear) { |
import type { MLFile } from './ml-file/index.js'; | ||
import type { MLMarkupLanguageParser, ParserOptions } from '@markuplint/ml-ast'; | ||
import type { MLMarkupLanguageParser, MLParser, ParserOptions } from '@markuplint/ml-ast'; | ||
import type { ParserConfig } from '@markuplint/ml-config'; | ||
export declare function resolveParser(file: Readonly<MLFile>, parserConfig?: ParserConfig, parserOptions?: ParserOptions): Promise<{ | ||
parserModName: string; | ||
parser: MLMarkupLanguageParser; | ||
parser: MLParser | MLMarkupLanguageParser; | ||
parserOptions: ParserOptions; | ||
matched: boolean; | ||
}>; |
@@ -37,4 +37,8 @@ import path from 'node:path'; | ||
} | ||
const parser = await import(parserModName); | ||
return parser; | ||
const parserMod = await import(parserModName); | ||
// TODO: To be dropped in v5 | ||
if (!('parser' in parserMod)) { | ||
return parserMod; | ||
} | ||
return parserMod.parser; | ||
} |
{ | ||
"name": "@markuplint/file-resolver", | ||
"version": "4.0.0-dev.10+b28398ab", | ||
"version": "4.0.0-dev.12+2275fbeb0", | ||
"description": "The file resolver of markuplint", | ||
@@ -27,14 +27,14 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"devDependencies": { | ||
"@types/node": "20.10.4" | ||
"@types/node": "20.11.5" | ||
}, | ||
"dependencies": { | ||
"@markuplint/html-parser": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/ml-ast": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/ml-config": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/ml-core": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/ml-spec": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/parser-utils": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/selector": "4.0.0-dev.10+b28398ab", | ||
"@markuplint/shared": "4.0.0-dev.10+b28398ab", | ||
"cosmiconfig": "^8.3.6", | ||
"@markuplint/html-parser": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/ml-ast": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/ml-config": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/ml-core": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/ml-spec": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/parser-utils": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/selector": "4.0.0-dev.12+2275fbeb0", | ||
"@markuplint/shared": "4.0.0-dev.12+2275fbeb0", | ||
"cosmiconfig": "^9.0.0", | ||
"debug": "^4.3.4", | ||
@@ -46,3 +46,3 @@ "glob": "^10.3.6", | ||
}, | ||
"gitHead": "b28398ab9c8f0ad790f2915ad5da8f3a80e9b8d6" | ||
"gitHead": "2275fbeb053605b636f080f4fafd7cd4fc57a9a3" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
40742
1103
+ Addedcosmiconfig@9.0.0(transitive)
+ Addedenv-paths@2.2.1(transitive)
- Removedcosmiconfig@8.3.6(transitive)
- Removedpath-type@4.0.0(transitive)
Updatedcosmiconfig@^9.0.0