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

dangerous-html

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dangerous-html - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

dist/default/lib.js

48

package.json
{
"name": "dangerous-html",
"version": "0.1.5",
"version": "0.1.6",
"description": "",
"main": "dist/lib.mjs",
"module": "dist/lib.mjs",
"unpkg": "dist/lib.umd.mjs",
"main": "dist/default/lib.js",
"module": "dist/default/lib.mjs",
"unpkg": "dist/default/lib.umd.mjs",
"exports": {
".": {
"import": "./dist/default/lib.mjs",
"require": "./dist/default/lib.js",
"umd": "./dist/default/lib.umd.js"
},
"./react": {
"import": "./dist/react/lib.mjs",
"require": "./dist/react/lib.js",
"umd": "./dist/react/lib.umd.js"
},
"./vue": {
"import": "./dist/vue/lib.mjs",
"require": "./dist/vue/lib.js",
"umd": "./dist/vue/lib.umd.js"
}
},
"scripts": {
"test": "vite build && cp dist/lib.umd.js example/ && http-server example/",
"build": "yarn build:umd && yarn build:mod",
"build": "yarn build:umd && yarn build:mod && yarn build:react && yarn build:vue",
"build:umd": "vite build",
"build:react": "vite build -c vite.config-react.js",
"build:vue": "vite build -c vite.config-vue.js",
"build:mod": "vite build -c vite.config-mod.js"

@@ -21,8 +40,21 @@ },

"devDependencies": {
"@vitejs/plugin-vue2": "^2.0.0",
"http-server": "^14.1.1",
"vite": "^3.1.8"
"lit": "^2.4.0",
"react": "^18.2.0",
"vite": "^3.1.8",
"vue": "^2.7.0"
},
"dependencies": {
"lit": "^2.4.0"
"peerDependencies": {
"react": "^17.x",
"vue": "^2.x"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"vue": {
"optional": true
}
}
}

6

vite.config-mod.js

@@ -8,6 +8,6 @@ import { resolve } from "path";

lib: {
entry: resolve(__dirname, "src/index.ts"),
entry: resolve(__dirname, "src/embed.ts"),
name: "DangerousHTML",
fileName: "lib",
formats: ["es"],
fileName: "default/lib",
formats: ["es", "cjs"],
},

@@ -14,0 +14,0 @@ rollupOptions: {

@@ -7,8 +7,8 @@ import { resolve } from "path";

lib: {
entry: resolve(__dirname, "src/index.ts"),
entry: resolve(__dirname, "src/embed.ts"),
name: "DangerousHTML",
fileName: "lib",
formats: ["umd", "iife"],
fileName: "default/lib",
formats: ["umd"],
},
},
});
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