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

6

lib/ml-dom/tokens/element.d.ts
import { AnonymousNode, Document } from '../';
import { MLDOMAttribute, MLDOMElementCloseTag, MLDOMNode } from './';
import { MLASTElement, MLToken } from '@markuplint/ml-ast';
import { MLDOMAttribute, MLDOMElementCloseTag, MLDOMNode, MLDOMToken } from './';
import { IMLDOMElement } from '../types';
import { MLASTElement } from '@markuplint/ml-ast';
import { RuleConfigValue } from '@markuplint/ml-config';

@@ -13,2 +13,4 @@ export default class MLDOMElement<T extends RuleConfigValue, O = null> extends MLDOMNode<T, O, MLASTElement> implements IMLDOMElement {

readonly closeTag: MLDOMElementCloseTag<T, O> | null;
readonly selfClosingSolidus: MLDOMToken<MLToken>;
readonly endSpace: MLDOMToken<MLToken>;
private _fixedNodeName;

@@ -15,0 +17,0 @@ constructor(astNode: MLASTElement, document: Document<T, O>);

@@ -26,2 +26,4 @@ "use strict";

_this.attributes = astNode.attributes.map(function (attr) { return new _1.MLDOMAttribute(attr); });
_this.selfClosingSolidus = new _1.MLDOMToken(astNode.selfClosingSolidus);
_this.endSpace = new _1.MLDOMToken(astNode.endSpace);
_this.namespaceURI = astNode.namespace;

@@ -35,3 +37,3 @@ _this.isForeignElement = _this.namespaceURI !== 'http://www.w3.org/1999/xhtml';

var attrs = this.attributes.map(function (attr) { return attr.raw; }).join('');
return "<" + this._fixedNodeName + attrs + ">";
return "<" + this._fixedNodeName + attrs + this.selfClosingSolidus.raw + this.endSpace.raw + ">";
},

@@ -38,0 +40,0 @@ enumerable: true,

{
"name": "@markuplint/ml-core",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"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.5",
"@markuplint/ml-ast": "^1.0.0-alpha.6",
"@markuplint/ml-config": "^1.0.0-alpha.5",

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

},
"gitHead": "f5aac1a89a1de8e937caf49a23244e72638c6ca1"
"gitHead": "0094f6679cceb294863f065dfb750621836061d4"
}

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