@govuk-pay/pay-js-commons
Version:
Reusable js scripts for GOV.UK Pay Node.js projects
160 lines (159 loc) • 3.61 kB
JSON
{
"name": "@govuk-pay/pay-js-commons",
"version": "7.0.32",
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
"engines": {
"node": "^22.17.1",
"npm": "^11.6.0"
},
"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/**.test.js src/utils/**/*.test.js src/nunjucks-filters/*.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",
"express": "^5.1.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",
"supertest": "^7.1.4",
"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",
"express-rate-limit": "^8.1.0",
"lodash": "4.17.21",
"moment-timezone": "0.5.43",
"rfc822-validate": "1.0.0",
"slugify": "1.6.6",
"winston": "3.9.0"
}
}