UNPKG

awsm-npm-registry

Version:
66 lines (65 loc) 1.71 kB
{ "lambda": { "envVars": [ "REGISTRY_BUCKET_NAME", "REGISTRY_FALLBACK_DISABLED" ], "deploy": true, "package": { "optimize": { "builder": "browserify", "minify": true, "ignore": [], "exclude": [ "aws-sdk" ], "includePaths": [ "node_modules/awsm-npm-registry/node_modules/aws-sdk", "node_modules/awsm-npm-registry/node_modules/superagent", "node_modules/awsm-npm-registry/node_modules/tar", "node_modules/awsm-npm-registry/node_modules/jsonjs", "node_modules/awsm-npm-registry/node_modules/javascript-natural-sort", "node_modules/awsm-npm-registry/node_modules/bluebird" ] }, "excludePatterns": [] }, "cloudFormation": { "Description": "", "Handler": "aws_modules/awsm-npm-registry/main/handler.handler", "MemorySize": 128, "Runtime": "nodejs", "Timeout": 6 } }, "apiGateway": { "deploy": false, "cloudFormation": { "Type": "AWS", "Path": "{package}", "Method": "GET", "AuthorizationType": "none", "ApiKeyRequired": false, "RequestTemplates": { "application/json": "{ \"package_name\": \"$input.params('package')\" }" }, "RequestParameters": {}, "Responses": { "400": { "statusCode": "400" }, ".*does not exist.*": { "statusCode": "404" }, "default": { "statusCode": "200", "responseParameters": {}, "responseModels": {}, "responseTemplates": { "application/json": "" } } } } } }