-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
155 lines (155 loc) · 3.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "@govuk-pay/pay-js-commons",
"version": "6.0.24",
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
"engines": {
"node": "^18.17.1"
},
"main": "lib/index.js",
"files": [
"images",
"sass",
"lib"
],
"scripts": {
"compile": "npm run transpile",
"clean": "rm -rf lib",
"copy": "cp -R src/data lib/data",
"transpile": "npm run clean && babel src --out-dir lib --ignore '**/*.test.js' && npm run copy",
"browserify-analytics": "browserify src/analytics/index.js -o lib/analytics/dist/cookies.js -t brfs -t babelify",
"prepare": "npm run transpile && npm run browserify-analytics",
"test": "npm run jest-tests npm && npm run karma-tests",
"karma-tests": "karma start",
"jest-tests": "jest src/analytics src/utils/axios-base-client/axios-base-client.test.js src/utils/middleware/*.test.js",
"lint": "standard --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alphagov/pay-js-commons.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"keywords": [
"nodejs",
"js",
"xo",
"GOV.UK",
"GaaP",
"Google Analytics",
"Event Tracking"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/alphagov/pay-js-commons/issues"
},
"homepage": "https://github.com/alphagov/pay-js-commons#readme",
"xo": {
"space": true,
"semicolon": false,
"envs": [
"browser",
"es6"
],
"ignores": [
"build",
"lib"
],
"globals": [
"describe",
"it"
],
"rules": {
"object-curly-spacing": [
2,
"always"
]
}
},
"lint-staged": {
"src/**/*.js": [
"xo --fix",
"git add"
]
},
"standard": {
"globals": [
"describe",
"context",
"before",
"beforeEach",
"after",
"afterEach",
"it",
"expect"
],
"ignore": [
"app/assets/**/*.js",
"node_modules_local/**/*.*"
],
"env": [
"mocha",
"jest"
]
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": [
"last 2 versions",
"safari >= 7",
"ie >= 10"
]
}
}
]
]
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@types/express": "^5.0.0",
"babelify": "^10.0.0",
"brfs": "^2.0.2",
"browser-env": "^3.2.6",
"browserify": "^17.0.0",
"chai": "^4.2.0",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-promise": "^6.0.0",
"jest": "^29.4.3",
"jest-environment-jsdom": "^29.4.3",
"js-cookie": "^3.0.0",
"jsdom": "^20.0.3",
"jsdom-global": "^3.0.2",
"karma": "^6.0.0",
"karma-browserify": "^8.0.0",
"karma-chrome-launcher": "^3.1.0",
"karma-mocha": "^2.0.0",
"karma-mocha-reporter": "^2.2.5",
"karma-source-map-support": "^1.2.0",
"lint-staged": "^13.0.1",
"mocha": "^10.0.0",
"nock": "^13.5.1",
"sinon": "^15.0.0",
"standard": "^17.0.0",
"uglify-js": "^3.6.0",
"watchify": "^4.0.0",
"xo": "^0.54.0"
},
"directories": {
"lib": "lib"
},
"dependencies": {
"axios": "^1.6.5",
"csrf": "^3.1.0",
"lodash": "4.17.21",
"moment-timezone": "0.5.43",
"rfc822-validate": "1.0.0",
"slugify": "1.6.6",
"winston": "3.9.0"
}
}