UNPKG

sqs-consumer

Version:

Build SQS-based Node applications without the boilerplate

210 lines (209 loc) 5.65 kB
{ "name": "sqs-consumer", "version": "14.2.0", "description": "Build SQS-based Node applications without the boilerplate", "type": "module", "main": "dist/cjs/index.js", "types": "dist/cjs/index.d.ts", "exports": { ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/cjs/index.d.ts", "default": "./dist/cjs/index.js" } } }, "engines": { "node": ">=20.0.0" }, "scripts": { "clean": "rm -fr dist/*", "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json", "add-package-jsons": "node ./scripts/addPackageJsons.js", "build": "npm run clean && npm run compile && npm run add-package-jsons", "watch": "tsc --watch", "prepublishOnly": "npm run build", "release": "semantic-release", "test:unit": "mocha --recursive --full-trace --exit", "test:unit:report": "mocha --recursive --full-trace --exit --reporter json > test/reports/test-results.json", "pretest:integration:init": "npm run build", "test:integration:init": "sh ./test/scripts/initIntTests.sh", "test:integration": "npm run test:integration:init && cucumber-js --config ./test/config/cucumber.mjs", "test": "npm run test:unit:report && npm run test:integration", "coverage": "c8 mocha && c8 report --reporter=html && c8 report --reporter=json-summary", "lcov": "c8 mocha && c8 report --reporter=lcov", "lint": "eslint .", "lint:fix": "eslint . --fix", "format": "prettier --log-level warn --write \"**/*.{js,json,jsx,md,ts,tsx,html}\"", "format:check": "prettier --check \"**/*.{js,json,jsx,md,ts,tsx,html}\"", "posttest": "npm run lint && npm run format:check", "generate-docs": "typedoc" }, "repository": { "type": "git", "url": "git+https://github.com/bbc/sqs-consumer.git" }, "bugs": { "url": "https://github.com/bbc/sqs-consumer/issues" }, "homepage": "https://bbc.github.io/sqs-consumer/", "keywords": [ "sqs", "queue", "consumer" ], "license": "Apache-2.0", "publishConfig": { "provenance": true }, "release": { "branches": [ "main", "*.x", { "name": "canary", "prerelease": true } ], "plugins": [ [ "@semantic-release/commit-analyzer", { "preset": "conventionalcommits", "releaseRules": [ { "type": "breaking", "release": "major" }, { "type": "feat", "release": "minor" }, { "type": "chore", "release": "patch" }, { "type": "fix", "release": "patch" }, { "type": "docs", "release": "patch" }, { "type": "refactor", "release": "patch" }, { "type": "test", "release": "patch" } ] } ], [ "@semantic-release/release-notes-generator", { "preset": "conventionalcommits", "presetConfig": { "types": [ { "type": "feat", "section": "Features" }, { "type": "fix", "section": "Bug Fixes" }, { "type": "chore", "section": "Chores" }, { "type": "docs", "section": "Documentation" }, { "type": "refactor", "section": "Refactors" }, { "type": "test", "section": "Tests" } ] } } ], "@semantic-release/changelog", "@semantic-release/github", "@semantic-release/npm", "@sebbo2002/semantic-release-jsr" ] }, "overrides": { "cross-spawn": "^7.0.3" }, "devDependencies": { "@cucumber/cucumber": "^12.2.0", "@sebbo2002/semantic-release-jsr": "^3.0.1", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^13.0.1", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^11.0.6", "@semantic-release/npm": "^13.1.2", "@semantic-release/release-notes-generator": "^14.1.0", "@types/chai": "^5.2.2", "@types/mocha": "^10.0.10", "@types/node": "^24.10.1", "@types/sinon": "^17.0.4", "@typescript-eslint/eslint-plugin": "^8.48.0", "@typescript-eslint/parser": "^8.45.0", "c8": "^10.1.3", "chai": "^6.2.0", "conventional-changelog-conventionalcommits": "^9.1.0", "eslint": "^9.39.1", "eslint-config-eslint": "^13.0.0", "jsr": "^0.13.5", "mocha": "^11.7.4", "p-event": "^7.0.0", "prettier": "^3.6.2", "semantic-release": "^25.0.2", "sinon": "^21.0.0", "sqs-producer": "^8.0.0", "ts-node": "^10.9.2", "typedoc": "^0.28.15", "typescript": "^5.9.3" }, "dependencies": { "@aws-sdk/client-sqs": "^3.914.0", "debug": "^4.4.3" }, "peerDependencies": { "@aws-sdk/client-sqs": "^3.914.0" }, "mocha": { "extensions": [ "ts" ], "spec": "test/tests/**/**/*.test.ts", "node-option": [ "loader=ts-node/esm" ] }, "c8": { "include": [ "src/**/*.ts" ], "extension": [ ".ts" ], "sourceMap": true, "instrument": true } }