{ "name": "@middy/monorepo", "version": "8.0.0-alpha.2", "description": "🛵 The stylish Node.js middleware engine for AWS Lambda", "private": true, "type": "module", "engines": { "node": ">=24" }, "engineStrict": true, "packageManager": "npm@12.0.1+sha512.L5T9i/YAQWQWqTS/xZxJkei/9zcu99hCeE4qi41IyBVV7mRQad3qc2JfuOktwmH+qwGI/V2rbCL+/UYxb1+RQA==", "scripts": { "prepare": "husky", "git:pre-commit": "npm run git:lint-staged && npm run git:test-staged", "git:commit-msg": "commitlint --config commitlint.config.cjs --edit", "git:lint-staged": "biome check --staged --no-errors-on-unmatched", "git:test-staged": "which node && node -v && npm run test:unit", "lint": "biome check --write --no-errors-on-unmatched", "test": "npm run test:lint && npm run test:unit && npm run test:types && npm run test:sast && npm run test:bench && npm run test:dast", "test:lint": "biome ci --no-errors-on-unmatched", "test:unit": "node --no-warnings=ExperimentalWarning --no-addons --pending-deprecation --test --experimental-test-module-mocks --experimental-test-coverage --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 --test-coverage-exclude='**/*.test.js' --test-coverage-exclude='**/*.fuzz.js' --test-coverage-exclude='**/*.bench.js'", "test:sast": "npm run test:sast:license && npm run test:sast:lockfile && npm run test:sast:semgrep && npm run test:sast:trufflehog && npm run test:sast:gitleaks && npm run test:sast:actionlint && npm run test:sast:zizmor && npm run test:sast:trivy", "test:sast:actionlint": "actionlint", "test:sast:gitleaks": "npm run test:sast:gitleaks:dir && npm run test:sast:gitleaks:git", "test:sast:gitleaks:dir": "gitleaks dir . --redact --no-banner", "test:sast:gitleaks:git": "gitleaks git . --redact --no-banner", "test:sast:license": "node .github/license.mjs check", "test:sast:lockfile": "lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https", "test:sast:semgrep": "semgrep scan --config auto --error", "test:sast:trivy": "trivy fs --scanners vuln --ignore-unfixed --include-dev-deps --exit-code 1 --skip-files '**/bun.lock' --disable-telemetry . && trivy fs --config .github/trivy.yml --include-dev-deps --skip-files '**/bun.lock' --disable-telemetry .", "test:sast:trufflehog": "trufflehog filesystem --only-verified --log-level=-1 ./", "test:sast:zizmor": "zizmor .github", "test:types": "tstyche", "test:mutation": "stryker run", "test:bench": "node --no-warnings=ExperimentalWarning --no-addons --pending-deprecation --frozen-intrinsics --experimental-bench --bench './packages/**/*.bench.js'", "test:load": "for f in packages/*/*.load.js; do node ${f%.js}.server.js & pid=$!; k6 run -e LOAD_TEST=$f $f; code=$?; kill $pid; wait $pid; [ $code -eq 0 ] || exit $code; done", "test:dast": "npm run test:dast:fuzz", "test:dast:fuzz": "node --no-warnings=ExperimentalWarning --no-addons --pending-deprecation --frozen-intrinsics --test --test-timeout=120000 --experimental-test-module-mocks './packages/**/*.fuzz.js'", "rm": "npm run rm:macos && npm run rm:node_modules && npm run rm:lock", "rm:macos": "find . -name '.DS_Store' -type f -delete", "rm:lock": "find . -name 'package-lock.json' -type f -delete", "rm:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +", "update": "corepack up && npm run rm && npm install --workspaces", "outdated": "npm outdated --workspaces", "audit": "npm audit fix --workspaces", "release:license:add": "node .github/license.mjs add", "release:license:remove": "node .github/license.mjs remove", "release:sync": "npm version $npm_package_version --workspaces --allow-same-version && MIDDY_VERSION=$(npm pkg get version | tr -d '\"') find ./packages -name package.json -not -path '*/node_modules/*' -exec perl -pi -e 's#\"\\@middy/([^\"]+)\": \"[^\"]+\"#\"\\@middy/$1\": \"$ENV{MIDDY_VERSION}\"#g' {} + && npm install --package-lock-only && npm run lint", "release:tag": "git tag -s -m $npm_package_version $npm_package_version", "release:staged": "npm whoami >/dev/null && npm query '.workspace:not([private])' | jq -r '.[].name' | xargs -n1 -I{} npm stage list {} --json | jq -r '.[] | \"\\(.packageName)@\\(.version) \\(.actor) \\(.shasum)\"'", "release:approve": "names=$(npm query '.workspace:not([private])' | jq -r '.[].name'); ids=$(printf '%s\\n' \"$names\" | xargs -n1 -I{} npm stage list {} --json | jq -r --arg v \"$npm_package_version\" '.[] | select(.version == $v) | .id'); expected=$(printf '%s\\n' \"$names\" | grep -c .); staged=$(printf '%s\\n' \"$ids\" | grep -c .); [ \"$staged\" -eq \"$expected\" ] || { echo \"refusing: $staged staged ids for $npm_package_version, expected $expected workspaces\" >&2; exit 1; }; printf '%s\\n' \"$ids\" | xargs -n1 -o npm stage approve" }, "repository": { "type": "git", "url": "git+https://github.com/middyjs/middy.git" }, "keywords": [ "Lambda", "Middleware", "Serverless", "Framework", "AWS", "AWS Lambda" ], "author": { "name": "Middy contributors", "url": "https://github.com/middyjs/middy/graphs/contributors" }, "license": "MIT", "bugs": { "url": "https://github.com/middyjs/middy/issues" }, "homepage": "https://middy.js.org", "devDependencies": { "@biomejs/biome": "^2.5.12", "@stryker-mutator/core": "^10.0.0", "@commitlint/cli": "^21.0.0", "@commitlint/config-conventional": "^21.2.3", "aws-sdk-client-mock": "^4.0.0", "fast-check": "^4.0.0", "husky": "^9.0.0", "tstyche": "^7.0.0", "typescript": "^7.0.0" }, "overrides": { "@aws/durable-execution-sdk-js": "^2.0.0", "@x402/core": { "zod": "^4.6.6" }, "fast-xml-parser": ">=5.7.2", "katex": ">=0.18.2", "mathjs": ">=15.2.0", "miniflare": { "sharp": "^0.35.5", "undici": "^7.29.1" }, "qs": ">=6.16.0", "uuid": ">=14.0.0" }, "devEngines": { "runtime": { "name": "node", "onFail": "error" }, "packageManager": { "name": "npm", "onFail": "error" } }, "workspaces": [ "packages/*", "websites/*", ".github" ] }