{"_id":"@acpr/rate-limit-postgresql","_rev":"11-ff6017b890c7627ea0a70039ae617132","name":"@acpr/rate-limit-postgresql","dist-tags":{"latest":"1.4.1"},"versions":{"1.0.1":{"name":"@acpr/rate-limit-postgresql","version":"1.0.1","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","types":"./dist/cjs/types/index.d.ts","main":"./dist/cjs/index.js","exports":{".":{"import":{"types":"./dist/esm/types/index.d.ts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/types/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"test":"mocha -r ts-node/register 'test/**/*.ts'","clean":"rm -rf ./dist","build":"npm run clean && npm run build:esm && npm run build:cjs && cp source/migrations/ dist/ -r","build:esm":"tsc -p ./configs/tsconfig.esm.json && mv dist/esm/index.js dist/esm/index.mjs","build:cjs":"tsc -p ./configs/tsconfig.cjs.json","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"dependencies":{"express-rate-limit":"6.11.0","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"@express-rate-limit/prettier":"1.1.0","@express-rate-limit/tsconfig":"1.0.0","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/pg-pool":"2.0.3","@types/sinon":"10.0.16","chai":"4.3.8","husky":"8.0.3","license-checker-rseidelsohn":"3.3.0","lint-staged":"14.0.1","mocha":"10.2.0","prettier":"3.0.3","sinon":"15.2.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"gitHead":"1f5c7ece07250a42406c165e4288ab7fa7a02ffb","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_id":"@acpr/rate-limit-postgresql@1.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-ZSy/rohN6pFemQBb+gWhnReGVM9fK4Bm2vaYnEdpDPt+rDc1RIyIiRdkNdoiOJ4skeszflA9ZnxQKIG5ZhYhUg==","shasum":"59e9c41153f8a6622202105f211364c4af8aec6f","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.0.1.tgz","fileCount":40,"unpackedSize":61719,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe3j+SkaEMzwnS1gf/VP9r3xBDPUFMurB1JKKEKtuYGwIgV7zlq3kcE8TSl6cPK6MGcaJNRcCra0+6SS8d0Khthxg="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.0.1_1694597996928_0.6736203160462519"},"_hasShrinkwrap":false},"1.0.2":{"name":"@acpr/rate-limit-postgresql","version":"1.0.2","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","types":"./dist/cjs/types/index.d.ts","main":"./dist/cjs/index.js","exports":{".":{"import":{"types":"./dist/esm/types/index.d.ts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/types/index.d.ts","default":"./dist/cjs/index.js"}}},"scripts":{"test":"mocha -r ts-node/register 'test/**/*.ts'","clean":"rm -rf ./dist","build":"npm run clean && npm run build:esm && npm run build:cjs && cp source/migrations/ dist/ -r","build:esm":"tsc -p ./configs/tsconfig.esm.json && mv dist/esm/index.js dist/esm/index.mjs","build:cjs":"tsc -p ./configs/tsconfig.cjs.json","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"dependencies":{"express-rate-limit":"6.11.0","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"@express-rate-limit/prettier":"1.1.0","@express-rate-limit/tsconfig":"1.0.0","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/pg-pool":"2.0.3","@types/sinon":"10.0.16","chai":"4.3.8","husky":"8.0.3","license-checker-rseidelsohn":"3.3.0","lint-staged":"14.0.1","mocha":"10.2.0","prettier":"3.0.3","sinon":"15.2.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"gitHead":"a89c8c4eb4ccff90f2e9e7ba6c4c189ae183fcb5","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_id":"@acpr/rate-limit-postgresql@1.0.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-4bPRU21UB9J7DGjQ12RNSLFZc1om0Iaq8KzA9mNigh9WF4QJuYMIRswxTu7H1x/T3hozAdfJrBisMO/42bgjAA==","shasum":"68afdbbb2f0376f669c61ff522d788bbdc7dd5ec","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.0.2.tgz","fileCount":40,"unpackedSize":61719,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIANg/imfKU5x+jvuMH3SDRvXq1kn2y4tZs3no5q3rKqtAiEA0l5uroNmaJDRSMhZX2iIXd6YNQ/4x+cq+maHSthE5jc="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.0.2_1694608328595_0.22226720731599037"},"_hasShrinkwrap":false},"1.1.0":{"name":"@acpr/rate-limit-postgresql","version":"1.1.0","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"cross-env TS_NODE_PROJECT='./configs/tsconfig.esm.json' mocha","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"dependencies":{"@types/pg-pool":"2.0.3","express-rate-limit":"6.11.0","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"@express-rate-limit/prettier":"1.1.0","@express-rate-limit/tsconfig":"1.0.0","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","cross-env":"7.0.3","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"3.3.0","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"15.2.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"gitHead":"7be8b78719cd7e4714e3c79eda76f6b878b7e7c4","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_id":"@acpr/rate-limit-postgresql@1.1.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-GnmKPVGPsfPN9i57SsprTG2tc6ttHk69JrWA0e7PzYlYPYzHXCfGVjQmNXbJIngv0g3imKkq/1Qtj4pBzt2McQ==","shasum":"d6ba31b0b8dd95a20a91f31b90b117dafea057a7","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.1.0.tgz","fileCount":8,"unpackedSize":40662,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBe4ITQIc6QPqqml3Eb+XCGK1Qz8MfbvHZimIlQrc74aAiEA+tvZTiuV5WZ3Tqa6G+4JcQPkIBLvX+rYDcVUqUYcvLs="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.1.0_1694768494280_0.24768048826436528"},"_hasShrinkwrap":false},"1.1.1":{"name":"@acpr/rate-limit-postgresql","version":"1.1.1","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"cross-env TS_NODE_PROJECT='./configs/tsconfig.esm.json' mocha","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"dependencies":{"@types/pg-pool":"2.0.3","express-rate-limit":"6.11.1","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"@express-rate-limit/prettier":"1.1.0","@express-rate-limit/tsconfig":"1.0.0","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","cross-env":"7.0.3","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"3.3.0","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"15.2.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"gitHead":"3b26f4d03a82307eb91b85cc06543b213054266d","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_id":"@acpr/rate-limit-postgresql@1.1.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-athg+njY4ndzdNJd12GCzLSuM8NlYDpMWF4XweJhfhH08GPkUaNaaJFSZz+LVmWnrHI/GnbQFbjN4bU3nC5cNA==","shasum":"7cdb44939c5da92479eed3d269b9087367435287","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.1.1.tgz","fileCount":8,"unpackedSize":42161,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6FpwNYIueOEboCXkdIGjaiK2jmST1BPE6WT6/Ws2zUAiEAqOWAMBzT3S80VpP7VtsUoFZIZr2M6PQm5xuDwIfgncA="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.1.1_1695027385687_0.5227822434729985"},"_hasShrinkwrap":false},"1.2.0":{"name":"@acpr/rate-limit-postgresql","version":"1.2.0","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"cross-env TS_NODE_PROJECT='./configs/tsconfig.esm.json' mocha","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"peerDependencies":{"express-rate-limit":">=6.0.0"},"dependencies":{"@types/pg-pool":"2.0.3","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"express-rate-limit":"7.0.1","@express-rate-limit/prettier":"1.1.1","@express-rate-limit/tsconfig":"1.0.2","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","cross-env":"7.0.3","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"4.2.7","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"16.0.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"gitHead":"475a1c9d8c620d3553b45f9dbe2041a37ad85502","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_id":"@acpr/rate-limit-postgresql@1.2.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-iLkjtsWzkaDZG1Z2DA5pg1PSz2uGCrWMdq0s3Rvcf8v4/iwHhb2jgoDtJAWwEpmzH9Q9hDZD3sYx4x4X19GznQ==","shasum":"f3d556c5bb4f1dabd703465dfc26d1db7ea7e2e0","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.2.0.tgz","fileCount":8,"unpackedSize":42225,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDauDIuy9sLnSZXa/rZ+F5NtC49I90oAzOVxzwmrgd1kAiEA4Xeh9ar0C0XP5hxS6piais7zGlA5KKeL9qfgNmM8kBo="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.2.0_1695279720089_0.043811743166462636"},"_hasShrinkwrap":false},"1.3.0":{"name":"@acpr/rate-limit-postgresql","version":"1.3.0","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"cross-env TS_NODE_PROJECT='./configs/tsconfig.esm.json' mocha","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"peerDependencies":{"express-rate-limit":">=6.0.0"},"dependencies":{"@types/pg-pool":"2.0.3","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"express-rate-limit":"7.0.1","@express-rate-limit/prettier":"1.1.1","@express-rate-limit/tsconfig":"1.0.2","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","cross-env":"7.0.3","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"4.2.7","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"16.0.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"_id":"@acpr/rate-limit-postgresql@1.3.0","gitHead":"f9b2693c84581b97205fb6e512bdc829a5ab48c0","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-3MMblMZRaKy2PS5GmKTpN0zSa3hqXiu5JzsFNzOSOzStwfLS1GEcK51OtTT126PWMh4REjhGcGScyZJLLFi7zw==","shasum":"4614cfeaa7a0d67e51d929b62208ccf5151a6717","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.3.0.tgz","fileCount":12,"unpackedSize":43103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA+trsP/M8VP/4OgS3DffWx0sgzuu9G2wbGib5Ps2QVwAiEApDC/xHRmVSYQvQGXL2sDJHsJ04QdltHHzBLOYrQa+es="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.3.0_1695981440923_0.19899074616308332"},"_hasShrinkwrap":false},"1.3.1":{"name":"@acpr/rate-limit-postgresql","version":"1.3.1","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/adrianprelipcean/express-rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/adrianprelipcean/express-rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"cross-env TS_NODE_PROJECT='./configs/tsconfig.esm.json' mocha","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"peerDependencies":{"express-rate-limit":">=6.0.0"},"dependencies":{"@types/pg-pool":"2.0.3","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"express-rate-limit":"7.0.1","@express-rate-limit/prettier":"1.1.1","@express-rate-limit/tsconfig":"1.0.2","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","cross-env":"7.0.3","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"4.2.7","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"16.0.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"_id":"@acpr/rate-limit-postgresql@1.3.1","gitHead":"f090b17db004a01722bfb08da71e7f20334b1235","bugs":{"url":"https://github.com/adrianprelipcean/express-rate-limit-postgresql/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-uQqTqYDzsJQ7vp1Ah+Xw0bHo+jd816eTmGnW6n1/bXEsjSSYIuMrAQYrZdhYLorhT48xL6MeDaeqgd5v/xa3Zw==","shasum":"5d5ef72c3703a005ac1377b3e7550d59bbbcfe62","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.3.1.tgz","fileCount":12,"unpackedSize":43103,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEVtg4zmnRTkQfujoLk33TlPXpc3GcLu0MC1kgr+o1/nAiBJsupQd9iMcjdzw5wzhkXvp4yRJRrP/hXGkwyKzctfFg=="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.3.1_1696243147870_0.06549560436024038"},"_hasShrinkwrap":false},"1.3.2":{"name":"@acpr/rate-limit-postgresql","version":"1.3.2","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/express-rate-limit/rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"cross-env TS_NODE_PROJECT='./configs/tsconfig.esm.json' mocha","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"peerDependencies":{"express-rate-limit":">=6.0.0"},"dependencies":{"@types/pg-pool":"2.0.3","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"express-rate-limit":"7.0.1","@express-rate-limit/prettier":"1.1.1","@express-rate-limit/tsconfig":"1.0.2","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","cross-env":"7.0.3","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"4.2.7","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"16.0.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"_id":"@acpr/rate-limit-postgresql@1.3.2","gitHead":"81dd4ce71722edd1bd1b691fa184e40aed2e9de7","bugs":{"url":"https://github.com/express-rate-limit/rate-limit-postgresql/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-rCiv98taUaOqgLk/g6X79wE70d+VN/YM51wmhibgXXqB3sNmFZAOgR5ZSvS1lZaMDSyU4hzDIjS8W9ebNWpsfQ==","shasum":"bd5cf26ebd579c9083a1fc7c842dc71e8429213f","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.3.2.tgz","fileCount":12,"unpackedSize":43091,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acpr%2frate-limit-postgresql@1.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0+M7BA9y9tY5E82+GCNyfwDXrYnnO4YsuQbUlW0vhfwIgGx5zEpyvvFz0FIXeBOL94yzFe6kSk4w2UuZF8Rkj/q4="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.3.2_1696933953478_0.29166629620413365"},"_hasShrinkwrap":false},"1.4.0":{"name":"@acpr/rate-limit-postgresql","version":"1.4.0","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/express-rate-limit/rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"ts-mocha src/**/*.spec.ts","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"peerDependencies":{"express-rate-limit":">=6.0.0"},"dependencies":{"@types/pg-pool":"2.0.3","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"@express-rate-limit/prettier":"1.1.1","@express-rate-limit/tsconfig":"1.0.2","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","express-rate-limit":"7.0.1","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"4.2.7","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"16.0.0","ts-mocha":"10.0.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"_id":"@acpr/rate-limit-postgresql@1.4.0","gitHead":"e29c77383e981cb1f5caf8a49a65b71549cd4bff","bugs":{"url":"https://github.com/express-rate-limit/rate-limit-postgresql/issues"},"_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-Vu6NvzO7OV7N6+nJdtC9XWoVm3N2mic0ojs8Iqse90QTGjK97D1xvrmMIa44Z7Ii0bVjtmCdJsbRnH7tHFzV5A==","shasum":"40964a3bc32799da20afdee2d5be45aba1d1375f","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.4.0.tgz","fileCount":14,"unpackedSize":42919,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acpr%2frate-limit-postgresql@1.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDocd8t2UgjbgPcpMc1aGc5QDyz2E0ajSONduLsElFJcAiA6Wjz+9h91qkkH+DzScywTHFf8ryqx2ZylhI5HftH0hA=="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.4.0_1709012089710_0.5262533208696247"},"_hasShrinkwrap":false},"1.4.1":{"name":"@acpr/rate-limit-postgresql","version":"1.4.1","description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/express-rate-limit/rate-limit-postgresql","repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"license":"MIT","main":"./dist/index.cjs","module":"./dist/index.mjs","types":"./dist/index.d.cts","exports":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"scripts":{"test":"ts-mocha src/**/*.spec.ts","clean":"rm -rf ./dist","build":"npm run clean && pkgroll --src source/ && cp source/migrations/ dist/ -r && npm run mjs-fix-prepend","lint":"prettier --check .","lint-autofix":"prettier --write .","prepack":"npm run build","prepare":"husky install","generate-dev-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --development > third_party_licenses/dev_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --development > third_party_licenses/dev_summary.txt","generate-production-licenses":"./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --limitAttributes licenses,repository,publisher,email --json --production > third_party_licenses/production_detailed.json && ./node_modules/license-checker-rseidelsohn/bin/license-checker-rseidelsohn --summary --production > third_party_licenses/production_summary.txt","generate-licenses":"npm run generate-dev-licenses && npm run generate-production-licenses","mjs-fix-prepend":"printf '%s\\n%s\\n' \"import { dirname } from 'path'\nimport { fileURLToPath } from 'url';\nconst __dirname = dirname(fileURLToPath(import.meta.url));\n\" \"$(cat dist/index.mjs)\" > dist/index.mjs"},"keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"peerDependencies":{"express-rate-limit":">=6.0.0"},"dependencies":{"@types/pg-pool":"2.0.3","pg":"8.11.3","pg-pool":"3.6.1","postgres-migrations":"5.3.0"},"devDependencies":{"@express-rate-limit/prettier":"1.1.1","@express-rate-limit/tsconfig":"1.0.2","@types/chai":"4.3.6","@types/express":"4.17.17","@types/mocha":"10.0.1","@types/sinon":"10.0.16","chai":"4.3.8","express-rate-limit":"7.0.1","global-jsdom":"9.1.0","husky":"8.0.3","license-checker-rseidelsohn":"4.2.7","lint-staged":"14.0.1","mocha":"10.2.0","pkgroll":"1.11.0","prettier":"3.0.3","sinon":"16.0.0","ts-mocha":"10.0.0","ts-node":"10.9.1","typescript":"5.2.2"},"prettier":"@express-rate-limit/prettier","lint-staged":{"*.md":"prettier --write","source/**/*.ts":"prettier --write","test/**/*.ts":"prettier --write","package.json":"npm run generate-licenses"},"_id":"@acpr/rate-limit-postgresql@1.4.1","gitHead":"7aace7cf8e3c9398dd9ce34d9f4324da912b0fb6","bugs":{"url":"https://github.com/express-rate-limit/rate-limit-postgresql/issues"},"_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-dV/uEYD94onbyO56VJaU43pDXXUeaNqa/zs0V/Ar1BTgmZls5yrqgPqg1x2m5N87AKkMVkKoSxy64T3ldnaOew==","shasum":"6b54ea880afaa1ae86d559e9f21166a9f7c55f76","tarball":"https://registry.npmjs.org/@acpr/rate-limit-postgresql/-/rate-limit-postgresql-1.4.1.tgz","fileCount":14,"unpackedSize":42810,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@acpr%2frate-limit-postgresql@1.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEbXMTzOBfihrfepFHRsHbhfJpRU59teuTowR2wSlszQIgV+bjuzGznsVXf9HUUZVDr68GQ8pMwmwBAtnA/s2QxJ0="}]},"_npmUser":{"name":"acpr","email":"adrianprelipceanc@gmail.com"},"directories":{},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rate-limit-postgresql_1.4.1_1710762262744_0.5785136306390122"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-13T09:39:56.814Z","1.0.1":"2023-09-13T09:39:57.099Z","modified":"2024-03-18T11:44:23.667Z","1.0.2":"2023-09-13T12:32:08.790Z","1.1.0":"2023-09-15T09:01:34.510Z","1.1.1":"2023-09-18T08:56:25.899Z","1.2.0":"2023-09-21T07:02:00.301Z","1.3.0":"2023-09-29T09:57:21.186Z","1.3.1":"2023-10-02T10:39:08.140Z","1.3.2":"2023-10-10T10:32:33.674Z","1.4.0":"2024-02-27T05:34:49.862Z","1.4.1":"2024-03-18T11:44:22.950Z"},"maintainers":[{"name":"nfriedly","email":"nathan@nfriedly.com"},{"name":"gamemaker1","email":"gamemaker0042@gmail.com"},{"name":"acpr","email":"adrianprelipceanc@gmail.com"}],"description":"A PostgreSQL store for the `express-rate-limit` middleware","homepage":"https://github.com/express-rate-limit/rate-limit-postgresql","keywords":["express-rate-limit","express-rate-limit-postgresql","express-rate-limit-postgres","express","rate","limit","ratelimit","rate-limit","middleware","ip","auth","authorization","security","brute","force","bruteforce","brute-force","attack","postgresql","postgres"],"repository":{"type":"git","url":"git+https://github.com/express-rate-limit/rate-limit-postgresql.git"},"author":{"name":"Adrian C. Prelipcean"},"bugs":{"url":"https://github.com/express-rate-limit/rate-limit-postgresql/issues"},"license":"MIT","readme":"# rate-limit-postgresql\n\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](code_of_conduct.md)\n\nA [`PostgreSQL`](https://www.postgresql.org/) store for the\n[`express-rate-limit`](https://github.com/nfriedly/express-rate-limit)\nmiddleware.\n\n## Installation\n\nFrom the npm registry:\n\n```sh\n# Using npm\n> npm install --save @acpr/rate-limit-postgresql\n# Using yarn or pnpm\n> yarn/pnpm add @acpr/rate-limit-postgresql\n```\n\n## Usage\n\nFunctional examples for using `rate-limit-postgresql` are found in the\n[following repository](https://github.com/adrianprelipcean/express-rate-limit-postgresql-examples)\n\n```js\nlet rateLimit = require('express-rate-limit')\nlet postgresStores = require('@acpr/rate-limit-postgresql')\n\nlet limiter = new RateLimit({\n\tstore: new postgresStores.PostgresStore(\n\t\t{\n\t\t\tuser: 'postgres',\n\t\t\tpassword: 'postgres',\n\t\t\thost: 'localhost',\n\t\t\tdatabase: 'rate-limit',\n\t\t\tport: 5432,\n\t\t},\n\t\t'aggregated_store',\n\t),\n\twindowMs: 15 * 60 * 1000, // 15 minutes\n\tmax: 3, // Limit each IP to 3 requests per `window` (here, per 15 minutes)\n\tmessage:\n\t\t'Too many accounts created from this IP, please try again after 15 minutes',\n\tstandardHeaders: 'draft-7', // Set `RateLimit` and `RateLimit-Policy`` headers\n\tlegacyHeaders: false,\n})\n\n//  apply to all requests\napp.use(limiter)\n```\n\n### Importing\n\nThis library is provided in ESM as well as CJS forms, and works with both\nJavascript and Typescript projects.\n\n**This package requires you to use Node 16 or above.**\n\nImport it in a CommonJS project (`type: commonjs` or no `type` field in\n`package.json`) as follows:\n\n```ts\nlet postgresStores = require('@acpr/rate-limit-postgresql')\n```\n\nImport it in a ESM project (`type: module` in `package.json`) as follows:\n\n```ts\nimport postgresStores from '@acpr/rate-limit-postgresql'\n```\n\n## Configuration\n\n### Types of Postgres Stores\n\nThere are two different types of Postgres Stores:\n\n1. `PostgresStoreAggregatedIP` (with the default `PostgresStore` constructor)-\n   which aggregates the IP count in the table, as shown in the following table\n\n| key         | session_id | count |\n| ----------- | ---------- | ----- |\n| 192.168.1.1 | 1          | 3     |\n| 192.168.2.1 | 1          | 1     |\n\n2. `PostgresStoreIndividualIP` - which stores the IP of each request in a\n   separate row (as shown in the following table) and performs the aggregation\n   at a separate step\n\n| id  | key         | session_id | event_time                |\n| --- | ----------- | ---------- | ------------------------- |\n| 1   | 192.168.1.1 | 1          | 2023-09-13T07:40:09+00:00 |\n| 2   | 192.168.1.1 | 1          | 2023-09-13T07:40:10+00:00 |\n| 3   | 192.168.1.1 | 1          | 2023-09-13T07:40:11+00:00 |\n| 4   | 192.168.2.1 | 1          | 2023-09-13T07:40:11+00:00 |\n\n> Note: The database uses UUID as a data type for IDs, the tables contain\n> integers as IDs to keep illustration simple.\n\n### Constructor\n\nBoth types of store take the same input in their constructor\n\n- `config` - The database configuration as specified in the\n  [node-postgres](https://node-postgres.com/apis/client) configuration.\n- `prefix` - The unique name of the session (persisted in the database). Used by\n  the double-count check to avoid false-positives when a key is counted twice,\n  but with different prefixes.\n\n## Installation\n\nProject license is specified in the [license file](license.md). Third party\nlicenses are located in the [third_party_licenses folder](third_party_licenses)\n","readmeFilename":"readme.md"}