Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mojojs/dom

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mojojs/dom - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

lib/parser.js

@@ -10,3 +10,3 @@ import { BLOCK, CLOSE, EMPTY, END, NO_MORE_CONTENT, PHRASING, RAW, RCDATA, SCOPE } from './constants.js';

import { SafeString, escapeRegExp, stickyMatch, xmlUnescape } from '@mojojs/util';
const ATTR_RE = new RegExp(`([^<>=\\s/]+|/)(?:\\s*=\\s*(?:(?<quote>["'])(.*?)\\k<quote>|([^>\\s]*)))?\\s*`, 'ys');
const ATTR_RE = new RegExp(`([^<>=\\s/0-9.\\-][^<>=\\s/]*|/)(?:\\s*=\\s*(?:(?<quote>["'])(.*?)\\k<quote>|([^>\\s]*)))?\\s*`, 'ys');
const TEXT_RE = new RegExp(`([^<]+)`, 'ys');

@@ -17,3 +17,3 @@ const DOCTYPE_RE = new RegExp(`<!DOCTYPE\\s*(\\w+(?:(?:\\s+\\w+)?(?:\\s+(?:"[^"]*"|'[^']*'))+)?(?:\\s+\\[.+?\\])?\\s*)>`, 'ysi');

const PI_RE = new RegExp(`<\\?(.*?)\\?>`, 'ys');
const TAG_RE = new RegExp(`<\\s*(\\/)?\\s*([^<>\\s]+)\\s*((?:${ATTR_RE.source})*)>`, 'ys');
const TAG_RE = new RegExp(`<\\s*(\\/)?\\s*([^<>\\s/0-9.\\-][^<>\\s/]*)\\s*((?:${ATTR_RE.source})*?)>`, 'ys');
const RUNAWAY_RE = new RegExp(`<`, 'y');

@@ -20,0 +20,0 @@ export class Parser {

{
"name": "@mojojs/dom",
"version": "2.0.0",
"version": "2.0.1",
"description": "A fast and minimalistic HTML/XML DOM parser with CSS selectors",

@@ -5,0 +5,0 @@ "keywords": [

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