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

ecmarkup

Package Overview
Dependencies
Maintainers
6
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ecmarkup - npm Package Compare versions

Comparing version 14.1.3 to 15.0.0

entities-processed.json

12

lib/formatter/text.js

@@ -5,2 +5,3 @@ "use strict";

const line_builder_1 = require("./line-builder");
const entities = require('../../entities-processed.json');
function printText(text, indent) {

@@ -11,2 +12,13 @@ const output = new line_builder_1.LineBuilder(indent);

}
text = text.replace(/&[a-zA-Z0-9]+;?/g, m => {
// entities[m] is null if the entity expands to '&', '<', or a string which has blank/control/etc characters
if ({}.hasOwnProperty.call(entities, m) && entities[m] !== null) {
return entities[m];
}
const lower = m.toLowerCase();
if (lower === '&le;' || lower === '&amp;') {
return lower;
}
return m;
});
const leadingSpace = text[0] === ' ' || text[0] === '\t';

@@ -13,0 +25,0 @@ const trailingSpace = text[text.length - 1] === ' ' || text[text.length - 1] === '\t';

4

lib/lint/collect-algorithm-diagnostics.js

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

const for_each_element_1 = require("./rules/for-each-element");
const step_attributes_1 = require("./rules/step-attributes");
const variable_use_def_1 = require("./rules/variable-use-def");
const algorithmRules = [

@@ -16,2 +18,3 @@ algorithm_line_style_1.default,

for_each_element_1.default,
step_attributes_1.default,
];

@@ -67,2 +70,3 @@ function composeObservers(...observers) {

(0, ecmarkdown_1.visit)(tree, observer);
(0, variable_use_def_1.checkVariableUsage)(algorithm.element, tree.contents, reporter);
}

@@ -69,0 +73,0 @@ algorithm.tree = tree;

8

lib/lint/rules/algorithm-step-labels.js

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

if (idAttr != null && !/^step-/.test(idAttr.value)) {
const itemSource = algorithmSource.slice(node.location.start.offset, node.location.end.offset);
const offset = itemSource.match(/^\s*\d+\. \[ *id *= *"/)[0].length;
const itemSource = algorithmSource.slice(idAttr.location.start.offset, idAttr.location.end.offset);
const offset = itemSource.match(/^id *= *"/)[0].length;
report({
ruleId,
line: node.location.start.line,
column: node.location.start.column + offset,
line: idAttr.location.start.line,
column: idAttr.location.start.column + offset,
message: `step labels should start with "step-"`,

@@ -23,0 +23,0 @@ });

{
"name": "ecmarkup",
"version": "14.1.3",
"version": "15.0.0",
"description": "Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.",

@@ -30,3 +30,4 @@ "main": "lib/ecmarkup.js",

"/css",
"/boilerplate"
"/boilerplate",
"/entities-processed.json"
],

@@ -51,3 +52,3 @@ "repository": "tc39/ecmarkup",

"dedent-js": "^1.0.1",
"ecmarkdown": "^7.1.0",
"ecmarkdown": "^7.2.0",
"eslint-formatter-codeframe": "^7.32.1",

@@ -54,0 +55,0 @@ "fast-glob": "^3.2.7",

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