UNPKG

4.37 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 },
20 "main": "dist/purify.cjs.js",
21 "module": "dist/purify.es.js",
22 "browser": "dist/purify.js",
23 "files": [
24 "dist"
25 ],
26 "pre-commit": [
27 "lint",
28 "build",
29 "commit-amend-build"
30 ],
31 "xo": {
32 "semicolon": true,
33 "space": 2,
34 "extends": [
35 "prettier"
36 ],
37 "plugins": [
38 "prettier"
39 ],
40 "rules": {
41 "import/no-useless-path-segments": 0,
42 "unicorn/prefer-optional-catch-binding": 0,
43 "unicorn/prefer-node-remove": 0,
44 "prettier/prettier": [
45 "error",
46 {
47 "trailingComma": "es5",
48 "singleQuote": true
49 }
50 ],
51 "camelcase": [
52 "error",
53 {
54 "properties": "never"
55 }
56 ]
57 },
58 "globals": [
59 "window",
60 "VERSION"
61 ]
62 },
63 "devDependencies": {
64 "@babel/core": "^7.17.8",
65 "@babel/preset-env": "^7.16.11",
66 "@rollup/plugin-babel": "^5.3.1",
67 "@rollup/plugin-commonjs": "^21.0.3",
68 "@rollup/plugin-node-resolve": "^13.1.3",
69 "@rollup/plugin-replace": "^4.0.0",
70 "@types/dompurify": "^2.3.3",
71 "@types/estree": "^1.0.0",
72 "cross-env": "^7.0.3",
73 "eslint-config-prettier": "^8.5.0",
74 "eslint-plugin-prettier": "^4.0.0",
75 "jquery": "^3.6.0",
76 "jsdom": "^19.0.0",
77 "karma": "^6.3.17",
78 "karma-browserstack-launcher": "^1.5.1",
79 "karma-chrome-launcher": "^3.1.0",
80 "karma-firefox-launcher": "^2.1.2",
81 "karma-qunit": "^4.1.2",
82 "karma-rollup-preprocessor": "^7.0.8",
83 "lodash.sample": "^4.2.1",
84 "minimist": "^1.2.6",
85 "npm-run-all": "^4.1.5",
86 "pre-commit": "^1.2.2",
87 "prettier": "^2.5.1",
88 "qunit": "^2.4.1",
89 "qunit-tap": "^1.5.0",
90 "rimraf": "^3.0.2",
91 "rollup": "^2.70.1",
92 "rollup-plugin-includepaths": "^0.2.3",
93 "rollup-plugin-terser": "^7.0.2",
94 "xo": "^0.48.0"
95 },
96 "resolutions": {
97 "natives": "1.1.6"
98 },
99 "name": "dompurify",
100 "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.",
101 "version": "2.4.0",
102 "directories": {
103 "test": "test"
104 },
105 "repository": {
106 "type": "git",
107 "url": "git://github.com/cure53/DOMPurify.git"
108 },
109 "keywords": [
110 "dom",
111 "xss",
112 "html",
113 "svg",
114 "mathml",
115 "security",
116 "secure",
117 "sanitizer",
118 "sanitize",
119 "filter",
120 "purify"
121 ],
122 "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)",
123 "license": "(MPL-2.0 OR Apache-2.0)",
124 "bugs": {
125 "url": "https://github.com/cure53/DOMPurify/issues"
126 },
127 "homepage": "https://github.com/cure53/DOMPurify"
128}