{
    "name": "snyk-broker",
    "description": "Broker for private communication between internal systems and outside public systems",
    "main": "dist/lib/index.js",
    "bin": {
        "snyk-broker": "./dist/cli/index.js",
        "broker": "./dist/cli/index.js"
    },
    "engines": {
        "node": ">=24"
    },
    "scripts": {
        "build": "tsc",
        "format": "prettier --write '{lib,test,cli}/**/*.{js,ts}'",
        "prepare:templates": "rm -rf ./dist/client-templates && cp -Rf ./client-templates ./dist",
        "start": "node .",
        "dev": "tsc-watch --project tsconfig.json --onSuccess 'node .' | ./node_modules/.bin/bunyan",
        "dev:client": "LOG_LEVEL=debug NODE_ENV=development tsc-watch --project tsconfig.json --onSuccess 'node dist/cli/index.js client' | ./node_modules/.bin/bunyan",
        "dev:client-to-local-server": "BROKER_SERVER_URL=http://localhost:9000 USE_LOCAL_BACKEND='true' LOG_LEVEL=debug PORT=9001 NODE_ENV=development tsc-watch --project tsconfig.json --onSuccess 'node dist/cli/index.js client' | ./node_modules/.bin/bunyan",
        "dev:client2-to-local-server": "BROKER_SERVER_URL=http://localhost:9000 USE_LOCAL_BACKEND='true' LOG_LEVEL=debug PORT=9002 NODE_ENV=development tsc-watch --project tsconfig.json --onSuccess 'node dist/cli/index.js client' | ./node_modules/.bin/bunyan",
        "dev:server": "LOG_LEVEL=debug PORT=9000 ACCEPT=accept-server.local.json NODE_ENV=development tsc-watch --project tsconfig.json --onSuccess 'node dist/cli/index.js server' | ./node_modules/.bin/bunyan",
        "dev:server-with-auth": "BROKER_SERVER_MANDATORY_AUTH_ENABLED=true npm run dev:server",
        "test": "npm run test:unit && npm run test:functional",
        "test:unit": "jest unit --detectOpenHandles",
        "test:functional": "jest functional --detectOpenHandles --runInBand",
        "test:bin": "(cd test/bin; ./container-registry-agent/docker-entrypoint-test.sh)",
        "test:bin:docker": "docker run --rm -it -v $PWD:/home/broker -w /home/broker/test/bin/ snyk/ubuntu ./container-registry-agent/docker-entrypoint-test.sh",
        "lint": "npm run lint:check && npm run lint:code",
        "lint:check": "prettier --check '{lib,test,cli}/**/*.{js,ts}'",
        "lint:code": "eslint --color --cache '{cli,lib,test}/**/*.{js,ts}'"
    },
    "keywords": [],
    "author": "Snyk.io",
    "license": "Apache-2.0",
    "directories": {
        "test": "test"
    },
    "devDependencies": {
        "@openpgp/web-stream-tools": "0.3.0",
        "@semantic-release/exec": "7.1.0",
        "@types/body-parser": "~1.19.6",
        "@types/bunyan": "~1.8.8",
        "@types/compression": "~1.7.5",
        "@types/eslint": "~7.2.14",
        "@types/eslint-config-prettier": "~6.11.3",
        "@types/express": "~4.17.21",
        "@types/global-agent": "~2.1.1",
        "@types/jest": "^29.5.14",
        "@types/js-yaml": "4.0.9",
        "@types/jsonwebtoken": "~9.0.6",
        "@types/lodash.escaperegexp": "~4.1.9",
        "@types/lodash.mapvalues": "~4.6.9",
        "@types/minimatch": "~5.1.2",
        "@types/minimist": "~1.2.5",
        "@types/node": "~20.19.25",
        "@types/prettier": "~2.6.0",
        "@types/proxy-from-env": "~1.0.4",
        "@types/qs": "~6.14.0",
        "@types/semver": "~7.7.1",
        "@types/simple-oauth2": "^5.0.8",
        "@types/supertest": "~6.0.2",
        "@types/tunnel": "~0.0.7",
        "@typescript-eslint/eslint-plugin": "~5.30.4",
        "@typescript-eslint/parser": "~5.30.4",
        "compression": "~1.8.0",
        "detect-port": "~1.5.1",
        "eslint": "~7.2.0",
        "eslint-config-prettier": "~6.11.0",
        "jest": "~29.7.0",
        "jest-junit": "~11.0.1",
        "jest-mock-server": "~0.1.0",
        "nock": "~13.3.0",
        "node-mocks-http": "~1.17.2",
        "pkg": "5.8.1",
        "prettier": "~2.8.8",
        "semantic-release": "25.0.3",
        "supertest": "~7.0.0",
        "tmp-promise": "~3.0.2",
        "ts-jest": "~29.1.2",
        "ts-node": "~10.9.1",
        "tsc-watch": "~4.2.3",
        "typescript": "4.9.3"
    },
    "dependencies": {
        "@opentelemetry/api": "1.9.0",
        "@opentelemetry/exporter-metrics-otlp-grpc": "0.220.0",
        "@opentelemetry/instrumentation": "0.212.0",
        "@opentelemetry/instrumentation-runtime-node": "0.25.0",
        "@opentelemetry/sdk-metrics": "2.9.0",
        "axios": "1.16.0",
        "axios-retry": "4.5.0",
        "body-parser": "1.20.6",
        "bunyan": "^1.8.12",
        "camelcase": "^5.3.1",
        "clarify": "^2.0.0",
        "dotenv": "17.3.1",
        "ejson": "^2.2.0",
        "engine.io": "^6.6.7",
        "engine.io-client": "^5.2.0",
        "express": "4.22.1",
        "express-prom-bundle": "^5.1.5",
        "global-agent": "^3.0.0",
        "js-yaml": "4.3.0",
        "jsonwebtoken": "9.0.3",
        "lodash.escaperegexp": "^4.1.2",
        "lodash.mapvalues": "^4.6.0",
        "lodash.merge": "^4.6.2",
        "minimatch": "^3.1.5",
        "minimist": "^1.2.5",
        "node-cache": "^5.1.0",
        "openpgp": "6.3.0",
        "path-to-regexp": "^1.9.0",
        "primus": "^6.1.0",
        "primus-emitter": "^3.1.1",
        "prom-client": "^11.5.3",
        "proxy-from-env": "^1.1.0",
        "qs": "6.15.3",
        "semver": "7.7.3",
        "simple-oauth2": "^5.1.0",
        "snyk-config": "5.3.0",
        "then-fs": "^2.0.0",
        "tunnel": "0.0.6",
        "undefsafe": "^2.0.2"
    },
    "repository": {
        "type": "git",
        "url": "https://github.com/snyk/broker.git"
    },
    "bugs": {
        "url": "https://github.com/snyk/broker/issues"
    },
    "homepage": "https://github.com/snyk/broker#readme",
    "snyk": true,
    "pkg": {
        "scripts": [
            "node_modules/primus/**/*.js",
            "dist/lib/index.js"
        ],
        "assets": [
            "node_modules/ejson/**/*",
            "dist/client-templates/**/*"
        ],
        "targets": [
            "node18-linux-x64",
            "node18-linux-arm64"
        ],
        "outputPath": "binary-releases"
    },
    "volta": {
        "node": "24.15.0"
    },
    "overrides": {
        "express": {
            "path-to-regexp": "^0.1.13"
        },
        "brace-expansion": "1.1.16",
        "form-data": "4.0.6",
        "qs": "$qs",
        "joi": "^17.13.4",
        "ws": "8.21.1",
        "setheader": "1.0.2",
        "@grpc/grpc-js": "^1.14.4",
        "@opentelemetry/core": "2.8.0",
        "engine.io": {
            "ws": "8.21.1"
        },
        "engine.io-client": {
            "ws": "8.21.1"
        },
        "@grpc/proto-loader": {
            "protobufjs": "^7.6.5"
        },
        "@opentelemetry/otlp-transformer": {
            "protobufjs": "^8.6.5"
        }
    }
}
