UNPKG

4.39 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 "prettier/prettier": [
41 "error",
42 {
43 "trailingComma": "es5",
44 "singleQuote": true
45 }
46 ],
47 "camelcase": [
48 "error",
49 {
50 "properties": "never"
51 }
52 ]
53 },
54 "globals": [
55 "window",
56 "VERSION"
57 ]
58 },
59 "devDependencies": {
60 "babel": "^6.23.0",
61 "babel-core": "^6.26.3",
62 "babel-plugin-external-helpers": "^6.22.0",
63 "babel-preset-env": "^1.7.0",
64 "cross-env": "^5.2.0",
65 "eslint-config-prettier": "^2.9.0",
66 "eslint-plugin-prettier": "^2.6.2",
67 "he": "^1.1.1",
68 "jquery": "^3.0.0",
69 "jsdom": "8.x.x",
70 "karma": "^2.0.5",
71 "karma-browserstack-launcher": "^1.3.0",
72 "karma-chrome-launcher": "^2.2.0",
73 "karma-firefox-launcher": "^1.1.0",
74 "karma-fixture": "^0.2.6",
75 "karma-html2js-preprocessor": "^1.0.0",
76 "karma-json-fixtures-preprocessor": "0.0.6",
77 "karma-qunit": "^1.0.0",
78 "karma-rollup-preprocessor": "^5.0.2",
79 "lodash.isarray": "^4.0.0",
80 "lodash.sample": "^4.2.1",
81 "minimist": "^1.2.0",
82 "npm-run-all": "^4.1.3",
83 "pre-commit": "^1.1.2",
84 "prettier": "^1.13.7",
85 "qunit-parameterize": "^0.4.0",
86 "qunit-tap": "^1.5.0",
87 "qunitjs": "^1.23.1",
88 "rimraf": "^2.6.2",
89 "rollup": "0.53.0",
90 "rollup-plugin-babel": "^3.0.7",
91 "rollup-plugin-commonjs": "^8.4.1",
92 "rollup-plugin-includepaths": "^0.2.3",
93 "rollup-plugin-node-resolve": "^3.3.0",
94 "rollup-plugin-replace": "^2.0.0",
95 "rollup-plugin-uglify": "^2.0.0",
96 "rollup-watch": "^4.3.1",
97 "xo": "^0.21.1"
98 },
99 "resolutions": {
100 "natives": "1.1.3"
101 },
102 "name": "dompurify",
103 "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.",
104 "version": "1.0.8",
105 "directories": {
106 "test": "test"
107 },
108 "repository": {
109 "type": "git",
110 "url": "git://github.com/cure53/DOMPurify.git"
111 },
112 "keywords": [
113 "dom",
114 "xss",
115 "html",
116 "svg",
117 "mathml",
118 "security",
119 "secure",
120 "sanitizer",
121 "sanitize",
122 "filter",
123 "purify"
124 ],
125 "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)",
126 "license": "MPL-2.0 OR Apache-2.0",
127 "bugs": {
128 "url": "https://github.com/cure53/DOMPurify/issues"
129 },
130 "homepage": "https://github.com/cure53/DOMPurify"
131}