-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathpackage.json
106 lines (106 loc) · 4.43 KB
/
package.json
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "@dwp/govuk-casa",
"version": "9.4.3",
"description": "A framework for building GOVUK Collect-And-Submit-Applications",
"repository": {
"type": "git",
"url": "git@github.com:dwp/govuk-casa.git"
},
"main": "dist/casa.js",
"module": "dist/mjs/casa.js",
"exports": {
"import": "./dist/mjs/esm-wrapper.js",
"require": "./dist/casa.js"
},
"typings": "dist/casa.d.ts",
"files": [
"dist/**/*",
"locales/**/*",
"src/**/*.{js,cjs,mjs}",
"views/**/*",
"!dist/core-plugins/**/tests/",
"!src/core-plugins/**/tests/"
],
"engines": {
"node": ">=18 <=22",
"npm": ">=8 <=10"
},
"scripts": {
"pipeline": "npm run coverage && npm run lint",
"coverage": "c8 npm test",
"test": "npm run test:unit && npm run test:e2e && npm run core-plugin:edit-snapshot:test:e2e",
"test:unit": "mocha './tests/**/*.test.js'",
"test:e2e": "spiderplan --worker-init ./tests/e2e/worker-init.js --language en ./tests/e2e/personas/**/*.yaml",
"test:dast": "spiderplan --worker-init ./tests/e2e/worker-init.js --language en ./tests/e2e/personas/**/traversal.yaml --workers 1 --zap --zap-proxy 'http://localhost:8080/' --zap-target-hostname 'host.docker.internal'",
"test:dast:report": "curl -s --header 'X-ZAP-Api-Key: secret' http://localhost:8080/OTHER/core/other/htmlreport > gl-dast-report.html",
"test:dast:setup": "docker run --rm --name casa-dast -d -u zap -p 8080:8080 -i ghcr.io/zaproxy/zaproxy:bare@sha256:24a4037a3e8607d9fedbd75e4a7f1336d11998e1c331aab9991ef074f5de4b22 zap.sh -daemon -host 0.0.0.0 -port 8080 -config api.addrs.addr.name=\".*\" -config api.addrs.addr.regex=true -config api.key=secret -notel; npm run test:dast:ready-check",
"test:dast:ready-check": "while [ \"$(curl -Is -o /dev/null -w %{response_code} http://localhost:8080/)\" -ne \"200\" ]; do sleep 1; echo 'Waiting for ZAP to start ...'; done",
"test:dast:teardown": "docker stop casa-dast",
"lint": "eslint .",
"build": "npm run build:prepare && npm run build:sources && npm run build:css-assets",
"build:prepare": "rm -rf dist/* && mkdir -p dist/assets/js/ && mkdir -p dist/assets/css/",
"build:sources": "tsc -p tsconfig-cjs.json && ./scripts/fixup.sh && node scripts/esm-wrapper",
"build:css-assets": "node scripts/compile-sass.js",
"build:api-docs": "npx jsdoc -c ./jsdoc.json -d ./docs/api/ --debug -P '' -r -R ./README.md --verbose -t ./node_modules/docdash ./src",
"prepare": "npm run build",
"upgrade-deps": "OD=$(npm outdated --long --parseable); echo \"$OD\" | grep ':devDependencies:' | awk -F: '{ print $4 }' | xargs npm i -DE; echo \"$OD\" | grep ':dependencies:' | awk -F: '{ print $4 }' | xargs npm i -E",
"core-plugin:edit-snapshot:test:e2e": "spiderplan --worker-init ./src/core-plugins/edit-snapshot/tests/e2e/worker-init.js --language en \"./src/core-plugins/edit-snapshot/tests/e2e/personas/**/*.yaml\""
},
"keywords": [],
"author": "DWP Digital",
"license": "ISC",
"type": "module",
"dependencies": {
"@dagrejs/graphlib": "2.2.4",
"bytes": "3.1.2",
"cookie-parser": "1.4.7",
"csrf-sync": "4.0.3",
"debug": "4.4.0",
"deepmerge": "4.3.1",
"express": "4.21.2",
"express-session": "1.18.1",
"govuk-frontend": "5.8.0",
"helmet": "8.0.0",
"i18next": "24.2.1",
"i18next-http-middleware": "3.7.1",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"luxon": "3.5.0",
"nunjucks": "3.2.4",
"path-to-regexp": "8.2.0",
"rfdc": "1.4.1",
"validator": "13.12.0"
},
"devDependencies": {
"@ckeditor/jsdoc-plugins": "43.0.1",
"@commitlint/config-conventional": "19.6.0",
"@dwp/casa-spiderplan": "4.2.0",
"@dwp/casa-spiderplan-a11y-plugin": "1.0.2",
"@dwp/casa-spiderplan-zap-plugin": "1.0.3",
"@dwp/eslint-config-base": "9.0.2",
"@types/express": "4.17.21",
"@types/luxon": "3.4.2",
"@types/node": "22.10.10",
"@types/nunjucks": "3.2.6",
"c8": "10.1.3",
"chai": "5.1.2",
"cheerio": "1.0.0",
"commitlint": "19.6.1",
"docdash": "2.0.2",
"eslint": "9.18.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsdoc": "50.6.2",
"eslint-plugin-security": "3.0.1",
"eslint-plugin-sonarjs": "3.0.1",
"fast-check": "3.23.2",
"jsdoc": "4.0.4",
"jsdoc-tsimport-plugin": "1.0.5",
"mocha": "11.1.0",
"prettier": "3.4.2",
"prettier-plugin-jsdoc": "1.3.2",
"sass": "1.83.4",
"sinon": "19.0.2",
"supertest": "7.0.0",
"typescript": "5.7.3"
}
}