New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/ml-core

Package Overview
Dependencies
Maintainers
1
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/ml-core - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1-dev.1

15

lib/test/index.d.ts

@@ -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

4

lib/test/index.js
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc