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
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 2.3.1 to 2.3.2

6

lib/ml-dom/node/document.js

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

const ml_spec_1 = require("@markuplint/ml-spec");
const selector_1 = require("@markuplint/selector");
const debug_1 = require("../../debug");
const match_selector_1 = require("../../selector/match-selector");
const create_node_1 = require("../helper/create-node");

@@ -2046,3 +2046,3 @@ const debug_2 = require("../helper/debug");

const selector = nodeRule.selector || nodeRule.regexSelector;
const matches = (0, match_selector_1.matchSelector)(selectorTarget, selector);
const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
if (!matches.matched) {

@@ -2087,3 +2087,3 @@ return;

}
const matches = (0, match_selector_1.matchSelector)(selectorTarget, selector);
const matches = (0, selector_1.matchSelector)(selectorTarget, selector);
if (!matches.matched) {

@@ -2090,0 +2090,0 @@ return;

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

import type { Specificity } from '../../selector/selector';
import type { MLDocument } from './document';
import type { MLNode } from './node';
import type { AnyRule } from '@markuplint/ml-config';
import type { Specificity } from '@markuplint/selector';
declare type RuleType = 'rules' | 'nodeRules' | 'childNodeRules';

@@ -6,0 +6,0 @@ declare type MappingLayer = {

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

const tslib_1 = require("tslib");
const selector_1 = require("@markuplint/selector");
const debug_1 = require("../../debug");
const selector_1 = require("../../selector/selector");
const ruleMapperLog = debug_1.log.extend('rule-mapper');

@@ -10,0 +10,0 @@ const ruleMapperNodeLog = ruleMapperLog.extend('node');

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

export default class UnexpectedCallError extends Error {}
export default class UnexpectedCallError extends Error {
}
export declare type Specificity = [number, number, number];
export declare function createSelector(selector: string): Selector;
export declare function compareSpecificity(a: Specificity, b: Specificity): 0 | 1 | -1;
export declare function compareSpecificity(a: Specificity, b: Specificity): 1 | 0 | -1;
declare class Selector {
#private;
constructor(selector: string);
match(el: Element, caller?: ParentNode | null): Specificity | false;
#private;
constructor(selector: string);
match(el: Element, caller?: ParentNode | null): Specificity | false;
}
export {};
interface Location {
line: number;
col: number;
raw: string;
line: number;
col: number;
raw: string;
}
export declare function getLocationFromChars(
searches: string[],
text: string,
currentLine: number,
currentCol: number,
): Location[];
export declare function getLocationFromChars(searches: string[], text: string, currentLine: number, currentCol: number): Location[];
export {};
{
"name": "@markuplint/ml-core",
"version": "2.3.1",
"version": "2.3.2",
"description": "The core module of markuplint",

@@ -31,6 +31,6 @@ "repository": "git@github.com:markuplint/markuplint.git",

"devDependencies": {
"@markuplint/html-parser": "2.2.0",
"@markuplint/html-parser": "2.2.1",
"@types/debug": "^4.1.7"
},
"gitHead": "37080ac1442a4b9a35fa05c97495d29a0342dfc6"
"gitHead": "0c774ce046ebc8a9c494e9884a4bfcd72a66250d"
}

Sorry, the diff of this file is too big to display

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