dangerous-html
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"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 | ||
} | ||
} | ||
} |
@@ -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"], | ||
}, | ||
}, | ||
}); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19
326
30101
2
6
4
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/parser@7.26.5(transitive)
+ Added@babel/types@7.26.5(transitive)
+ Added@vue/compiler-sfc@2.7.16(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.5.1(transitive)
+ Addedprettier@2.8.8(transitive)
+ Addedreact@17.0.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedvue@2.7.16(transitive)
- Removedlit@^2.4.0
- Removed@lit-labs/ssr-dom-shim@1.3.0(transitive)
- Removed@lit/reactive-element@1.6.3(transitive)
- Removed@types/trusted-types@2.0.7(transitive)
- Removedlit@2.8.0(transitive)
- Removedlit-element@3.3.3(transitive)
- Removedlit-html@2.8.0(transitive)