UNPKG

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