UNPKG

4.42 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 "package.json",
25 "yarn.lock",
26 "package-lock.json",
27 "README.md"
28 ],
29 "pre-commit": [
30 "lint",
31 "build",
32 "commit-amend-build"
33 ],
34 "xo": {
35 "semicolon": true,
36 "space": 2,
37 "extends": [
38 "prettier"
39 ],
40 "plugins": [
41 "prettier"
42 ],
43 "rules": {
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": "^6.23.0",
65 "babel-core": "^6.26.0",
66 "babel-plugin-external-helpers": "^6.22.0",
67 "babel-preset-env": "^1.6.1",
68 "cross-env": "^5.1.3",
69 "eslint-config-prettier": "^2.6.0",
70 "eslint-plugin-prettier": "^2.3.1",
71 "he": "^1.1.1",
72 "jquery": "^3.0.0",
73 "jsdom": "8.x.x",
74 "karma": "^2.0.0",
75 "karma-browserstack-launcher": "^1.3.0",
76 "karma-chrome-launcher": "^2.2.0",
77 "karma-firefox-launcher": "^1.1.0",
78 "karma-fixture": "^0.2.6",
79 "karma-html2js-preprocessor": "^1.0.0",
80 "karma-json-fixtures-preprocessor": "0.0.6",
81 "karma-qunit": "^1.0.0",
82 "karma-rollup-preprocessor": "^5.0.2",
83 "lodash.isarray": "^4.0.0",
84 "lodash.sample": "^4.2.1",
85 "minimist": "^1.2.0",
86 "npm-run-all": "^4.1.1",
87 "pre-commit": "^1.1.2",
88 "prettier": "^1.9.2",
89 "qunit-parameterize": "^0.4.0",
90 "qunit-tap": "^1.5.0",
91 "qunitjs": "^1.23.1",
92 "rimraf": "^2.6.2",
93 "rollup": "0.53.0",
94 "rollup-plugin-babel": "^3.0.3",
95 "rollup-plugin-commonjs": "^8.2.1",
96 "rollup-plugin-includepaths": "^0.2.2",
97 "rollup-plugin-node-resolve": "^3.0.0",
98 "rollup-plugin-replace": "^2.0.0",
99 "rollup-plugin-uglify": "^2.0.0",
100 "rollup-watch": "^4.3.1",
101 "xo": "^0.18.1"
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": "1.0.4",
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}