UNPKG

4.65 kBJSONView Raw
1{
2 "scripts": {
3 "build-demo": "node scripts/build-demo.js",
4 "lint": "xo src/*.js",
5 "format": "yarn format:js && yarn format:md",
6 "format:md": "prettier --write --parser markdown '**/*.md'",
7 "format:js": "prettier --write '{src,demos,scripts,test,website}/*.js'",
8 "commit-amend-build": "scripts/commit-amend-build.sh",
9 "prebuild": "rimraf dist/**",
10 "dev": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -w -c -o dist/purify.js",
11 "build": "cross-env run-p build:umd build:umd:min build:es build:cjs",
12 "build:umd": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f umd -o dist/purify.js",
13 "build:umd:min": "cross-env NODE_ENV=production BABEL_ENV=rollup rollup -c -f umd -o dist/purify.min.js",
14 "build:es": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f es -o dist/purify.es.js",
15 "build:cjs": "cross-env NODE_ENV=development BABEL_ENV=rollup rollup -c -f cjs -o dist/purify.cjs.js",
16 "test:jsdom": "cross-env NODE_ENV=test BABEL_ENV=rollup node test/jsdom-node-runner --dot",
17 "test:karma": "cross-env NODE_ENV=test BABEL_ENV=rollup karma start test/karma.conf.js --log-level warn ",
18 "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}\"",
19 "test": "cross-env NODE_ENV=test BABEL_ENV=rollup npm run lint && npm run test:jsdom && npm run test:karma -- --browsers Chrome"
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 "commit-amend-build"
31 ],
32 "xo": {
33 "semicolon": true,
34 "space": 2,
35 "extends": [
36 "prettier"
37 ],
38 "plugins": [
39 "prettier"
40 ],
41 "rules": {
42 "import/no-useless-path-segments": 0,
43 "unicorn/prefer-optional-catch-binding": 0,
44 "unicorn/prefer-node-remove": 0,
45 "prettier/prettier": [
46 "error",
47 {
48 "trailingComma": "es5",
49 "singleQuote": true
50 }
51 ],
52 "camelcase": [
53 "error",
54 {
55 "properties": "never"
56 }
57 ]
58 },
59 "globals": [
60 "window",
61 "VERSION"
62 ]
63 },
64 "devDependencies": {
65 "@babel/plugin-external-helpers": "7.12.13",
66 "babel": "^6.23.0",
67 "babel-core": "^6.26.3",
68 "babel-preset-env": "^1.7.0",
69 "cross-env": "^7.0.3",
70 "eslint-config-prettier": "^8.3.0",
71 "eslint-plugin-prettier": "^3.4.0",
72 "he": "^1.2.0",
73 "jquery": "^3.6.0",
74 "jsdom": "16.x.x",
75 "karma": "^5.1.0",
76 "karma-browserstack-launcher": "^1.5.1",
77 "karma-chrome-launcher": "^2.2.0",
78 "karma-firefox-launcher": "^1.3.0",
79 "karma-fixture": "^0.2.6",
80 "karma-html2js-preprocessor": "^1.0.0",
81 "karma-json-fixtures-preprocessor": "0.0.6",
82 "karma-qunit": "^1.0.0",
83 "karma-rollup-preprocessor": "^5.0.2",
84 "lodash.isarray": "^4.0.0",
85 "lodash.sample": "^4.2.1",
86 "minimist": "^1.2.5",
87 "npm-run-all": "^4.1.5",
88 "pre-commit": "^1.2.2",
89 "prettier": "^2.3.0",
90 "qunit-parameterize": "^0.4.0",
91 "qunit-tap": "^1.5.0",
92 "qunitjs": "^1.23.1",
93 "rimraf": "^3.0.2",
94 "rollup": "^0.68.2",
95 "rollup-plugin-babel": "^3.0.3",
96 "rollup-plugin-commonjs": "^8.4.1",
97 "rollup-plugin-includepaths": "^0.2.3",
98 "rollup-plugin-node-resolve": "^3.4.0",
99 "rollup-plugin-replace": "^2.2.0",
100 "rollup-plugin-terser": "^7.0.2",
101 "rollup-watch": "^4.3.1",
102 "xo": "^0.40.1"
103 },
104 "resolutions": {
105 "natives": "1.1.6"
106 },
107 "name": "dompurify",
108 "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.",
109 "version": "2.3.2",
110 "directories": {
111 "test": "test"
112 },
113 "repository": {
114 "type": "git",
115 "url": "git://github.com/cure53/DOMPurify.git"
116 },
117 "keywords": [
118 "dom",
119 "xss",
120 "html",
121 "svg",
122 "mathml",
123 "security",
124 "secure",
125 "sanitizer",
126 "sanitize",
127 "filter",
128 "purify"
129 ],
130 "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)",
131 "license": "(MPL-2.0 OR Apache-2.0)",
132 "bugs": {
133 "url": "https://github.com/cure53/DOMPurify/issues"
134 },
135 "homepage": "https://github.com/cure53/DOMPurify"
136}