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 1.0.0-alpha.8 to 1.0.0-alpha.9

3

lib/ml-dom/document.d.ts
import { AnonymousNode } from './types';
import { MLASTDocument } from '@markuplint/ml-ast';
import { MLDOMComment, MLDOMElement, MLDOMElementCloseTag, MLDOMText } from './tokens';
import { MLDOMComment, MLDOMDoctype, MLDOMElement, MLDOMElementCloseTag, MLDOMText } from './tokens';
import { MLRule } from '../';

@@ -34,2 +34,3 @@ import { RuleConfigValue } from '@markuplint/ml-config';

constructor(ast: MLASTDocument, specs: SpecOM, ruleset: Ruleset);
readonly doctype: MLDOMDoctype<T, O> | null;
walk(walker: Walker<T, O>): Promise<void>;

@@ -36,0 +37,0 @@ walkOn(type: 'Element', walker: Walker<T, O, MLDOMElement<T, O>>): Promise<void>;

@@ -130,2 +130,15 @@ "use strict";

}
Object.defineProperty(MLDOMDocument.prototype, "doctype", {
get: function () {
for (var _i = 0, _a = this.nodeList; _i < _a.length; _i++) {
var node = _a[_i];
if (node instanceof tokens_1.MLDOMDoctype) {
return node;
}
}
return null;
},
enumerable: true,
configurable: true
});
MLDOMDocument.prototype.walk = function (walker) {

@@ -132,0 +145,0 @@ return __awaiter(this, void 0, void 0, function () {

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

import { MLASTDoctype, MLASTNode } from '@markuplint/ml-ast';
import { Document } from '..';
import { IMLDOMDoctype } from '../types';
import { MLASTNode } from '@markuplint/ml-ast';
import MLDOMNode from './node';

@@ -7,2 +8,9 @@ import { RuleConfigValue } from '@markuplint/ml-config';

readonly type = "Doctype";
private _name;
private _publicId;
private _systemId;
constructor(astNode: MLASTDoctype, document: Document<T, O>);
readonly name: string;
readonly publicId: string;
readonly systemId: string;
}

@@ -22,9 +22,33 @@ "use strict";

__extends(MLDOMDoctype, _super);
function MLDOMDoctype() {
var _this = _super !== null && _super.apply(this, arguments) || this;
function MLDOMDoctype(astNode, document) {
var _this = _super.call(this, astNode, document) || this;
_this.type = 'Doctype';
_this._name = astNode.name;
_this._publicId = astNode.publicId;
_this._systemId = astNode.systemId;
return _this;
}
Object.defineProperty(MLDOMDoctype.prototype, "name", {
get: function () {
return this._name;
},
enumerable: true,
configurable: true
});
Object.defineProperty(MLDOMDoctype.prototype, "publicId", {
get: function () {
return this._publicId;
},
enumerable: true,
configurable: true
});
Object.defineProperty(MLDOMDoctype.prototype, "systemId", {
get: function () {
return this._systemId;
},
enumerable: true,
configurable: true
});
return MLDOMDoctype;
}(node_1.default));
exports.default = MLDOMDoctype;
{
"name": "@markuplint/ml-core",
"version": "1.0.0-alpha.8",
"version": "1.0.0-alpha.9",
"description": "The core module of markuplint",

@@ -21,3 +21,3 @@ "repository": "git@github.com:markuplint/markuplint.git",

"@markuplint/i18n": "^1.0.0-alpha.5",
"@markuplint/ml-ast": "^1.0.0-alpha.6",
"@markuplint/ml-ast": "^1.0.0-alpha.7",
"@markuplint/ml-config": "^1.0.0-alpha.5",

@@ -27,3 +27,3 @@ "@markuplint/ml-spec": "^1.0.0-alpha.3",

},
"gitHead": "0094f6679cceb294863f065dfb750621836061d4"
"gitHead": "9e77270cab9fedc1ee16dbaa59ffbe6e65fb6a3e"
}

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