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

react-htmlcontent

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-htmlcontent - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

dist/index.amd.js

7

package.json
{
"name": "react-htmlcontent",
"version": "2.0.1",
"version": "2.0.2",
"description": "React HTMLContent Component",

@@ -54,6 +54,9 @@ "repository": {

"dependencies": {
"jsdom": "^15.1.1",
"dompurify": "1.0.11",
"himalaya": "^1.1.0"
},
"main": "dist/index.js",
"main": "dist/index.cjs.js",
"browser": "dist/index.amd.js",
"module": "dist/index.es.js",
"engines": {

@@ -60,0 +63,0 @@ "npm": "^3.0.0"

var path = require('path')
module.exports = {
mode: 'production',
entry: './src/index.js',
output: {
path: path.resolve('dist'),
filename: 'index.js',
libraryTarget: 'commonjs2',
module.exports = [
{
mode: 'production',
target: 'node',
entry: './src/index.js',
externals: ['jsdom'],
output: {
path: path.resolve('dist'),
filename: 'index.cjs.js',
libraryTarget: 'commonjs2',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
use: 'babel-loader',
},
],
},
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
use: 'babel-loader',
},
],
{
mode: 'production',
target: 'web',
entry: './src/index.js',
externals: ['jsdom'],
output: {
path: path.resolve('dist'),
filename: 'index.amd.js',
libraryTarget: 'amd',
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
use: 'babel-loader',
},
],
},
},
}
]
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