UNPKG

4.52 kBJSONView Raw
1{
2 "scripts": {
3 "lint": "xo src/*.js",
4 "format": "npm run format:js && npm run format:md",
5 "format:md": "prettier --write --parser markdown '**/*.md'",
6 "format:js": "prettier --write '{src,demos,scripts,test,website}/*.js'",
7 "commit-amend-build": "scripts/commit-amend-build.sh",
8 "prebuild": "rimraf dist/**",
9 "dev": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -w -c -o dist/purify.js",
10 "build": "cross-env run-p build:umd build:umd:min build:es build:cjs",
11 "build:umd": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f umd -o dist/purify.js",
12 "build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=rollup rollup -c -f umd -o dist/purify.min.js",
13 "build:es": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f es -o dist/purify.es.js",
14 "build:cjs": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f cjs -o dist/purify.cjs.js",
15 "test:jsdom": "cross-env NODE_ENV=test BABEL_ENV=rollup node test/jsdom-node-runner --dot",
16 "test:karma": "cross-env NODE_ENV=test BABEL_ENV=rollup karma start test/karma.conf.js --log-level warn ",
17 "test:ci": "cross-env NODE_ENV=test BABEL_ENV=rollup npm run test:jsdom && npm run test:karma -- --log-level error --reporters dots --single-run --shouldTestOnBrowserStack=\"${TEST_BROWSERSTACK}\" --shouldProbeOnly=\"${TEST_PROBE_ONLY}\"",
18 "test": "cross-env NODE_ENV=test BABEL_ENV=rollup npm run lint && npm run test:jsdom && npm run test:karma -- --browsers Chrome",
19 "types": "npx -p typescript tsc dist/purify.cjs.js dist/purify.es.js --declaration --allowJs --emitDeclarationOnly --outDir dist"
20 },
21 "main": "dist/purify.cjs.js",
22 "module": "dist/purify.es.js",
23 "browser": "dist/purify.js",
24 "files": [
25 "dist"
26 ],
27 "pre-commit": [
28 "lint",
29 "build",
30 "types",
31 "commit-amend-build"
32 ],
33 "xo": {
34 "semicolon": true,
35 "space": 2,
36 "extends": [
37 "prettier"
38 ],
39 "plugins": [
40 "prettier"
41 ],
42 "rules": {
43 "import/no-useless-path-segments": 0,
44 "unicorn/prefer-optional-catch-binding": 0,
45 "unicorn/prefer-node-remove": 0,
46 "prettier/prettier": [
47 "error",
48 {
49 "trailingComma": "es5",
50 "singleQuote": true
51 }
52 ],
53 "camelcase": [
54 "error",
55 {
56 "properties": "never"
57 }
58 ]
59 },
60 "globals": [
61 "window",
62 "VERSION"
63 ]
64 },
65 "devDependencies": {
66 "@babel/core": "^7.17.8",
67 "@babel/preset-env": "^7.16.11",
68 "@rollup/plugin-babel": "^5.3.1",
69 "@rollup/plugin-commonjs": "^21.0.3",
70 "@rollup/plugin-node-resolve": "^13.1.3",
71 "@rollup/plugin-replace": "^4.0.0",
72 "@types/dompurify": "^2.3.3",
73 "@types/estree": "^1.0.0",
74 "cross-env": "^7.0.3",
75 "eslint-config-prettier": "^8.5.0",
76 "eslint-plugin-prettier": "^4.0.0",
77 "jquery": "^3.6.0",
78 "jsdom": "^19.0.0",
79 "karma": "^6.3.17",
80 "karma-browserstack-launcher": "^1.5.1",
81 "karma-chrome-launcher": "^3.1.0",
82 "karma-firefox-launcher": "^2.1.2",
83 "karma-qunit": "^4.1.2",
84 "karma-rollup-preprocessor": "^7.0.8",
85 "lodash.sample": "^4.2.1",
86 "minimist": "^1.2.6",
87 "npm-run-all": "^4.1.5",
88 "pre-commit": "^1.2.2",
89 "prettier": "^2.5.1",
90 "qunit": "^2.4.1",
91 "qunit-tap": "^1.5.0",
92 "rimraf": "^3.0.2",
93 "rollup": "^2.70.1",
94 "rollup-plugin-includepaths": "^0.2.3",
95 "rollup-plugin-terser": "^7.0.2",
96 "xo": "^0.48.0"
97 },
98 "resolutions": {
99 "natives": "1.1.6"
100 },
101 "name": "dompurify",
102 "description": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not.",
103 "version": "2.3.12",
104 "directories": {
105 "test": "test"
106 },
107 "repository": {
108 "type": "git",
109 "url": "git://github.com/cure53/DOMPurify.git"
110 },
111 "keywords": [
112 "dom",
113 "xss",
114 "html",
115 "svg",
116 "mathml",
117 "security",
118 "secure",
119 "sanitizer",
120 "sanitize",
121 "filter",
122 "purify"
123 ],
124 "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)",
125 "license": "(MPL-2.0 OR Apache-2.0)",
126 "bugs": {
127 "url": "https://github.com/cure53/DOMPurify/issues"
128 },
129 "homepage": "https://github.com/cure53/DOMPurify"
130}