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 | "cross-env": "^7.0.3",
|
71 | "eslint-config-prettier": "^8.5.0",
|
72 | "eslint-plugin-prettier": "^4.0.0",
|
73 | "jquery": "^3.6.0",
|
74 | "jsdom": "^19.0.0",
|
75 | "karma": "^6.3.17",
|
76 | "karma-browserstack-launcher": "^1.5.1",
|
77 | "karma-chrome-launcher": "^3.1.0",
|
78 | "karma-firefox-launcher": "^2.1.2",
|
79 | "karma-qunit": "^4.1.2",
|
80 | "karma-rollup-preprocessor": "^7.0.8",
|
81 | "lodash.sample": "^4.2.1",
|
82 | "minimist": "^1.2.6",
|
83 | "npm-run-all": "^4.1.5",
|
84 | "pre-commit": "^1.2.2",
|
85 | "prettier": "^2.5.1",
|
86 | "qunit": "^2.4.1",
|
87 | "qunit-tap": "^1.5.0",
|
88 | "rimraf": "^3.0.2",
|
89 | "rollup": "^2.70.1",
|
90 | "rollup-plugin-includepaths": "^0.2.3",
|
91 | "rollup-plugin-terser": "^7.0.2",
|
92 | "xo": "^0.48.0"
|
93 | },
|
94 | "resolutions": {
|
95 | "natives": "1.1.6"
|
96 | },
|
97 | "name": "dompurify",
|
98 | "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.",
|
99 | "version": "2.3.10",
|
100 | "directories": {
|
101 | "test": "test"
|
102 | },
|
103 | "repository": {
|
104 | "type": "git",
|
105 | "url": "git://github.com/cure53/DOMPurify.git"
|
106 | },
|
107 | "keywords": [
|
108 | "dom",
|
109 | "xss",
|
110 | "html",
|
111 | "svg",
|
112 | "mathml",
|
113 | "security",
|
114 | "secure",
|
115 | "sanitizer",
|
116 | "sanitize",
|
117 | "filter",
|
118 | "purify"
|
119 | ],
|
120 | "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)",
|
121 | "license": "(MPL-2.0 OR Apache-2.0)",
|
122 | "bugs": {
|
123 | "url": "https://github.com/cure53/DOMPurify/issues"
|
124 | },
|
125 | "homepage": "https://github.com/cure53/DOMPurify"
|
126 | }
|