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

parse5

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse5 - npm Package Compare versions

Comparing version 3.0.3 to 4.0.0-test

30

lib/index.js

@@ -41,5 +41,27 @@ 'use strict';

// Streaming
exports.ParserStream = require('./parser/parser_stream');
exports.PlainTextConversionStream = require('./parser/plain_text_conversion_stream');
exports.SerializerStream = require('./serializer/serializer_stream');
exports.SAXParser = require('./sax');
// NOTE: streaming API is lazy loadable to enable bundling for platforms
// that are different from Node.js.
// See https://github.com/inikulin/parse5/issues/235.
var streamingAPI = {
ParserStream: './parser/parser_stream',
PlainTextConversionStream: './parser/plain_text_conversion_stream',
SerializerStream: './serializer/serializer_stream',
SAXParser: './sax'
};
Object.keys(streamingAPI).forEach(function (cls) {
Object.defineProperty(exports, cls, {
get: function () {
try {
return require(streamingAPI[cls]);
}
catch (e) {
throw new Error(
cls + ' is supported only for Node.js.' +
'See https://github.com/inikulin/parse5/issues/235 for details.'
);
}
}
});
});

9

package.json
{
"name": "parse5",
"description": "HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.",
"version": "3.0.3",
"version": "4.0.0-test",
"author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)",

@@ -9,2 +9,3 @@ "contributors": "https://github.com/inikulin/parse5/graphs/contributors",

"devDependencies": {
"@types/node": "*",
"del": "^2.0.2",

@@ -48,3 +49,2 @@ "gulp": "^3.9.0",

"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"repository": {

@@ -61,6 +61,3 @@ "type": "git",

"lib"
],
"dependencies": {
"@types/node": "*"
}
]
}
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