@markuplint/ml-core
Advanced tools
Comparing version 4.4.0 to 4.4.1-dev.1
@@ -1,5 +0,8 @@ | ||
import type { MLParser } from '@markuplint/ml-ast'; | ||
import type { MLElement } from '../ml-dom/node/element.js'; | ||
import type { MLNode } from '../ml-dom/node/node.js'; | ||
import type { MLToken } from '../ml-dom/token/token.js'; | ||
import type { MLASTNode, MLASTToken, MLParser } from '@markuplint/ml-ast'; | ||
import type { Config, PlainData, RuleConfigValue } from '@markuplint/ml-config'; | ||
import type { ExtendedSpec, MLMLSpec } from '@markuplint/ml-spec'; | ||
import { Document } from '../ml-dom/index.js'; | ||
import { MLDocument } from '../ml-dom/node/document.js'; | ||
export type CreateTestOptions = { | ||
@@ -12,6 +15,6 @@ readonly config?: Config; | ||
}; | ||
export declare function createTestDocument<T extends RuleConfigValue = any, O extends PlainData = any>(sourceCode: string, options?: CreateTestOptions): Document<T, O>; | ||
export declare function createTestNodeList(sourceCode: string, options?: CreateTestOptions): readonly import("packages/@markuplint/ml-core/src/ml-dom/node/node.js").MLNode<any, any, import("@markuplint/ml-ast").MLASTNode>[]; | ||
export declare function createTestTokenList(sourceCode: string, options?: CreateTestOptions): readonly import("packages/@markuplint/ml-core/src/ml-dom/token/token.js").MLToken<import("@markuplint/ml-ast").MLASTToken>[]; | ||
export declare function createTestElement(sourceCode: string, options?: CreateTestOptions): import("packages/@markuplint/ml-core/src/ml-dom/node/element.js").MLElement<any, any>; | ||
export declare function createTestDocument<T extends RuleConfigValue = any, O extends PlainData = any>(sourceCode: string, options?: CreateTestOptions): MLDocument<T, O>; | ||
export declare function createTestNodeList(sourceCode: string, options?: CreateTestOptions): readonly MLNode<any, any, MLASTNode>[]; | ||
export declare function createTestTokenList(sourceCode: string, options?: CreateTestOptions): readonly MLToken<MLASTToken>[]; | ||
export declare function createTestElement(sourceCode: string, options?: CreateTestOptions): MLElement<any, any>; | ||
/** | ||
@@ -18,0 +21,0 @@ * for test suite |
import { parser } from '@markuplint/html-parser'; | ||
import spec from '@markuplint/html-spec'; | ||
import { convertRuleset } from '../convert-ruleset.js'; | ||
import { Document } from '../ml-dom/index.js'; | ||
import { MLDocument } from '../ml-dom/node/document.js'; | ||
export function createTestDocument(sourceCode, options) { | ||
@@ -12,3 +12,3 @@ const ast = options?.parser | ||
const ruleset = convertRuleset(options?.config); | ||
const document = new Document(ast, ruleset, [options?.specs ?? {}, {}]); | ||
const document = new MLDocument(ast, ruleset, [options?.specs ?? {}, {}]); | ||
return document; | ||
@@ -15,0 +15,0 @@ } |
{ | ||
"name": "@markuplint/ml-core", | ||
"version": "4.4.0", | ||
"version": "4.4.1-dev.1+98cb4470a", | ||
"description": "The core module of markuplint", | ||
@@ -31,11 +31,11 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/config-presets": "4.2.0", | ||
"@markuplint/html-parser": "4.3.0", | ||
"@markuplint/html-spec": "4.4.0", | ||
"@markuplint/i18n": "4.2.0", | ||
"@markuplint/ml-ast": "4.1.0", | ||
"@markuplint/ml-config": "4.3.0", | ||
"@markuplint/ml-spec": "4.2.0", | ||
"@markuplint/parser-utils": "4.3.0", | ||
"@markuplint/selector": "4.3.0", | ||
"@markuplint/config-presets": "4.2.1-dev.1+98cb4470a", | ||
"@markuplint/html-parser": "4.3.1-dev.1+98cb4470a", | ||
"@markuplint/html-spec": "4.4.1-dev.1+98cb4470a", | ||
"@markuplint/i18n": "4.2.1-dev.1+98cb4470a", | ||
"@markuplint/ml-ast": "4.1.1-dev.1+98cb4470a", | ||
"@markuplint/ml-config": "4.3.1-dev.1+98cb4470a", | ||
"@markuplint/ml-spec": "4.2.1-dev.1+98cb4470a", | ||
"@markuplint/parser-utils": "4.3.1-dev.1+98cb4470a", | ||
"@markuplint/selector": "4.3.1-dev.1+98cb4470a", | ||
"@types/debug": "4.1.12", | ||
@@ -46,3 +46,3 @@ "debug": "4.3.4", | ||
}, | ||
"gitHead": "fe251a0257345255ee887dd2302b889ac32a22a5" | ||
"gitHead": "98cb4470ad994275f52b0c3919f8d27dda8c38bc" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
423674
13110
2
1
- Removed@markuplint/config-presets@4.2.0(transitive)
- Removed@markuplint/html-parser@4.3.0(transitive)
- Removed@markuplint/html-spec@4.4.0(transitive)
- Removed@markuplint/i18n@4.2.0(transitive)
- Removed@markuplint/ml-ast@4.1.0(transitive)
- Removed@markuplint/ml-config@4.3.0(transitive)
- Removed@markuplint/ml-spec@4.2.0(transitive)
- Removed@markuplint/parser-utils@4.3.0(transitive)
- Removed@markuplint/selector@4.3.0(transitive)
- Removed@markuplint/shared@4.1.0(transitive)
- Removed@markuplint/types@4.1.0(transitive)
- Removed@types/css-tree@2.3.7(transitive)
- Removed@types/mustache@4.2.5(transitive)
- Removed@types/uuid@9.0.8(transitive)
- Removed@types/whatwg-mimetype@3.0.2(transitive)
- Removedacorn@8.14.0(transitive)
- Removedacorn-jsx@5.3.2(transitive)
- Removedbcp-47@2.1.0(transitive)
- Removedcss-tree@2.3.1(transitive)
- Removedcssesc@3.0.0(transitive)
- Removeddeepmerge@4.3.1(transitive)
- Removeddom-accessibility-api@0.6.3(transitive)
- Removedentities@4.5.0(transitive)
- Removedeslint-visitor-keys@4.2.0(transitive)
- Removedespree@10.0.1(transitive)
- Removedhtml-entities@2.5.2(transitive)
- Removedis-alphabetical@2.0.1(transitive)
- Removedis-alphanumerical@2.0.1(transitive)
- Removedis-decimal@2.0.1(transitive)
- Removedleven@4.0.0(transitive)
- Removedmdn-data@2.0.30(transitive)
- Removedmustache@4.2.0(transitive)
- Removedparse5@7.1.2(transitive)
- Removedpostcss-selector-parser@6.0.16(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@9.0.1(transitive)
- Removedwhatwg-mimetype@4.0.0(transitive)