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.3",
|
66 | "babel-plugin-external-helpers": "^6.22.0",
|
67 | "babel-preset-env": "^1.7.0",
|
68 | "cross-env": "^5.2.0",
|
69 | "eslint-config-prettier": "^2.9.0",
|
70 | "eslint-plugin-prettier": "^2.6.2",
|
71 | "he": "^1.1.1",
|
72 | "jquery": "^3.0.0",
|
73 | "jsdom": "8.x.x",
|
74 | "karma": "^2.0.5",
|
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.3",
|
87 | "pre-commit": "^1.1.2",
|
88 | "prettier": "^1.13.7",
|
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.7",
|
95 | "rollup-plugin-commonjs": "^8.4.1",
|
96 | "rollup-plugin-includepaths": "^0.2.3",
|
97 | "rollup-plugin-node-resolve": "^3.3.0",
|
98 | "rollup-plugin-replace": "^2.0.0",
|
99 | "rollup-plugin-uglify": "^2.0.0",
|
100 | "rollup-watch": "^4.3.1",
|
101 | "xo": "^0.21.1"
|
102 | },
|
103 | "resolutions": {
|
104 | "natives": "1.1.3"
|
105 | },
|
106 | "name": "dompurify",
|
107 | "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.",
|
108 | "version": "1.0.7",
|
109 | "directories": {
|
110 | "test": "test"
|
111 | },
|
112 | "repository": {
|
113 | "type": "git",
|
114 | "url": "git://github.com/cure53/DOMPurify.git"
|
115 | },
|
116 | "keywords": [
|
117 | "dom",
|
118 | "xss",
|
119 | "html",
|
120 | "svg",
|
121 | "mathml",
|
122 | "security",
|
123 | "secure",
|
124 | "sanitizer",
|
125 | "sanitize",
|
126 | "filter",
|
127 | "purify"
|
128 | ],
|
129 | "author": "Mario Heiderich <mario@cure53.de> (https://cure53.de/)",
|
130 | "license": "MPL-2.0 OR Apache-2.0",
|
131 | "bugs": {
|
132 | "url": "https://github.com/cure53/DOMPurify/issues"
|
133 | },
|
134 | "homepage": "https://github.com/cure53/DOMPurify"
|
135 | }
|