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

ecmarkup

Package Overview
Dependencies
Maintainers
1
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 2.5.3 to 2.5.4

12

lib/Spec.js

@@ -340,6 +340,12 @@ 'use strict';

if (!copyrightClause) {
let lastAnnex = this.doc.querySelector('emu-annex:last-of-type');
let lastClause = this.doc.querySelector('emu-clause:last-of-type');
const last = lastAnnex || lastClause;
let last;
utils.domWalkBackward(this.doc.body, function (node) {
if (last) return false;
if (node.nodeName === 'EMU-CLAUSE' || node.nodeName === 'EMU-ANNEX') {
last = node;
return false;
}
});
copyrightClause = this.doc.createElement('emu-annex');

@@ -346,0 +352,0 @@ copyrightClause.setAttribute('id', 'sec-copyright-and-software-license');

@@ -31,2 +31,17 @@ 'use strict';

exports.domWalkBackward = function (root, cb) {
const childNodes = root.childNodes;
const childLen = childNodes.length;
for (let i = childLen - 1; i >= 0; i--) {
const node = childNodes[i];
if (node.nodeType !== 1) continue;
const cont = cb(node);
if (cont === false) continue;
exports.domWalkBackward(node, cb);
}
};
exports.textNodesUnder = function (skipList) {

@@ -33,0 +48,0 @@ return function find(node) {

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

@@ -5,0 +5,0 @@ "main": "lib/ecmarkup.js",

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