UNPKG

@omgovich/firebase-functions-rate-limiter

Version:

JS/TS library that allows you to set per - time, per - user or per - anything limits for calling Firebase cloud functions

99 lines (98 loc) 3.58 kB
{ "name": "@omgovich/firebase-functions-rate-limiter", "version": "4.3.0", "description": "JS/TS library that allows you to set per - time, per - user or per - anything limits for calling Firebase cloud functions", "main": "dist/index.js", "types": "dist/index.d.ts", "engines": { "node": ">=16" }, "files": [ "/dist", "package-lock.js" ], "scripts": { "build:cleanbefore": "rm -rf dist", "build:lint": "tslint -c tslint.json -p tsconfig.lint.json", "build:node": "tsc", "build": "npm run build:cleanbefore && npm run build:node && npm run build:lint", "prepare": "NODE_ENV=production npm run build", "test": "find src -name '*.spec.test.ts' | TS_NODE_FILES=true TS_NODE_CACHE=false TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' xargs mocha -r ts-node/register --require source-map-support/register", "do_verify": "find src -name '*.integration.test.ts' | TS_NODE_FILES=true TS_NODE_CACHE=false TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' xargs mocha -r ts-node/register --require source-map-support/register", "verify": "bash scripts/run-integration-tests-with-firebase-emulator.sh", "lint-fix": "tslint --fix -c tslint.json -p tsconfig.lint.json", "checkall": "npm run lint && npm run build && npm run test && npm run verify", "testall": "npm run test && npm run verify", "testall-with-coverage": "nyc npm run testall", "testall-with-coverage-lcov": "nyc --reporter=lcov npm run testall", "upload-coverage": "codecov", "semantic-release": "semantic-release" }, "peerDependencies": { "firebase-admin": "^10.3.0 || ^11.3.0 || ^12.1.0 || ^13.0.0", "firebase-functions": "^3.21.2 || ^4.1.0 || ^5.0.0 || ^6.0.0" }, "dependencies": { "ow": "^0.28.1" }, "devDependencies": { "@firebase/testing": "^0.20.11", "@types/chai": "^4.3.1", "@types/chai-as-promised": "^7.1.5", "@types/lodash": "^4.14.182", "@types/mocha": "^9.1.1", "@types/node": "^17.0.42", "@types/sinon": "^10.0.11", "@types/uuid": "^8.3.4", "chai": "^4.3.6", "chai-as-promised": "^7.1.1", "codecov": "^3.8.3", "firebase-admin": "^13.0.0", "firebase-functions": "^6.0.0", "istanbul": "^0.4.5", "lodash": "^4.17.21", "mocha": "^10.0.0", "nyc": "^15.1.0", "semantic-release": "^17.4.7", "sinon": "^14.0.0", "ts-node": "^10.8.1", "tslint": "^6.1.3", "typescript": "^4.7.3", "uuid": "^8.3.2" }, "nyc": { "extension": [ ".ts" ], "exclude": [ "**/*.d.ts", "**/*.test.ts", "**/_test" ], "include": [ "src/**/*.ts" ], "reporter": [ "html" ], "all": true }, "release": {}, "repository": { "type": "git", "url": "https://github.com/Jblew/firebase-functions-rate-limiter" }, "keywords": [ "firebase", "firebase-functions", "rate-limiter" ], "author": "Jędrzej Lewandowski <jedrzejblew@gmail.com> (https://jedrzej.lewandowski.doctor/)", "contributors": [ "Jędrzej Lewandowski <jedrzejblew@gmail.com> (https://jedrzej.lewandowski.doctor/)" ], "license": "MIT", "bugs": { "url": "https://github.com/Jblew/firebase-functions-rate-limiter/issues" } }