Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/ml-core

Package Overview
Dependencies
Maintainers
1
Versions
201
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 1.0.0-alpha.5 to 1.0.0-alpha.6

2

lib/create-rule.d.ts

@@ -0,3 +1,3 @@

import { MLRule, MLRuleOptions } from './ml-rule';
import { RuleConfigValue } from '@markuplint/ml-config';
import { MLRule, MLRuleOptions } from './ml-rule';
export declare function createRule<T extends RuleConfigValue, O = null>(options: MLRuleOptions<T, O>): MLRule<T, O>;

@@ -1,6 +0,6 @@

import { Messenger } from '@markuplint/i18n';
import { MLMarkupLanguageParser } from '@markuplint/ml-ast';
import { MLMLSpec } from '@markuplint/ml-spec';
import { RuleConfigValue, VerifiedResult } from '@markuplint/ml-config';
import { MLMLSpec } from '@markuplint/ml-spec';
import { MLRule } from './ml-rule';
import { Messenger } from '@markuplint/i18n';
import Ruleset from './ruleset';

@@ -7,0 +7,0 @@ export declare class MLCore {

@@ -0,8 +1,8 @@

import { AnonymousNode } from './types';
import { MLASTDocument } from '@markuplint/ml-ast';
import { MLDOMComment, MLDOMElement, MLDOMElementCloseTag, MLDOMText } from './tokens';
import { MLRule } from '../';
import { RuleConfigValue } from '@markuplint/ml-config';
import Ruleset from '../ruleset';
import { SpecOM } from '@markuplint/ml-spec';
import { MLRule } from '../';
import Ruleset from '../ruleset';
import { MLDOMComment, MLDOMElement, MLDOMElementCloseTag, MLDOMText } from './tokens';
import { AnonymousNode } from './types';
/**

@@ -9,0 +9,0 @@ * markuplint DOM Document

@@ -38,4 +38,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var tokens_1 = require("./tokens");
var helper_1 = require("./helper");
var tokens_1 = require("./tokens");
/**

@@ -153,3 +153,2 @@ * markuplint DOM Document

};
// tslint:disable-next-line:no-any
MLDOMDocument.prototype.walkOn = function (type, walker) {

@@ -156,0 +155,0 @@ return __awaiter(this, void 0, void 0, function () {

import { MLASTAbstructNode } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import { Document } from '../';
import { MappedNode } from './mapped-nodes';
import { RuleConfigValue } from '@markuplint/ml-config';
export declare function createNode<N extends MLASTAbstructNode, T extends RuleConfigValue, O = null>(astNode: N, document: Document<T, O>): MappedNode<N, T, O>;
import { MLASTAbstructNode } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import MLDOMNode from '../tokens/node';
import { MappedNode } from './mapped-nodes';
import { RuleConfigValue } from '@markuplint/ml-config';
export declare function setNode<A extends MLASTAbstructNode, T extends RuleConfigValue, O = null>(astNode: A, node: MLDOMNode<T, O, A>): void;
export declare function getNode<N extends MLASTAbstructNode, T extends RuleConfigValue, O = null>(astNode: N): MappedNode<N, T, O>;
import { MLASTAbstructNode, MLASTAttr, MLASTComment, MLASTDoctype, MLASTElement, MLASTElementCloseTag, MLASTInvalidNode, MLASTNode, MLASTOmittedElement, MLASTParentNode, MLASTText, MLToken } from '@markuplint/ml-ast/';
import { MLDOMAttribute, MLDOMComment, MLDOMDoctype, MLDOMElement, MLDOMElementCloseTag, MLDOMInvalidNode, MLDOMNode, MLDOMOmittedElement, MLDOMText, MLDOMToken } from '../tokens';
import { RuleConfigValue } from '@markuplint/ml-config';
import { MLDOMAttribute, MLDOMComment, MLDOMDoctype, MLDOMElement, MLDOMElementCloseTag, MLDOMInvalidNode, MLDOMNode, MLDOMOmittedElement, MLDOMText, MLDOMToken } from '../tokens';
export declare type MappedNode<N, T extends RuleConfigValue, O = null> = N extends MLASTElement ? MLDOMElement<T, O> : N extends MLASTElementCloseTag ? MLDOMElementCloseTag<T, O> : N extends MLASTOmittedElement ? MLDOMOmittedElement<T, O> : N extends MLASTParentNode ? (MLDOMElement<T, O> | MLDOMOmittedElement<T, O>) : N extends MLASTComment ? MLDOMComment<T, O> : N extends MLASTText ? MLDOMText<T, O> : N extends MLASTInvalidNode ? MLDOMInvalidNode<T, O> : N extends MLASTDoctype ? MLDOMDoctype<T, O> : N extends MLASTNode ? MLDOMNode<T, O, MLASTNode> : N extends MLASTAbstructNode ? MLDOMNode<T, O, MLASTAbstructNode> : N extends MLASTAttr ? MLDOMAttribute : N extends MLToken ? MLDOMToken<MLToken> : never;

@@ -0,3 +1,3 @@

import { MLDOMElement } from '../tokens';
import { RuleConfigValue } from '@markuplint/ml-config';
import { MLDOMElement } from '../tokens';
export declare class Selector {

@@ -4,0 +4,0 @@ private _rawSelector;

@@ -0,7 +1,7 @@

import { IMLDOMComment } from '../types';
import { MLASTComment } from '@markuplint/ml-ast';
import MLDOMNode from './node';
import { RuleConfigValue } from '@markuplint/ml-config';
import { IMLDOMComment } from '../types';
import MLDOMNode from './node';
export default class MLDOMComment<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTComment> implements IMLDOMComment {
readonly type = "Comment";
}

@@ -0,7 +1,7 @@

import { IMLDOMDoctype } from '../types';
import { MLASTNode } from '@markuplint/ml-ast';
import MLDOMNode from './node';
import { RuleConfigValue } from '@markuplint/ml-config';
import { IMLDOMDoctype } from '../types';
import MLDOMNode from './node';
export default class MLDOMDoctype<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTNode> implements IMLDOMDoctype {
readonly type = "Doctype";
}

@@ -1,7 +0,7 @@

import { MLASTElementCloseTag } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import Document from '../document';
import { IMLDOMElementCloseTag } from '../types';
import { MLASTElementCloseTag } from '@markuplint/ml-ast';
import MLDOMElement from './element';
import MLDOMNode from './node';
import MLDOMElement from './element';
import { RuleConfigValue } from '@markuplint/ml-config';
export default class MLDOMElementCloseTag<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTElementCloseTag> implements IMLDOMElementCloseTag {

@@ -8,0 +8,0 @@ readonly type = "ElementCloseTag";

@@ -19,4 +19,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var node_1 = __importDefault(require("./node"));
var dom_traverser_1 = require("../helper/dom-traverser");
var node_1 = __importDefault(require("./node"));
var MLDOMElementCloseTag = /** @class */ (function (_super) {

@@ -23,0 +23,0 @@ __extends(MLDOMElementCloseTag, _super);

@@ -1,6 +0,6 @@

import { MLASTElement } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import { AnonymousNode, Document } from '../';
import { MLDOMAttribute, MLDOMElementCloseTag, MLDOMNode } from './';
import { IMLDOMElement } from '../types';
import { MLASTElement } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
export default class MLDOMElement<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTElement> implements IMLDOMElement {

@@ -7,0 +7,0 @@ readonly type = "Element";

@@ -16,4 +16,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var _1 = require("./");
var helper_1 = require("../helper");
var _1 = require("./");
var MLDOMElement = /** @class */ (function (_super) {

@@ -20,0 +20,0 @@ __extends(MLDOMElement, _super);

@@ -0,3 +1,3 @@

import MLDOMText from './text';
import { RuleConfigValue } from '@markuplint/ml-config';
import MLDOMText from './text';
export default class MLDOMIndentation<T extends RuleConfigValue, O = null> {

@@ -4,0 +4,0 @@ readonly line: number;

@@ -0,7 +1,7 @@

import { IMLDOMInvalidNode } from '../types';
import { MLASTInvalidNode } from '@markuplint/ml-ast';
import MLDOMNode from './node';
import { RuleConfigValue } from '@markuplint/ml-config';
import { IMLDOMInvalidNode } from '../types';
import MLDOMNode from './node';
export default class MLDOMInvalidNode<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTInvalidNode> implements IMLDOMInvalidNode {
readonly type = "InvalidNode";
}

@@ -0,6 +1,5 @@

import { AnonymousNode, IMLDOMNode, NodeType } from '../types';
import { MLASTAbstructNode } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import { RuleInfo } from '../../';
import Document from '../document';
import { AnonymousNode, NodeType, IMLDOMNode } from '../types';
import MLDOMElement from './element';

@@ -10,2 +9,3 @@ import MLDOMIndentation from './indentation';

import MLDOMToken from './token';
import { RuleInfo } from '../../';
export default abstract class MLDOMNode<T extends RuleConfigValue, O = null, A extends MLASTAbstructNode = MLASTAbstructNode> extends MLDOMToken<A> implements IMLDOMNode {

@@ -12,0 +12,0 @@ readonly type: NodeType;

@@ -1,6 +0,6 @@

import { MLASTOmittedElement } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import Document from '../document';
import { IMLDOMOmittedElement } from '../types';
import { MLASTOmittedElement } from '@markuplint/ml-ast';
import MLDOMNode from './node';
import { RuleConfigValue } from '@markuplint/ml-config';
export default class MLDOMOmittedElement<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTOmittedElement> implements IMLDOMOmittedElement {

@@ -7,0 +7,0 @@ readonly type = "OmittedElement";

@@ -0,7 +1,7 @@

import { Document } from '../';
import { IMLDOMText } from '../types';
import { MLASTText } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';
import { Document } from '../';
import MLDOMIndentation from './indentation';
import MLDOMNode from './node';
import { IMLDOMText } from '../types';
import { RuleConfigValue } from '@markuplint/ml-config';
export default class MLDOMText<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTText> implements IMLDOMText {

@@ -8,0 +8,0 @@ readonly type = "Text";

@@ -0,3 +1,3 @@

import { MLDOMComment, MLDOMDoctype, MLDOMElement, MLDOMElementCloseTag, MLDOMInvalidNode, MLDOMOmittedElement, MLDOMText } from './tokens';
import { RuleConfigValue } from '@markuplint/ml-config';
import { MLDOMComment, MLDOMDoctype, MLDOMElement, MLDOMElementCloseTag, MLDOMInvalidNode, MLDOMOmittedElement, MLDOMText } from './tokens';
export interface IMLDOMDoctype extends IMLDOMNode {

@@ -4,0 +4,0 @@ type: 'Doctype';

@@ -1,5 +0,5 @@

import { Messenger } from '@markuplint/i18n';
import { RuleConfig, RuleConfigValue, RuleInfo, Severity, VerifiedResult } from '@markuplint/ml-config';
import Document from '../ml-dom/document';
import { MLRuleOptions } from './types';
import { Messenger } from '@markuplint/i18n';
export declare class MLRule<T extends RuleConfigValue, O = null> {

@@ -6,0 +6,0 @@ static create<T extends RuleConfigValue, O = null>(options: MLRuleOptions<T, O>): MLRule<T, O>;

@@ -1,4 +0,4 @@

import { Message } from '@markuplint/i18n';
import { Result, RuleConfigValue, RuleInfo, Severity } from '@markuplint/ml-config';
import Document from '../ml-dom/document';
import { Message } from '@markuplint/i18n';
export interface MLRuleOptions<T extends RuleConfigValue, O = null> {

@@ -5,0 +5,0 @@ name: string;

@@ -1,2 +0,2 @@

import { ChildNodeRule, Config, NodeRule, Rules } from '@markuplint/ml-config/';
import { ChildNodeRule, Config, NodeRule, Rules } from '@markuplint/ml-config';
export default class Ruleset {

@@ -3,0 +3,0 @@ readonly rules: Readonly<Rules>;

{
"name": "@markuplint/ml-core",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"description": "The core module of markuplint",

@@ -20,9 +20,9 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/i18n": "^1.0.0-alpha.3",
"@markuplint/ml-ast": "^1.0.0-alpha.3",
"@markuplint/ml-config": "^1.0.0-alpha.3",
"@markuplint/ml-spec": "^1.0.0-alpha.1",
"@markuplint/i18n": "^1.0.0-alpha.4",
"@markuplint/ml-ast": "^1.0.0-alpha.4",
"@markuplint/ml-config": "^1.0.0-alpha.4",
"@markuplint/ml-spec": "^1.0.0-alpha.2",
"css-selector-parser": "^1.3.0"
},
"gitHead": "de677b589bf54651f23d23c7766d113b097053ce"
"gitHead": "a0579c5cf64e6b8a4506b3d398f4e6be5c674706"
}

Sorry, the diff of this file is not supported yet

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