@bsv/payment-express-middleware
Version:
BSV Blockchain service monetization express middleware
98 lines • 2.96 kB
JSON
{
"name": "@bsv/payment-express-middleware",
"version": "2.1.5",
"sideEffects": false,
"engines": {
"node": ">=22"
},
"publishConfig": {
"access": "public"
},
"description": "BSV Blockchain service monetization express middleware",
"type": "module",
"main": "./dist/mod.cjs",
"module": "./dist/mod.mjs",
"types": "./dist/mod.d.mts",
"repository": {
"type": "git",
"url": "git+https://github.com/bsv-blockchain/ts-stack.git",
"directory": "packages/middleware/payment-express-middleware"
},
"files": [
"dist",
"README.md",
"LICENSE.txt"
],
"keywords": [
"BSV",
"Blockchain",
"Micropayments",
"Express",
"Middleware"
],
"exports": {
".": {
"import": {
"types": "./dist/mod.d.mts",
"default": "./dist/mod.mjs"
},
"require": {
"types": "./dist/mod.d.cts",
"default": "./dist/mod.cjs"
}
},
"./package.json": "./package.json"
},
"author": "BSV Blockchain Association",
"license": "SEE LICENSE IN LICENSE.txt",
"devDependencies": {
"@bsv/auth-express-middleware": "^2.1.7",
"@bsv/sdk": "^2.2.17",
"@types/body-parser": "^1.19.6",
"@types/express": "^5.0.6",
"@types/jest": "^30.0.0",
"@types/node": "^26.1.2",
"@typescript/native": "npm:typescript@7.0.2",
"express": "^5.2.1",
"fast-check": "^4.9.0",
"jest": "^30.4.2",
"oxlint": "^1.76.0",
"ts-jest": "^29.4.12",
"ts2md": "^0.2.8",
"tsdown": "0.22.14",
"typescript": "npm:@typescript/typescript6@6.0.2"
},
"bugs": {
"url": "https://github.com/bsv-blockchain/ts-stack/issues"
},
"homepage": "https://github.com/bsv-blockchain/ts-stack/tree/main/packages/middleware/payment-express-middleware#readme",
"peerDependencies": {
"@bsv/sdk": "^2.1.6",
"@types/express": ">=4.17.0 <6",
"express": ">=4.18.0 <6"
},
"peerDependenciesMeta": {
"@bsv/sdk": {
"optional": false
},
"@types/express": {
"optional": false
},
"express": {
"optional": false
}
},
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"doc": "ts2md --inputFilename=mod.ts --outputFilename=API.md --filenameSubstring=API --firstHeadingLevel=1",
"format:check": "pnpm --workspace-root exec prettier --check \"packages/middleware/payment-express-middleware/**/*.{js,json,ts}\"",
"lint": "oxlint mod.ts src --deny-warnings",
"pack:check": "pnpm build && node ../../../scripts/check-package-artifact.mjs . --exports InMemoryPaymentReplayStore,createPaymentMiddleware && node ../../../scripts/check-auth-express-consumers.mjs @bsv/payment-express-middleware",
"test": "jest --runInBand",
"test:property": "jest --runInBand src/__tests/PaymentReplayStore.property.test.ts",
"test:coverage": "jest --coverage --runInBand",
"test:watch": "jest --watch",
"typecheck": "tsc --project tsconfig.typecheck.json"
}
}