UNPKG

aws-apigw-authorizer

Version:
87 lines (86 loc) 2.21 kB
{ "name": "aws-apigw-authorizer", "version": "0.3.0", "description": "AWS Lambda Authorizer for API Gateway", "keywords": [ "aws", "apigateway", "authorizer", "api", "gateway", "custom", "amazon" ], "main": "lib/authorizer.js", "typings": "lib/authorizer.d.ts", "scripts": { "cover": "nyc npm t", "test": "mocha --require ts-node/register --timeout 5000 ./src/*.spec.ts", "watch": "mocha --watch --require ts-node/register --watch-extensions ts --timeout 5000 ./src/*.spec.ts", "tsc": "tsc --skipLibCheck", "build": "npm run cover && rm -rf lib && npm run tsc && cp src/*.js lib/", "smoke-test": "mkdir -p smoke-test && cd smoke-test && npm init -y && npm i ../ && node -e \"const importTest = require('aws-apigw-authorizer');\" && echo \" >> Import test OK\"; cd -; rm -rf smoke-test" }, "repository": { "type": "git", "url": "git+https://github.com/ottokruse/aws-apigw-authorizer.git" }, "author": "ottokruse@gmail.com", "files": [ "lib/!(*.spec).js", "lib/!(*.spec).d.ts" ], "license": "MIT", "homepage": "https://github.com/ottokruse/aws-apigw-authorizer", "dependencies": { "@types/aws-lambda": "^8.10.26", "basic-auth": "^2.0.1", "ip-range-check": "0.0.2", "jsonwebtoken": "^8.5.1", "jwks-rsa": "^1.5.1" }, "devDependencies": { "@types/chai": "^4.1.7", "@types/chai-as-promised": "^7.1.0", "@types/jsonwebtoken": "^8.3.2", "@types/mocha": "^5.2.7", "@types/nock": "^10.0.3", "@types/node": "^12.0.4", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", "mocha": "^6.1.4", "nock": "^10.0.6", "nyc": "^14.1.1", "ts-node": "^8.2.0", "typescript": "^3.5.1" }, "nyc": { "check-coverage": true, "lines": 85, "statements": 85, "functions": 85, "branches": 85, "include": [ "src/*.ts", "src/**/*.ts" ], "extension": [ ".ts" ], "exclude": [ "**/*.d.ts", "src/*.spec.ts", "testcontainer", "src/index.ts" ], "require": [ "ts-node/register" ], "reporter": [ "text", "text-summary", "html" ], "all": true } }