{
  "name": "@govuk-pay/pay-js-commons",
  "version": "7.0.59",
  "description": "Reusable js scripts for GOV.UK Pay Node.js projects",
  "engines": {
    "node": "^22.22.0",
    "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": "jest",
    "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": "^30.3.0",
    "js-cookie": "^3.0.0",
    "jsdom": "^29.0.2",
    "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.16.0",
    "csrf": "^3.1.0",
    "express-rate-limit": "^8.1.0",
    "lodash": "4.18.1",
    "moment-timezone": "0.5.43",
    "rfc822-validate": "1.0.0",
    "slugify": "1.6.6",
    "winston": "3.9.0"
  },
  "overrides": {
    "axios": "1.16.0"
  },
  "resolutions": {
    "axios": "1.16.0"
  }
}
