Socket
Socket
Sign inDemoInstall

@tryghost/kg-clean-basic-html

Package Overview
Dependencies
Maintainers
29
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/kg-clean-basic-html - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

4

cjs/clean-basic-html.js

@@ -14,6 +14,5 @@ 'use strict';

/* global DOMParser, window */
/**
* Parses an html string and returns a cleaned version
* @param {string} html
* @param {string} html
* @param {Object} _options

@@ -33,2 +32,3 @@ * @param {boolean} [_options.allowBr] - if true, <br> tags will be kept

if (!Parser) {
// eslint-disable-next-line ghost/ghost-custom/no-native-error
throw new Error('cleanBasicHtml() must be passed a `createDocument` function as an option when used in a non-browser environment');

@@ -35,0 +35,0 @@ }

@@ -12,6 +12,5 @@ /**

/* global DOMParser, window */
/**
* Parses an html string and returns a cleaned version
* @param {string} html
* @param {string} html
* @param {Object} _options

@@ -29,2 +28,3 @@ * @param {boolean} [_options.allowBr] - if true, <br> tags will be kept

if (!Parser) {
// eslint-disable-next-line ghost/ghost-custom/no-native-error
throw new Error('cleanBasicHtml() must be passed a `createDocument` function as an option when used in a non-browser environment');

@@ -31,0 +31,0 @@ }

@@ -12,6 +12,5 @@ /**

/* global DOMParser, window */
/**
* Parses an html string and returns a cleaned version
* @param {string} html
* @param {string} html
* @param {Object} _options

@@ -31,2 +30,3 @@ * @param {boolean} [_options.allowBr] - if true, <br> tags will be kept

if (!Parser) {
// eslint-disable-next-line ghost/ghost-custom/no-native-error
throw new Error('cleanBasicHtml() must be passed a `createDocument` function as an option when used in a non-browser environment');

@@ -33,0 +33,0 @@ }

{
"name": "@tryghost/kg-clean-basic-html",
"version": "4.0.1",
"version": "4.0.2",
"repository": "https://github.com/TryGhost/Koenig/tree/master/packages/kg-clean-basic-html",

@@ -33,4 +33,4 @@ "author": "Ghost Foundation",

"devDependencies": {
"@babel/core": "7.23.6",
"@babel/preset-env": "7.23.6",
"@babel/core": "7.23.7",
"@babel/preset-env": "7.23.7",
"@rollup/plugin-babel": "6.0.4",

@@ -40,7 +40,7 @@ "c8": "8.0.1",

"mocha": "10.2.0",
"rollup": "2.79.1",
"rollup": "4.9.2",
"should": "13.2.3",
"sinon": "17.0.1"
},
"gitHead": "e115cc9c15eded078e81799e7b9a88e56e9cc130"
"gitHead": "1f8ced86f538ecbd1394b52135d30ecd71a4ad96"
}

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