-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
92 lines (92 loc) · 2.57 KB
/
Copy pathpackage.json
File metadata and controls
92 lines (92 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "domfortify",
"version": "0.3.0",
"description": "Retrofit Trusted Types onto a legacy page: claim the realm's default policy so old DOM-XSS sinks get sanitized without touching the code.",
"license": "(MPL-2.0 OR Apache-2.0)",
"homepage": "https://github.com/cure53/DOMFortify",
"repository": {
"type": "git",
"url": "git+https://github.com/cure53/DOMFortify.git"
},
"bugs": {
"url": "https://github.com/cure53/DOMFortify/issues"
},
"keywords": [
"trusted-types",
"xss",
"dom-xss",
"csp",
"sanitizer",
"dompurify",
"security",
"hardening"
],
"type": "module",
"main": "./dist/fortify.cjs.js",
"module": "./dist/fortify.es.mjs",
"types": "./dist/fortify.d.ts",
"unpkg": "./dist/fortify.min.js",
"jsdelivr": "./dist/fortify.min.js",
"exports": {
".": {
"import": {
"types": "./dist/fortify.d.ts",
"default": "./dist/fortify.es.mjs"
},
"default": {
"types": "./dist/fortify.d.ts",
"default": "./dist/fortify.cjs.js"
}
},
"./fortify.js": "./dist/fortify.js",
"./fortify.min.js": "./dist/fortify.min.js",
"./dist/fortify.js": "./dist/fortify.js",
"./dist/fortify.min.js": "./dist/fortify.min.js"
},
"files": [
"dist",
"src",
"LICENSE",
"SECURITY.md",
"README.md"
],
"sideEffects": [
"./dist/fortify.js",
"./dist/fortify.min.js",
"./src/auto.ts"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "rollup -c config/rollup.config.mjs",
"typecheck": "tsc -p tsconfig.json --noEmit",
"lint": "prettier --check \"{src,test,config,scripts}/**/*.{ts,js,mjs}\"",
"format": "prettier --write \"{src,test,config,scripts}/**/*.{ts,js,mjs}\" \"**/*.md\"",
"test:node": "node test/node-runner.mjs",
"test:browser": "playwright test --config config/playwright.config.ts",
"test": "npm run typecheck && npm run build && npm run test:node && npm run test:fuzz",
"prepublishOnly": "npm run build",
"test:fuzz": "node test/fuzz/policy.fuzz.js"
},
"devDependencies": {
"@playwright/test": "^1.49.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-terser": "^1.0.0",
"@rollup/plugin-typescript": "^12.1.1",
"dompurify": "^3.4.11",
"fast-check": "^4.8.0",
"prettier": "^3.4.2",
"qunit": "^2.23.1",
"rimraf": "^6.0.1",
"rollup": "^4.28.1",
"rollup-plugin-dts": "^6.1.1",
"tslib": "^2.8.1",
"typescript": "^5.7.2"
},
"engines": {
"node": ">=18"
},
"packageManager": "npm@10",
"publishConfig": {
"access": "public"
}
}