{
  "name": "@mojaloop/central-ledger",
  "version": "20.5.2",
  "description": "Central ledger hosted by a scheme to record and settle transfers",
  "license": "Apache-2.0",
  "author": "ModusBox",
  "contributors": [
    "Georgi Georgiev <georgi.georgiev@modusbox.com>",
    "Georgi Logodazhki <georgi.logodazhki@modusbox.com>",
    "Henk Kodde <henkkodde@modusbox.com>",
    "Kevin Leyow <kevin.leyow@modusbox.com>",
    "Lazola Lucas <lazola.lucas@modusbox.com>",
    "Lewis Daly <lewisd@tigerbeetle.com>",
    "Miguel de Barros <miguel.debarros@modusbox.com>",
    "Paweł Marzec <pawel.marzec@modusbox.com>",
    "Rajiv Mothilal <rajiv.mothilal@modusbox.com>",
    "Sam Kummary <sam@modusbox.com>",
    "Shashikant Hirugade <shashikant.hirugade@modusbox.com>",
    "Steven Oderayi <steven.oderayi@modusbox.com>",
    "Valentin Genev <valentin.genev@modusbox.com>",
    "Aaron Reynoza <aaron.reynoza@infitx.com>"
  ],
  "repository": {
    "type": "git",
    "url": "git@github.com:mojaloop/central-ledger.git"
  },
  "imports": {
    "#src/*": "./src/*.js",
    "#test/*": "./test/*.js"
  },
  "pre-commit": [
    "lint",
    "test:unit",
    "dep:check",
    "audit:check",
    "license:check"
  ],
  "scripts": {
    "build": "tsc",
    "postbuild": "mkdir -p dist/migrations && cp src/migrations/migration.template dist/migrations/migration.template",
    "start": "npm run start:api",
    "start:api": "node dist/api/index.js",
    "start:handlers": "node dist/handlers/index.js",
    "start:debug": "npm start --node-options --inspect=0.0.0.0",
    "start:tsnode": "ts-node ./src/api/index.ts",
    "watch:api": "nodemon --exec ts-node ./src/api/index.ts",
    "dev": "npm run docker:stop && docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d",
    "lint": "npx standard",
    "lint:fix": "npx standard --fix",
    "test": "npm run test:unit",
    "test:unit": "ts-node src/testing/run.ts unit",
    "test:unit:distLock": "npx tape -r ts-node/register 'test/unit/lib/distLock/**/*.test.js'",
    "test:unit:participants-routes": "npx tape -r ts-node/register test/unit/api/participants/routes.test.js",
    "test:xunit": "ts-node src/testing/run.ts unit --output=xunit --outputPath=./test/results/xunit.xml",
    "test:coverage": "ts-node src/testing/run.ts coverage --type=both --only-report",
    "test:coverage-check": "ts-node src/testing/run.ts coverage --type=both",
    "test:int": "echo 'This command has been removed. There is now only a single entrypoint to integration tests: npm run test:integration'",
    "test:int-override": "echo 'This command has been removed. There is now only a single entrypoint to integration tests: npm run test:integration'",
    "test:int:spec": "echo 'This command has been removed. There is now only a single entrypoint to integration tests: npm run test:integration'",
    "test:xint": "echo 'This command has been removed. There is now only a single entrypoint to integration tests: npm run test:integration'",
    "test:xint-override": "echo 'This command has been removed. There is now only a single entrypoint to integration tests: npm run test:integration'",
    "test:integration": "ts-node src/testing/run.ts integration",
    "test:functional": "echo 'TODO: reenable me!'",
    "migrate": "npm run migrate:latest && npm run seed:run",
    "migrate:latest": "npx knex $npm_package_config_knex migrate:latest",
    "migrate:create": "npx knex migrate:make $npm_package_config_knex",
    "migrate:rollback": "npx knex migrate:rollback $npm_package_config_knex",
    "migrate:current": "npx knex migrate:currentVersion $npm_package_config_knex",
    "seed:run": "npx knex seed:run $npm_package_config_knex",
    "docker:build": "docker build --build-arg NODE_VERSION=\"$(cat .nvmrc)-alpine\" -t mojaloop/central-ledger:local .",
    "docker:up": "docker-compose -f docker-compose.yml up -d",
    "docker:up:backend": "docker-compose up -d ml-api-adapter mysql mockserver kafka kowl temp_curl",
    "docker:up:int": "docker compose up -d kafka init-kafka objstore mysql",
    "docker:script:populateTestData": "sh ./test/util/scripts/populateTestData.sh",
    "docker:stop": "docker-compose -f docker-compose.yml stop",
    "docker:rm": "docker-compose -f docker-compose.yml rm -f -v",
    "docker:down": "docker-compose -f docker-compose.yml down -v",
    "docker:clean": "docker-compose -f docker-compose.yml down --rmi local",
    "generate-docs": "npx jsdoc -c jsdoc.json",
    "audit:fix": "npm audit fix",
    "audit:check": "npx audit-ci --config ./audit-ci.jsonc",
    "dep:check": "npx ncu -e 2",
    "dep:update": "npx ncu -u",
    "license:check": "npx @mojaloop/license-scanner-tool .",
    "release": "npx standard-version --no-verify --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'",
    "snapshot": "npx standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'",
    "wait-4-docker": "node ./scripts/_wait4_all.js"
  },
  "dependencies": {
    "@hapi/basic": "7.0.2",
    "@hapi/catbox": "12.1.1",
    "@hapi/catbox-memory": "6.0.2",
    "@hapi/good": "9.0.1",
    "@hapi/hapi": "21.4.13",
    "@hapi/inert": "7.1.3",
    "@hapi/vision": "7.0.3",
    "@mojaloop/central-services-error-handling": "13.2.1",
    "@mojaloop/central-services-health": "15.2.4",
    "@mojaloop/central-services-logger": "11.10.7",
    "@mojaloop/central-services-metrics": "12.8.9",
    "@mojaloop/central-services-shared": "19.0.0",
    "@mojaloop/central-services-stream": "11.12.0",
    "@mojaloop/database-lib": "11.3.11",
    "@mojaloop/event-sdk": "14.8.7",
    "@mojaloop/inter-scheme-proxy-cache-lib": "2.11.0",
    "@mojaloop/ml-number": "11.4.6",
    "@mojaloop/object-store-lib": "12.2.5",
    "@now-ims/hapi-now-auth": "2.1.0",
    "ajv": "8.20.0",
    "ajv-keywords": "5.1.0",
    "base64url": "3.0.1",
    "bignumber.js": "11.1.5",
    "blipp": "4.0.2",
    "commander": "15.1.0",
    "cron": "4.4.2",
    "decimal.js": "10.6.0",
    "docdash": "2.0.2",
    "hapi-auth-bearer-token": "8.0.0",
    "hapi-swagger": "17.3.2",
    "ilp-packet": "2.2.0",
    "joi": "18.3.2",
    "knex": "3.3.0",
    "lodash": "4.18.1",
    "moment": "2.31.0",
    "mongo-uri-builder": "^4.0.0",
    "node-rdkafka": "3.6.1",
    "parse-strings-in-object": "2.0.0",
    "rc": "1.2.8",
    "require-glob": "^4.1.0"
  },
  "optionalDependencies": {
    "ed25519": "^0.0.5",
    "mysql": "2.18.1",
    "mysql2": "3.24.6"
  },
  "devDependencies": {
    "@mojaloop/license-scanner-tool": "1.1.3",
    "@mojaloop/sdk-standard-components": "19.19.3",
    "@opentelemetry/api": "1.10.0",
    "@opentelemetry/auto-instrumentations-node": "0.83.1",
    "@types/mock-knex": "0.4.8",
    "@types/node": "26.6.6",
    "@types/rc": "1.2.4",
    "@typescript-eslint/eslint-plugin": "^8.74.0",
    "@typescript-eslint/parser": "^8.74.0",
    "async-retry": "1.3.3",
    "audit-ci": "^7.1.0",
    "get-port": "7.2.0",
    "jsdoc": "4.0.5",
    "jsonpath": "1.3.0",
    "mock-knex": "0.4.13",
    "nodemon": "3.1.14",
    "npm-check-updates": "23.1.1",
    "nyc": "18.0.0",
    "pre-commit": "2.0.0",
    "proxyquire": "2.1.3",
    "replace": "^1.2.2",
    "rewire": "^9.0.1",
    "sinon": "22.1.0",
    "standard": "17.1.2",
    "standard-version": "^9.5.0",
    "tap-xunit": "2.4.1",
    "tape": "4.17.0",
    "tapes": "4.1.0",
    "ts-node": "^10.9.2"
  },
  "overrides": {
    "mongoose": "9.11.4",
    "@hapi/wreck": "18.1.2",
    "@now-ims/hapi-now-auth": {
      "joi": "17.13.9"
    },
    "blipp": {
      "joi": "17.13.9"
    },
    "gcp-metadata": {
      "gaxios": "7.3.1"
    },
    "glob@13": "14.0.3",
    "jsdoc": {
      "markdown-it": "14.3.3"
    },
    "linkify-it": "5.0.2",
    "protobufjs": "8.8.0",
    "handlebars": "4.7.10",
    "ajv": "8.20.0",
    "eslint": {
      "ajv": "6.14.0",
      "@eslint/eslintrc": {
        "ajv": "6.14.0"
      }
    },
    "rewire": {
      "eslint": {
        "ajv": "6.14.0",
        "@eslint/eslintrc": {
          "ajv": "6.14.0"
        }
      }
    },
    "axios": "1.20.0",
    "convict": "6.2.5",
    "form-data": "4.0.6",
    "lodash": "4.18.1",
    "lodash-es": "4.18.1",
    "undici": "6.29.1",
    "hapi-auth-bearer-token": {
      "joi": "18.3.2"
    },
    "hapi-swagger": {
      "joi": "18.3.2"
    },
    "immutable": "5.1.9",
    "fast-uri": "3.1.9",
    "jsonwebtoken": "9.0.3",
    "cross-spawn": "7.0.6",
    "validator": "13.15.22",
    "minimatch@<=3.1.3": "3.1.5",
    "minimatch@5.1.7": "5.1.9",
    "minimatch@9": "11.0.3",
    "minimatch@10": "11.0.3",
    "glob@10": "14.0.3",
    "replace": {
      "minimatch": "3.1.5"
    },
    "underscore": "1.13.8",
    "qs": "6.16.2",
    "js-yaml@^4.0.0": "4.3.2",
    "@grpc/grpc-js": "1.14.5",
    "joi@^17.0.0": "17.13.9",
    "joi@18.2.9": "18.3.2",
    "@mojaloop/central-services-shared": {
      ".": "$@mojaloop/central-services-shared",
      "ajv": "8.20.0",
      "@mojaloop/inter-scheme-proxy-cache-lib": {
        "ajv": "8.20.0"
      }
    },
    "@mojaloop/ml-schema-transformer-lib": {
      ".": "2.10.1",
      "ajv": "8.20.0",
      "@mojaloop/central-services-shared": {
        ".": "$@mojaloop/central-services-shared",
        "ajv": "8.20.0",
        "joi": "18.3.2",
        "@mojaloop/inter-scheme-proxy-cache-lib": {
          "ajv": "8.20.0"
        }
      },
      "openapi-backend": {
        "ajv": "8.20.0"
      },
      "@apidevtools/swagger-parser": {
        "ajv": "8.20.0"
      }
    },
    "@mojaloop/event-sdk": {
      "@mojaloop/central-services-stream": "$@mojaloop/central-services-stream"
    },
    "yargs-parser@21": "21.1.1",
    "yargs-parser@20": "20.2.9",
    "jws@4": "4.0.1",
    "jws@3": "3.2.3",
    "brace-expansion@2": "2.1.7",
    "brace-expansion@1": "1.1.21",
    "yaml@1": "1.10.3",
    "yaml@2": "2.9.1",
    "argparse@1": "2.0.1",
    "argparse@3": "3.0.0",
    "follow-redirects": "1.16.2"
  },
  "config": {
    "knex": "--knexfile ./dist/knexfile.js",
    "images": {
      "api": "central-ledger",
      "admin": "central-ledger-admin"
    }
  },
  "standard": {
    "ignore": [
      "/migrations/**"
    ]
  },
  "standard-version": {
    "scripts": {
      "postchangelog": "replace '\\[mojaloop/#(\\d+)\\]\\(https://github.com/mojaloop/(.*)/issues/(\\d+)\\)' '[mojaloop/#$1](https://github.com/mojaloop/project/issues/$1)' CHANGELOG.md"
    }
  }
}
