├── .gitignore ├── .serverless ├── cloudformation-template-create-stack.json ├── cloudformation-template-update-stack.json ├── serverless-state.json └── sls-express-mongodb.zip ├── LICENSE ├── README.md ├── _config.yml ├── code-of-conduct.md ├── contributing.md ├── lib ├── app.js ├── db.js └── routes │ ├── index.js │ └── notes │ ├── note.js │ └── notes.controller.js ├── package-lock.json ├── package.json ├── secrets.json ├── server.js └── serverless.yml /.gitignore: -------------------------------------------------------------------------------- 1 | # package directories 2 | node_modules -------------------------------------------------------------------------------- /.serverless/cloudformation-template-create-stack.json: -------------------------------------------------------------------------------- 1 | { 2 | "AWSTemplateFormatVersion": "2010-09-09", 3 | "Description": "The AWS CloudFormation template for this Serverless application", 4 | "Resources": { 5 | "ServerlessDeploymentBucket": { 6 | "Type": "AWS::S3::Bucket", 7 | "Properties": { 8 | "BucketEncryption": { 9 | "ServerSideEncryptionConfiguration": [ 10 | { 11 | "ServerSideEncryptionByDefault": { 12 | "SSEAlgorithm": "AES256" 13 | } 14 | } 15 | ] 16 | } 17 | } 18 | }, 19 | "ServerlessDeploymentBucketPolicy": { 20 | "Type": "AWS::S3::BucketPolicy", 21 | "Properties": { 22 | "Bucket": { 23 | "Ref": "ServerlessDeploymentBucket" 24 | }, 25 | "PolicyDocument": { 26 | "Statement": [ 27 | { 28 | "Action": "s3:*", 29 | "Effect": "Deny", 30 | "Principal": "*", 31 | "Resource": [ 32 | { 33 | "Fn::Join": [ 34 | "", 35 | [ 36 | "arn:aws:s3:::", 37 | { 38 | "Ref": "ServerlessDeploymentBucket" 39 | }, 40 | "/*" 41 | ] 42 | ] 43 | } 44 | ], 45 | "Condition": { 46 | "Bool": { 47 | "aws:SecureTransport": false 48 | } 49 | } 50 | } 51 | ] 52 | } 53 | } 54 | } 55 | }, 56 | "Outputs": { 57 | "ServerlessDeploymentBucketName": { 58 | "Value": { 59 | "Ref": "ServerlessDeploymentBucket" 60 | } 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /.serverless/cloudformation-template-update-stack.json: -------------------------------------------------------------------------------- 1 | { 2 | "AWSTemplateFormatVersion": "2010-09-09", 3 | "Description": "The AWS CloudFormation template for this Serverless application", 4 | "Resources": { 5 | "ServerlessDeploymentBucket": { 6 | "Type": "AWS::S3::Bucket", 7 | "Properties": { 8 | "BucketEncryption": { 9 | "ServerSideEncryptionConfiguration": [ 10 | { 11 | "ServerSideEncryptionByDefault": { 12 | "SSEAlgorithm": "AES256" 13 | } 14 | } 15 | ] 16 | } 17 | } 18 | }, 19 | "ServerlessDeploymentBucketPolicy": { 20 | "Type": "AWS::S3::BucketPolicy", 21 | "Properties": { 22 | "Bucket": { 23 | "Ref": "ServerlessDeploymentBucket" 24 | }, 25 | "PolicyDocument": { 26 | "Statement": [ 27 | { 28 | "Action": "s3:*", 29 | "Effect": "Deny", 30 | "Principal": "*", 31 | "Resource": [ 32 | { 33 | "Fn::Join": [ 34 | "", 35 | [ 36 | "arn:aws:s3:::", 37 | { 38 | "Ref": "ServerlessDeploymentBucket" 39 | }, 40 | "/*" 41 | ] 42 | ] 43 | } 44 | ], 45 | "Condition": { 46 | "Bool": { 47 | "aws:SecureTransport": false 48 | } 49 | } 50 | } 51 | ] 52 | } 53 | } 54 | }, 55 | "AppLogGroup": { 56 | "Type": "AWS::Logs::LogGroup", 57 | "Properties": { 58 | "LogGroupName": "/aws/lambda/sls-express-mongodb-production-app" 59 | } 60 | }, 61 | "IamRoleLambdaExecution": { 62 | "Type": "AWS::IAM::Role", 63 | "Properties": { 64 | "AssumeRolePolicyDocument": { 65 | "Version": "2012-10-17", 66 | "Statement": [ 67 | { 68 | "Effect": "Allow", 69 | "Principal": { 70 | "Service": [ 71 | "lambda.amazonaws.com" 72 | ] 73 | }, 74 | "Action": [ 75 | "sts:AssumeRole" 76 | ] 77 | } 78 | ] 79 | }, 80 | "Policies": [ 81 | { 82 | "PolicyName": { 83 | "Fn::Join": [ 84 | "-", 85 | [ 86 | "production", 87 | "sls-express-mongodb", 88 | "lambda" 89 | ] 90 | ] 91 | }, 92 | "PolicyDocument": { 93 | "Version": "2012-10-17", 94 | "Statement": [ 95 | { 96 | "Effect": "Allow", 97 | "Action": [ 98 | "logs:CreateLogStream" 99 | ], 100 | "Resource": [ 101 | { 102 | "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/sls-express-mongodb-production*:*" 103 | } 104 | ] 105 | }, 106 | { 107 | "Effect": "Allow", 108 | "Action": [ 109 | "logs:PutLogEvents" 110 | ], 111 | "Resource": [ 112 | { 113 | "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/sls-express-mongodb-production*:*:*" 114 | } 115 | ] 116 | } 117 | ] 118 | } 119 | } 120 | ], 121 | "Path": "/", 122 | "RoleName": { 123 | "Fn::Join": [ 124 | "-", 125 | [ 126 | "sls-express-mongodb", 127 | "production", 128 | { 129 | "Ref": "AWS::Region" 130 | }, 131 | "lambdaRole" 132 | ] 133 | ] 134 | } 135 | } 136 | }, 137 | "AppLambdaFunction": { 138 | "Type": "AWS::Lambda::Function", 139 | "Properties": { 140 | "Code": { 141 | "S3Bucket": { 142 | "Ref": "ServerlessDeploymentBucket" 143 | }, 144 | "S3Key": "serverless/sls-express-mongodb/production/1573753681786-2019-11-14T17:48:01.786Z/sls-express-mongodb.zip" 145 | }, 146 | "FunctionName": "sls-express-mongodb-production-app", 147 | "Handler": "server.run", 148 | "MemorySize": 1024, 149 | "Role": { 150 | "Fn::GetAtt": [ 151 | "IamRoleLambdaExecution", 152 | "Arn" 153 | ] 154 | }, 155 | "Runtime": "nodejs8.10", 156 | "Timeout": 6, 157 | "Environment": { 158 | "Variables": { 159 | "NODE_ENV": "production", 160 | "DB": "mongodb+srv://admin:vintageVRT5@sls-api-pdbit.mongodb.net/test?retryWrites=true&w=majority" 161 | } 162 | } 163 | }, 164 | "DependsOn": [ 165 | "AppLogGroup", 166 | "IamRoleLambdaExecution" 167 | ] 168 | }, 169 | "AppLambdaVersionZRmodcvHkmv1ZYiFY9lC8YReBnm0VPaYt5mZ9tqLM": { 170 | "Type": "AWS::Lambda::Version", 171 | "DeletionPolicy": "Retain", 172 | "Properties": { 173 | "FunctionName": { 174 | "Ref": "AppLambdaFunction" 175 | }, 176 | "CodeSha256": "3g7lpfxEEMn9XfFB63qqIRqhel4+eJVdjAcfpg/uBZM=" 177 | } 178 | }, 179 | "ApiGatewayRestApi": { 180 | "Type": "AWS::ApiGateway::RestApi", 181 | "Properties": { 182 | "Name": "production-sls-express-mongodb", 183 | "EndpointConfiguration": { 184 | "Types": [ 185 | "EDGE" 186 | ] 187 | } 188 | } 189 | }, 190 | "ApiGatewayResourceProxyVar": { 191 | "Type": "AWS::ApiGateway::Resource", 192 | "Properties": { 193 | "ParentId": { 194 | "Fn::GetAtt": [ 195 | "ApiGatewayRestApi", 196 | "RootResourceId" 197 | ] 198 | }, 199 | "PathPart": "{proxy+}", 200 | "RestApiId": { 201 | "Ref": "ApiGatewayRestApi" 202 | } 203 | } 204 | }, 205 | "ApiGatewayMethodOptions": { 206 | "Type": "AWS::ApiGateway::Method", 207 | "Properties": { 208 | "AuthorizationType": "NONE", 209 | "HttpMethod": "OPTIONS", 210 | "MethodResponses": [ 211 | { 212 | "StatusCode": "200", 213 | "ResponseParameters": { 214 | "method.response.header.Access-Control-Allow-Origin": true, 215 | "method.response.header.Access-Control-Allow-Headers": true, 216 | "method.response.header.Access-Control-Allow-Methods": true, 217 | "method.response.header.Access-Control-Allow-Credentials": true 218 | }, 219 | "ResponseModels": {} 220 | } 221 | ], 222 | "RequestParameters": {}, 223 | "Integration": { 224 | "Type": "MOCK", 225 | "RequestTemplates": { 226 | "application/json": "{statusCode:200}" 227 | }, 228 | "ContentHandling": "CONVERT_TO_TEXT", 229 | "IntegrationResponses": [ 230 | { 231 | "StatusCode": "200", 232 | "ResponseParameters": { 233 | "method.response.header.Access-Control-Allow-Origin": "'*'", 234 | "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", 235 | "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,DELETE,GET,HEAD,PATCH,POST,PUT'", 236 | "method.response.header.Access-Control-Allow-Credentials": "'false'" 237 | }, 238 | "ResponseTemplates": { 239 | "application/json": "#set($origin = $input.params(\"Origin\"))\n#if($origin == \"\") #set($origin = $input.params(\"origin\")) #end\n#if($origin.matches(\".*\")) #set($context.responseOverride.header.Access-Control-Allow-Origin = $origin) #end" 240 | } 241 | } 242 | ] 243 | }, 244 | "ResourceId": { 245 | "Fn::GetAtt": [ 246 | "ApiGatewayRestApi", 247 | "RootResourceId" 248 | ] 249 | }, 250 | "RestApiId": { 251 | "Ref": "ApiGatewayRestApi" 252 | } 253 | } 254 | }, 255 | "ApiGatewayMethodProxyVarOptions": { 256 | "Type": "AWS::ApiGateway::Method", 257 | "Properties": { 258 | "AuthorizationType": "NONE", 259 | "HttpMethod": "OPTIONS", 260 | "MethodResponses": [ 261 | { 262 | "StatusCode": "200", 263 | "ResponseParameters": { 264 | "method.response.header.Access-Control-Allow-Origin": true, 265 | "method.response.header.Access-Control-Allow-Headers": true, 266 | "method.response.header.Access-Control-Allow-Methods": true, 267 | "method.response.header.Access-Control-Allow-Credentials": true 268 | }, 269 | "ResponseModels": {} 270 | } 271 | ], 272 | "RequestParameters": {}, 273 | "Integration": { 274 | "Type": "MOCK", 275 | "RequestTemplates": { 276 | "application/json": "{statusCode:200}" 277 | }, 278 | "ContentHandling": "CONVERT_TO_TEXT", 279 | "IntegrationResponses": [ 280 | { 281 | "StatusCode": "200", 282 | "ResponseParameters": { 283 | "method.response.header.Access-Control-Allow-Origin": "'*'", 284 | "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", 285 | "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,DELETE,GET,HEAD,PATCH,POST,PUT'", 286 | "method.response.header.Access-Control-Allow-Credentials": "'false'" 287 | }, 288 | "ResponseTemplates": { 289 | "application/json": "#set($origin = $input.params(\"Origin\"))\n#if($origin == \"\") #set($origin = $input.params(\"origin\")) #end\n#if($origin.matches(\".*\")) #set($context.responseOverride.header.Access-Control-Allow-Origin = $origin) #end" 290 | } 291 | } 292 | ] 293 | }, 294 | "ResourceId": { 295 | "Ref": "ApiGatewayResourceProxyVar" 296 | }, 297 | "RestApiId": { 298 | "Ref": "ApiGatewayRestApi" 299 | } 300 | } 301 | }, 302 | "ApiGatewayMethodAny": { 303 | "Type": "AWS::ApiGateway::Method", 304 | "Properties": { 305 | "HttpMethod": "ANY", 306 | "RequestParameters": {}, 307 | "ResourceId": { 308 | "Fn::GetAtt": [ 309 | "ApiGatewayRestApi", 310 | "RootResourceId" 311 | ] 312 | }, 313 | "RestApiId": { 314 | "Ref": "ApiGatewayRestApi" 315 | }, 316 | "ApiKeyRequired": false, 317 | "AuthorizationType": "NONE", 318 | "Integration": { 319 | "IntegrationHttpMethod": "POST", 320 | "Type": "AWS_PROXY", 321 | "Uri": { 322 | "Fn::Join": [ 323 | "", 324 | [ 325 | "arn:", 326 | { 327 | "Ref": "AWS::Partition" 328 | }, 329 | ":apigateway:", 330 | { 331 | "Ref": "AWS::Region" 332 | }, 333 | ":lambda:path/2015-03-31/functions/", 334 | { 335 | "Fn::GetAtt": [ 336 | "AppLambdaFunction", 337 | "Arn" 338 | ] 339 | }, 340 | "/invocations" 341 | ] 342 | ] 343 | } 344 | }, 345 | "MethodResponses": [] 346 | } 347 | }, 348 | "ApiGatewayMethodProxyVarAny": { 349 | "Type": "AWS::ApiGateway::Method", 350 | "Properties": { 351 | "HttpMethod": "ANY", 352 | "RequestParameters": {}, 353 | "ResourceId": { 354 | "Ref": "ApiGatewayResourceProxyVar" 355 | }, 356 | "RestApiId": { 357 | "Ref": "ApiGatewayRestApi" 358 | }, 359 | "ApiKeyRequired": false, 360 | "AuthorizationType": "NONE", 361 | "Integration": { 362 | "IntegrationHttpMethod": "POST", 363 | "Type": "AWS_PROXY", 364 | "Uri": { 365 | "Fn::Join": [ 366 | "", 367 | [ 368 | "arn:", 369 | { 370 | "Ref": "AWS::Partition" 371 | }, 372 | ":apigateway:", 373 | { 374 | "Ref": "AWS::Region" 375 | }, 376 | ":lambda:path/2015-03-31/functions/", 377 | { 378 | "Fn::GetAtt": [ 379 | "AppLambdaFunction", 380 | "Arn" 381 | ] 382 | }, 383 | "/invocations" 384 | ] 385 | ] 386 | } 387 | }, 388 | "MethodResponses": [] 389 | } 390 | }, 391 | "ApiGatewayDeployment1573753669215": { 392 | "Type": "AWS::ApiGateway::Deployment", 393 | "Properties": { 394 | "RestApiId": { 395 | "Ref": "ApiGatewayRestApi" 396 | }, 397 | "StageName": "production" 398 | }, 399 | "DependsOn": [ 400 | "ApiGatewayMethodOptions", 401 | "ApiGatewayMethodProxyVarOptions", 402 | "ApiGatewayMethodAny", 403 | "ApiGatewayMethodProxyVarAny" 404 | ] 405 | }, 406 | "AppLambdaPermissionApiGateway": { 407 | "Type": "AWS::Lambda::Permission", 408 | "Properties": { 409 | "FunctionName": { 410 | "Fn::GetAtt": [ 411 | "AppLambdaFunction", 412 | "Arn" 413 | ] 414 | }, 415 | "Action": "lambda:InvokeFunction", 416 | "Principal": "apigateway.amazonaws.com", 417 | "SourceArn": { 418 | "Fn::Join": [ 419 | "", 420 | [ 421 | "arn:", 422 | { 423 | "Ref": "AWS::Partition" 424 | }, 425 | ":execute-api:", 426 | { 427 | "Ref": "AWS::Region" 428 | }, 429 | ":", 430 | { 431 | "Ref": "AWS::AccountId" 432 | }, 433 | ":", 434 | { 435 | "Ref": "ApiGatewayRestApi" 436 | }, 437 | "/*/*" 438 | ] 439 | ] 440 | } 441 | } 442 | } 443 | }, 444 | "Outputs": { 445 | "ServerlessDeploymentBucketName": { 446 | "Value": { 447 | "Ref": "ServerlessDeploymentBucket" 448 | } 449 | }, 450 | "AppLambdaFunctionQualifiedArn": { 451 | "Description": "Current Lambda function version", 452 | "Value": { 453 | "Ref": "AppLambdaVersionZRmodcvHkmv1ZYiFY9lC8YReBnm0VPaYt5mZ9tqLM" 454 | } 455 | }, 456 | "ServiceEndpoint": { 457 | "Description": "URL of the service endpoint", 458 | "Value": { 459 | "Fn::Join": [ 460 | "", 461 | [ 462 | "https://", 463 | { 464 | "Ref": "ApiGatewayRestApi" 465 | }, 466 | ".execute-api.", 467 | { 468 | "Ref": "AWS::Region" 469 | }, 470 | ".", 471 | { 472 | "Ref": "AWS::URLSuffix" 473 | }, 474 | "/production" 475 | ] 476 | ] 477 | } 478 | } 479 | } 480 | } -------------------------------------------------------------------------------- /.serverless/serverless-state.json: -------------------------------------------------------------------------------- 1 | { 2 | "service": { 3 | "service": "sls-express-mongodb", 4 | "serviceObject": { 5 | "name": "sls-express-mongodb" 6 | }, 7 | "provider": { 8 | "stage": "production", 9 | "variableSyntax": "\\${([ ~:a-zA-Z0-9._@'\",\\-\\/\\(\\)*?]+?)}", 10 | "name": "aws", 11 | "runtime": "nodejs8.10", 12 | "region": "ap-south-1", 13 | "environment": { 14 | "NODE_ENV": "production", 15 | "DB": "mongodb+srv://admin:vintageVRT5@sls-api-pdbit.mongodb.net/test?retryWrites=true&w=majority" 16 | }, 17 | "versionFunctions": true, 18 | "remoteFunctionData": null, 19 | "compiledCloudFormationTemplate": { 20 | "AWSTemplateFormatVersion": "2010-09-09", 21 | "Description": "The AWS CloudFormation template for this Serverless application", 22 | "Resources": { 23 | "ServerlessDeploymentBucket": { 24 | "Type": "AWS::S3::Bucket", 25 | "Properties": { 26 | "BucketEncryption": { 27 | "ServerSideEncryptionConfiguration": [ 28 | { 29 | "ServerSideEncryptionByDefault": { 30 | "SSEAlgorithm": "AES256" 31 | } 32 | } 33 | ] 34 | } 35 | } 36 | }, 37 | "ServerlessDeploymentBucketPolicy": { 38 | "Type": "AWS::S3::BucketPolicy", 39 | "Properties": { 40 | "Bucket": { 41 | "Ref": "ServerlessDeploymentBucket" 42 | }, 43 | "PolicyDocument": { 44 | "Statement": [ 45 | { 46 | "Action": "s3:*", 47 | "Effect": "Deny", 48 | "Principal": "*", 49 | "Resource": [ 50 | { 51 | "Fn::Join": [ 52 | "", 53 | [ 54 | "arn:aws:s3:::", 55 | { 56 | "Ref": "ServerlessDeploymentBucket" 57 | }, 58 | "/*" 59 | ] 60 | ] 61 | } 62 | ], 63 | "Condition": { 64 | "Bool": { 65 | "aws:SecureTransport": false 66 | } 67 | } 68 | } 69 | ] 70 | } 71 | } 72 | }, 73 | "AppLogGroup": { 74 | "Type": "AWS::Logs::LogGroup", 75 | "Properties": { 76 | "LogGroupName": "/aws/lambda/sls-express-mongodb-production-app" 77 | } 78 | }, 79 | "IamRoleLambdaExecution": { 80 | "Type": "AWS::IAM::Role", 81 | "Properties": { 82 | "AssumeRolePolicyDocument": { 83 | "Version": "2012-10-17", 84 | "Statement": [ 85 | { 86 | "Effect": "Allow", 87 | "Principal": { 88 | "Service": [ 89 | "lambda.amazonaws.com" 90 | ] 91 | }, 92 | "Action": [ 93 | "sts:AssumeRole" 94 | ] 95 | } 96 | ] 97 | }, 98 | "Policies": [ 99 | { 100 | "PolicyName": { 101 | "Fn::Join": [ 102 | "-", 103 | [ 104 | "production", 105 | "sls-express-mongodb", 106 | "lambda" 107 | ] 108 | ] 109 | }, 110 | "PolicyDocument": { 111 | "Version": "2012-10-17", 112 | "Statement": [ 113 | { 114 | "Effect": "Allow", 115 | "Action": [ 116 | "logs:CreateLogStream" 117 | ], 118 | "Resource": [ 119 | { 120 | "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/sls-express-mongodb-production*:*" 121 | } 122 | ] 123 | }, 124 | { 125 | "Effect": "Allow", 126 | "Action": [ 127 | "logs:PutLogEvents" 128 | ], 129 | "Resource": [ 130 | { 131 | "Fn::Sub": "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/sls-express-mongodb-production*:*:*" 132 | } 133 | ] 134 | } 135 | ] 136 | } 137 | } 138 | ], 139 | "Path": "/", 140 | "RoleName": { 141 | "Fn::Join": [ 142 | "-", 143 | [ 144 | "sls-express-mongodb", 145 | "production", 146 | { 147 | "Ref": "AWS::Region" 148 | }, 149 | "lambdaRole" 150 | ] 151 | ] 152 | } 153 | } 154 | }, 155 | "AppLambdaFunction": { 156 | "Type": "AWS::Lambda::Function", 157 | "Properties": { 158 | "Code": { 159 | "S3Bucket": { 160 | "Ref": "ServerlessDeploymentBucket" 161 | }, 162 | "S3Key": "serverless/sls-express-mongodb/production/1573753681786-2019-11-14T17:48:01.786Z/sls-express-mongodb.zip" 163 | }, 164 | "FunctionName": "sls-express-mongodb-production-app", 165 | "Handler": "server.run", 166 | "MemorySize": 1024, 167 | "Role": { 168 | "Fn::GetAtt": [ 169 | "IamRoleLambdaExecution", 170 | "Arn" 171 | ] 172 | }, 173 | "Runtime": "nodejs8.10", 174 | "Timeout": 6, 175 | "Environment": { 176 | "Variables": { 177 | "NODE_ENV": "production", 178 | "DB": "mongodb+srv://admin:vintageVRT5@sls-api-pdbit.mongodb.net/test?retryWrites=true&w=majority" 179 | } 180 | } 181 | }, 182 | "DependsOn": [ 183 | "AppLogGroup", 184 | "IamRoleLambdaExecution" 185 | ] 186 | }, 187 | "AppLambdaVersionZRmodcvHkmv1ZYiFY9lC8YReBnm0VPaYt5mZ9tqLM": { 188 | "Type": "AWS::Lambda::Version", 189 | "DeletionPolicy": "Retain", 190 | "Properties": { 191 | "FunctionName": { 192 | "Ref": "AppLambdaFunction" 193 | }, 194 | "CodeSha256": "3g7lpfxEEMn9XfFB63qqIRqhel4+eJVdjAcfpg/uBZM=" 195 | } 196 | }, 197 | "ApiGatewayRestApi": { 198 | "Type": "AWS::ApiGateway::RestApi", 199 | "Properties": { 200 | "Name": "production-sls-express-mongodb", 201 | "EndpointConfiguration": { 202 | "Types": [ 203 | "EDGE" 204 | ] 205 | } 206 | } 207 | }, 208 | "ApiGatewayResourceProxyVar": { 209 | "Type": "AWS::ApiGateway::Resource", 210 | "Properties": { 211 | "ParentId": { 212 | "Fn::GetAtt": [ 213 | "ApiGatewayRestApi", 214 | "RootResourceId" 215 | ] 216 | }, 217 | "PathPart": "{proxy+}", 218 | "RestApiId": { 219 | "Ref": "ApiGatewayRestApi" 220 | } 221 | } 222 | }, 223 | "ApiGatewayMethodOptions": { 224 | "Type": "AWS::ApiGateway::Method", 225 | "Properties": { 226 | "AuthorizationType": "NONE", 227 | "HttpMethod": "OPTIONS", 228 | "MethodResponses": [ 229 | { 230 | "StatusCode": "200", 231 | "ResponseParameters": { 232 | "method.response.header.Access-Control-Allow-Origin": true, 233 | "method.response.header.Access-Control-Allow-Headers": true, 234 | "method.response.header.Access-Control-Allow-Methods": true, 235 | "method.response.header.Access-Control-Allow-Credentials": true 236 | }, 237 | "ResponseModels": {} 238 | } 239 | ], 240 | "RequestParameters": {}, 241 | "Integration": { 242 | "Type": "MOCK", 243 | "RequestTemplates": { 244 | "application/json": "{statusCode:200}" 245 | }, 246 | "ContentHandling": "CONVERT_TO_TEXT", 247 | "IntegrationResponses": [ 248 | { 249 | "StatusCode": "200", 250 | "ResponseParameters": { 251 | "method.response.header.Access-Control-Allow-Origin": "'*'", 252 | "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", 253 | "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,DELETE,GET,HEAD,PATCH,POST,PUT'", 254 | "method.response.header.Access-Control-Allow-Credentials": "'false'" 255 | }, 256 | "ResponseTemplates": { 257 | "application/json": "#set($origin = $input.params(\"Origin\"))\n#if($origin == \"\") #set($origin = $input.params(\"origin\")) #end\n#if($origin.matches(\".*\")) #set($context.responseOverride.header.Access-Control-Allow-Origin = $origin) #end" 258 | } 259 | } 260 | ] 261 | }, 262 | "ResourceId": { 263 | "Fn::GetAtt": [ 264 | "ApiGatewayRestApi", 265 | "RootResourceId" 266 | ] 267 | }, 268 | "RestApiId": { 269 | "Ref": "ApiGatewayRestApi" 270 | } 271 | } 272 | }, 273 | "ApiGatewayMethodProxyVarOptions": { 274 | "Type": "AWS::ApiGateway::Method", 275 | "Properties": { 276 | "AuthorizationType": "NONE", 277 | "HttpMethod": "OPTIONS", 278 | "MethodResponses": [ 279 | { 280 | "StatusCode": "200", 281 | "ResponseParameters": { 282 | "method.response.header.Access-Control-Allow-Origin": true, 283 | "method.response.header.Access-Control-Allow-Headers": true, 284 | "method.response.header.Access-Control-Allow-Methods": true, 285 | "method.response.header.Access-Control-Allow-Credentials": true 286 | }, 287 | "ResponseModels": {} 288 | } 289 | ], 290 | "RequestParameters": {}, 291 | "Integration": { 292 | "Type": "MOCK", 293 | "RequestTemplates": { 294 | "application/json": "{statusCode:200}" 295 | }, 296 | "ContentHandling": "CONVERT_TO_TEXT", 297 | "IntegrationResponses": [ 298 | { 299 | "StatusCode": "200", 300 | "ResponseParameters": { 301 | "method.response.header.Access-Control-Allow-Origin": "'*'", 302 | "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", 303 | "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,DELETE,GET,HEAD,PATCH,POST,PUT'", 304 | "method.response.header.Access-Control-Allow-Credentials": "'false'" 305 | }, 306 | "ResponseTemplates": { 307 | "application/json": "#set($origin = $input.params(\"Origin\"))\n#if($origin == \"\") #set($origin = $input.params(\"origin\")) #end\n#if($origin.matches(\".*\")) #set($context.responseOverride.header.Access-Control-Allow-Origin = $origin) #end" 308 | } 309 | } 310 | ] 311 | }, 312 | "ResourceId": { 313 | "Ref": "ApiGatewayResourceProxyVar" 314 | }, 315 | "RestApiId": { 316 | "Ref": "ApiGatewayRestApi" 317 | } 318 | } 319 | }, 320 | "ApiGatewayMethodAny": { 321 | "Type": "AWS::ApiGateway::Method", 322 | "Properties": { 323 | "HttpMethod": "ANY", 324 | "RequestParameters": {}, 325 | "ResourceId": { 326 | "Fn::GetAtt": [ 327 | "ApiGatewayRestApi", 328 | "RootResourceId" 329 | ] 330 | }, 331 | "RestApiId": { 332 | "Ref": "ApiGatewayRestApi" 333 | }, 334 | "ApiKeyRequired": false, 335 | "AuthorizationType": "NONE", 336 | "Integration": { 337 | "IntegrationHttpMethod": "POST", 338 | "Type": "AWS_PROXY", 339 | "Uri": { 340 | "Fn::Join": [ 341 | "", 342 | [ 343 | "arn:", 344 | { 345 | "Ref": "AWS::Partition" 346 | }, 347 | ":apigateway:", 348 | { 349 | "Ref": "AWS::Region" 350 | }, 351 | ":lambda:path/2015-03-31/functions/", 352 | { 353 | "Fn::GetAtt": [ 354 | "AppLambdaFunction", 355 | "Arn" 356 | ] 357 | }, 358 | "/invocations" 359 | ] 360 | ] 361 | } 362 | }, 363 | "MethodResponses": [] 364 | } 365 | }, 366 | "ApiGatewayMethodProxyVarAny": { 367 | "Type": "AWS::ApiGateway::Method", 368 | "Properties": { 369 | "HttpMethod": "ANY", 370 | "RequestParameters": {}, 371 | "ResourceId": { 372 | "Ref": "ApiGatewayResourceProxyVar" 373 | }, 374 | "RestApiId": { 375 | "Ref": "ApiGatewayRestApi" 376 | }, 377 | "ApiKeyRequired": false, 378 | "AuthorizationType": "NONE", 379 | "Integration": { 380 | "IntegrationHttpMethod": "POST", 381 | "Type": "AWS_PROXY", 382 | "Uri": { 383 | "Fn::Join": [ 384 | "", 385 | [ 386 | "arn:", 387 | { 388 | "Ref": "AWS::Partition" 389 | }, 390 | ":apigateway:", 391 | { 392 | "Ref": "AWS::Region" 393 | }, 394 | ":lambda:path/2015-03-31/functions/", 395 | { 396 | "Fn::GetAtt": [ 397 | "AppLambdaFunction", 398 | "Arn" 399 | ] 400 | }, 401 | "/invocations" 402 | ] 403 | ] 404 | } 405 | }, 406 | "MethodResponses": [] 407 | } 408 | }, 409 | "ApiGatewayDeployment1573753669215": { 410 | "Type": "AWS::ApiGateway::Deployment", 411 | "Properties": { 412 | "RestApiId": { 413 | "Ref": "ApiGatewayRestApi" 414 | }, 415 | "StageName": "production" 416 | }, 417 | "DependsOn": [ 418 | "ApiGatewayMethodOptions", 419 | "ApiGatewayMethodProxyVarOptions", 420 | "ApiGatewayMethodAny", 421 | "ApiGatewayMethodProxyVarAny" 422 | ] 423 | }, 424 | "AppLambdaPermissionApiGateway": { 425 | "Type": "AWS::Lambda::Permission", 426 | "Properties": { 427 | "FunctionName": { 428 | "Fn::GetAtt": [ 429 | "AppLambdaFunction", 430 | "Arn" 431 | ] 432 | }, 433 | "Action": "lambda:InvokeFunction", 434 | "Principal": "apigateway.amazonaws.com", 435 | "SourceArn": { 436 | "Fn::Join": [ 437 | "", 438 | [ 439 | "arn:", 440 | { 441 | "Ref": "AWS::Partition" 442 | }, 443 | ":execute-api:", 444 | { 445 | "Ref": "AWS::Region" 446 | }, 447 | ":", 448 | { 449 | "Ref": "AWS::AccountId" 450 | }, 451 | ":", 452 | { 453 | "Ref": "ApiGatewayRestApi" 454 | }, 455 | "/*/*" 456 | ] 457 | ] 458 | } 459 | } 460 | } 461 | }, 462 | "Outputs": { 463 | "ServerlessDeploymentBucketName": { 464 | "Value": { 465 | "Ref": "ServerlessDeploymentBucket" 466 | } 467 | }, 468 | "AppLambdaFunctionQualifiedArn": { 469 | "Description": "Current Lambda function version", 470 | "Value": { 471 | "Ref": "AppLambdaVersionZRmodcvHkmv1ZYiFY9lC8YReBnm0VPaYt5mZ9tqLM" 472 | } 473 | }, 474 | "ServiceEndpoint": { 475 | "Description": "URL of the service endpoint", 476 | "Value": { 477 | "Fn::Join": [ 478 | "", 479 | [ 480 | "https://", 481 | { 482 | "Ref": "ApiGatewayRestApi" 483 | }, 484 | ".execute-api.", 485 | { 486 | "Ref": "AWS::Region" 487 | }, 488 | ".", 489 | { 490 | "Ref": "AWS::URLSuffix" 491 | }, 492 | "/production" 493 | ] 494 | ] 495 | } 496 | } 497 | } 498 | }, 499 | "coreCloudFormationTemplate": { 500 | "AWSTemplateFormatVersion": "2010-09-09", 501 | "Description": "The AWS CloudFormation template for this Serverless application", 502 | "Resources": { 503 | "ServerlessDeploymentBucket": { 504 | "Type": "AWS::S3::Bucket", 505 | "Properties": { 506 | "BucketEncryption": { 507 | "ServerSideEncryptionConfiguration": [ 508 | { 509 | "ServerSideEncryptionByDefault": { 510 | "SSEAlgorithm": "AES256" 511 | } 512 | } 513 | ] 514 | } 515 | } 516 | }, 517 | "ServerlessDeploymentBucketPolicy": { 518 | "Type": "AWS::S3::BucketPolicy", 519 | "Properties": { 520 | "Bucket": { 521 | "Ref": "ServerlessDeploymentBucket" 522 | }, 523 | "PolicyDocument": { 524 | "Statement": [ 525 | { 526 | "Action": "s3:*", 527 | "Effect": "Deny", 528 | "Principal": "*", 529 | "Resource": [ 530 | { 531 | "Fn::Join": [ 532 | "", 533 | [ 534 | "arn:aws:s3:::", 535 | { 536 | "Ref": "ServerlessDeploymentBucket" 537 | }, 538 | "/*" 539 | ] 540 | ] 541 | } 542 | ], 543 | "Condition": { 544 | "Bool": { 545 | "aws:SecureTransport": false 546 | } 547 | } 548 | } 549 | ] 550 | } 551 | } 552 | } 553 | }, 554 | "Outputs": { 555 | "ServerlessDeploymentBucketName": { 556 | "Value": { 557 | "Ref": "ServerlessDeploymentBucket" 558 | } 559 | } 560 | } 561 | }, 562 | "vpc": {} 563 | }, 564 | "custom": { 565 | "secrets": { 566 | "NODE_ENV": "production", 567 | "DB": "mongodb+srv://admin:vintageVRT5@sls-api-pdbit.mongodb.net/test?retryWrites=true&w=majority" 568 | } 569 | }, 570 | "plugins": [ 571 | "serverless-offline" 572 | ], 573 | "pluginsData": {}, 574 | "functions": { 575 | "app": { 576 | "handler": "server.run", 577 | "events": [ 578 | { 579 | "http": { 580 | "path": "", 581 | "method": "any", 582 | "cors": { 583 | "origins": [ 584 | "*" 585 | ], 586 | "origin": "*", 587 | "methods": [ 588 | "OPTIONS", 589 | "ANY" 590 | ], 591 | "headers": [ 592 | "Content-Type", 593 | "X-Amz-Date", 594 | "Authorization", 595 | "X-Api-Key", 596 | "X-Amz-Security-Token", 597 | "X-Amz-User-Agent" 598 | ], 599 | "allowCredentials": false 600 | }, 601 | "integration": "AWS_PROXY" 602 | } 603 | }, 604 | { 605 | "http": { 606 | "path": "{proxy+}", 607 | "method": "any", 608 | "cors": { 609 | "origins": [ 610 | "*" 611 | ], 612 | "origin": "*", 613 | "methods": [ 614 | "OPTIONS", 615 | "ANY" 616 | ], 617 | "headers": [ 618 | "Content-Type", 619 | "X-Amz-Date", 620 | "Authorization", 621 | "X-Api-Key", 622 | "X-Amz-Security-Token", 623 | "X-Amz-User-Agent" 624 | ], 625 | "allowCredentials": false 626 | }, 627 | "integration": "AWS_PROXY" 628 | } 629 | } 630 | ], 631 | "name": "sls-express-mongodb-production-app", 632 | "package": {}, 633 | "memory": 1024, 634 | "timeout": 6, 635 | "runtime": "nodejs8.10", 636 | "vpc": {} 637 | } 638 | }, 639 | "serviceFilename": "serverless.yml", 640 | "layers": {}, 641 | "artifact": "C:\\Users\\irizv\\OneDrive\\Desktop\\serverless\\tutorial\\sls-express-mongodb\\.serverless\\sls-express-mongodb.zip" 642 | }, 643 | "package": { 644 | "artifactDirectoryName": "serverless/sls-express-mongodb/production/1573753681786-2019-11-14T17:48:01.786Z", 645 | "artifact": "sls-express-mongodb.zip" 646 | } 647 | } -------------------------------------------------------------------------------- /.serverless/sls-express-mongodb.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/realabbas/serverless-lambda-node-express-mongodb/3fd974dbaa8cb213097d66f2877e8b41a61adb76/.serverless/sls-express-mongodb.zip -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | CC0 1.0 Universal 2 | 3 | Statement of Purpose 4 | 5 | The laws of most jurisdictions throughout the world automatically confer 6 | exclusive Copyright and Related Rights (defined below) upon the creator and 7 | subsequent owner(s) (each and all, an "owner") of an original work of 8 | authorship and/or a database (each, a "Work"). 9 | 10 | Certain owners wish to permanently relinquish those rights to a Work for the 11 | purpose of contributing to a commons of creative, cultural and scientific 12 | works ("Commons") that the public can reliably and without fear of later 13 | claims of infringement build upon, modify, incorporate in other works, reuse 14 | and redistribute as freely as possible in any form whatsoever and for any 15 | purposes, including without limitation commercial purposes. These owners may 16 | contribute to the Commons to promote the ideal of a free culture and the 17 | further production of creative, cultural and scientific works, or to gain 18 | reputation or greater distribution for their Work in part through the use and 19 | efforts of others. 20 | 21 | For these and/or other purposes and motivations, and without any expectation 22 | of additional consideration or compensation, the person associating CC0 with a 23 | Work (the "Affirmer"), to the extent that he or she is an owner of Copyright 24 | and Related Rights in the Work, voluntarily elects to apply CC0 to the Work 25 | and publicly distribute the Work under its terms, with knowledge of his or her 26 | Copyright and Related Rights in the Work and the meaning and intended legal 27 | effect of CC0 on those rights. 28 | 29 | 1. Copyright and Related Rights. A Work made available under CC0 may be 30 | protected by copyright and related or neighboring rights ("Copyright and 31 | Related Rights"). Copyright and Related Rights include, but are not limited 32 | to, the following: 33 | 34 | i. the right to reproduce, adapt, distribute, perform, display, communicate, 35 | and translate a Work; 36 | 37 | ii. moral rights retained by the original author(s) and/or performer(s); 38 | 39 | iii. publicity and privacy rights pertaining to a person's image or likeness 40 | depicted in a Work; 41 | 42 | iv. rights protecting against unfair competition in regards to a Work, 43 | subject to the limitations in paragraph 4(a), below; 44 | 45 | v. rights protecting the extraction, dissemination, use and reuse of data in 46 | a Work; 47 | 48 | vi. database rights (such as those arising under Directive 96/9/EC of the 49 | European Parliament and of the Council of 11 March 1996 on the legal 50 | protection of databases, and under any national implementation thereof, 51 | including any amended or successor version of such directive); and 52 | 53 | vii. other similar, equivalent or corresponding rights throughout the world 54 | based on applicable law or treaty, and any national implementations thereof. 55 | 56 | 2. Waiver. To the greatest extent permitted by, but not in contravention of, 57 | applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and 58 | unconditionally waives, abandons, and surrenders all of Affirmer's Copyright 59 | and Related Rights and associated claims and causes of action, whether now 60 | known or unknown (including existing as well as future claims and causes of 61 | action), in the Work (i) in all territories worldwide, (ii) for the maximum 62 | duration provided by applicable law or treaty (including future time 63 | extensions), (iii) in any current or future medium and for any number of 64 | copies, and (iv) for any purpose whatsoever, including without limitation 65 | commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes 66 | the Waiver for the benefit of each member of the public at large and to the 67 | detriment of Affirmer's heirs and successors, fully intending that such Waiver 68 | shall not be subject to revocation, rescission, cancellation, termination, or 69 | any other legal or equitable action to disrupt the quiet enjoyment of the Work 70 | by the public as contemplated by Affirmer's express Statement of Purpose. 71 | 72 | 3. Public License Fallback. Should any part of the Waiver for any reason be 73 | judged legally invalid or ineffective under applicable law, then the Waiver 74 | shall be preserved to the maximum extent permitted taking into account 75 | Affirmer's express Statement of Purpose. In addition, to the extent the Waiver 76 | is so judged Affirmer hereby grants to each affected person a royalty-free, 77 | non transferable, non sublicensable, non exclusive, irrevocable and 78 | unconditional license to exercise Affirmer's Copyright and Related Rights in 79 | the Work (i) in all territories worldwide, (ii) for the maximum duration 80 | provided by applicable law or treaty (including future time extensions), (iii) 81 | in any current or future medium and for any number of copies, and (iv) for any 82 | purpose whatsoever, including without limitation commercial, advertising or 83 | promotional purposes (the "License"). The License shall be deemed effective as 84 | of the date CC0 was applied by Affirmer to the Work. Should any part of the 85 | License for any reason be judged legally invalid or ineffective under 86 | applicable law, such partial invalidity or ineffectiveness shall not 87 | invalidate the remainder of the License, and in such case Affirmer hereby 88 | affirms that he or she will not (i) exercise any of his or her remaining 89 | Copyright and Related Rights in the Work or (ii) assert any associated claims 90 | and causes of action with respect to the Work, in either case contrary to 91 | Affirmer's express Statement of Purpose. 92 | 93 | 4. Limitations and Disclaimers. 94 | 95 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 96 | surrendered, licensed or otherwise affected by this document. 97 | 98 | b. Affirmer offers the Work as-is and makes no representations or warranties 99 | of any kind concerning the Work, express, implied, statutory or otherwise, 100 | including without limitation warranties of title, merchantability, fitness 101 | for a particular purpose, non infringement, or the absence of latent or 102 | other defects, accuracy, or the present or absence of errors, whether or not 103 | discoverable, all to the greatest extent permissible under applicable law. 104 | 105 | c. Affirmer disclaims responsibility for clearing rights of other persons 106 | that may apply to the Work or any use thereof, including without limitation 107 | any person's Copyright and Related Rights in the Work. Further, Affirmer 108 | disclaims responsibility for obtaining any necessary consents, permissions 109 | or other rights required for any use of the Work. 110 | 111 | d. Affirmer understands and acknowledges that Creative Commons is not a 112 | party to this document and has no duty or obligation with respect to this 113 | CC0 or use of the Work. 114 | 115 | For more information, please see 116 | 117 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Serverless-AWS-Lambda-Node-Express-MongoDb Boilerplate 🚀 2 | 3 | ![Visitors](https://visitor-badge.glitch.me/badge?page_id=realabbas.serverless-lambda-node-express-mongodb) 4 | 5 | Boilerplate for Creating Restful API using Express.js, Node.js, Mongodb and Setting up on AWS Lambda 6 | 7 | ![Serverless-AWS-Lambda-Node-Express-MongoDb Search Results](https://www.rubix.nl/wp-content/uploads/2018/10/nodelambdalove1.png) 8 | 9 | - Prerequisites 10 | 11 | - `AWS IAM Role` 12 | - `Mongodb Atlas Cloud` 13 | - `Serverless Framework` 14 | - `Node.js` 15 | - `Express.js` 16 | - `Mongodb` 17 | - `body-parser` 18 | - `Serverless-offline` 19 | - `loadtest` 20 | 21 | **Installation Steps** 22 | 23 | In the root directory run the following command: 24 | - `npm install` 25 | It will save all the dependencies and dev-dependencies present in package.json 26 | 27 | **Setup the IAM Role and configure the serverless(sls) commandline.** 28 | 29 | **Create an account on Mongodb Atlass Cloud and Whitelist the IP Address 0.0.0.0/0. Also create a user in database and setup it in secrets.json** 30 | 31 | **Create Restful API using Express and Node** 32 | 33 | **Deploy the codebase using ``` sls deploy ``` for the development stage** 34 | For production switch over to ``` production ``` in secrets.json 35 | 36 | After ``` sls deploy ```. Code will be deployed on AWS Lambda. Head over to AWS Lambda and test it using Postman or Insomnia. After that for scaling test, use ``` loadtest ``` and send 100 GET concurrent requests for 10 simulatenous users and watch the latency that comes around to be ~5 seconds. 37 | 38 | Cheers! **AWS Lambda Auto Scaling with increase in requests.** 39 | 40 | *Resource: Thanks Hackernoon* 41 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /code-of-conduct.md: -------------------------------------------------------------------------------- 1 | # Contributor Code of Conduct 2 | 3 | As contributors and maintainers of this project, and in the interest of 4 | fostering an open and welcoming community, we pledge to respect all people who 5 | contribute through reporting issues, posting feature requests, updating 6 | documentation, submitting pull requests or patches, and other activities. 7 | 8 | We are committed to making participation in this project a harassment-free 9 | experience for everyone, regardless of level of experience, gender, gender 10 | identity and expression, sexual orientation, disability, personal appearance, 11 | body size, race, ethnicity, age, religion, or nationality. 12 | 13 | Examples of unacceptable behavior by participants include: 14 | 15 | * The use of sexualized language or imagery 16 | * Personal attacks 17 | * Trolling or insulting/derogatory comments 18 | * Public or private harassment 19 | * Publishing other's private information, such as physical or electronic 20 | addresses, without explicit permission 21 | * Other unethical or unprofessional conduct 22 | 23 | Project maintainers have the right and responsibility to remove, edit, or 24 | reject comments, commits, code, wiki edits, issues, and other contributions 25 | that are not aligned to this Code of Conduct, or to ban temporarily or 26 | permanently any contributor for other behaviors that they deem inappropriate, 27 | threatening, offensive, or harmful. 28 | 29 | By adopting this Code of Conduct, project maintainers commit themselves to 30 | fairly and consistently applying these principles to every aspect of managing 31 | this project. Project maintainers who do not follow or enforce the Code of 32 | Conduct may be permanently removed from the project team. 33 | 34 | This Code of Conduct applies both within project spaces and in public spaces 35 | when an individual is representing the project or its community. 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 38 | reported by contacting a project maintainer at dheerajjoshi1991@gmail.com. All 39 | complaints will be reviewed and investigated and will result in a response that 40 | is deemed necessary and appropriate to the circumstances. Maintainers are 41 | obligated to maintain confidentiality with regard to the reporter of an 42 | incident. 43 | 44 | 45 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 46 | version 1.3.0, available at 47 | [http://contributor-covenant.org/version/1/3/0/][version] 48 | 49 | [homepage]: http://contributor-covenant.org 50 | [version]: http://contributor-covenant.org/version/1/3/0/ 51 | -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- 1 | # Contribution Guidelines 2 | 3 | Please note that this project is released with a [Contributor Code of Conduct](code-of-conduct.md). By participating in this project you agree to abide by its terms. 4 | 5 | - 6 | 7 | Ensure your pull request adheres to the following guidelines: 8 | 9 | - Search previous suggestions before making a new one, as yours may be a duplicate. 10 | - Suggested programs should be available and not outdated. 11 | - Make an individual pull request for each suggestion. 12 | - Use the following format: `[program](link) - Description.` 13 | - Additions should be added to the bottom of the relevant category. 14 | - New categories, or improvements to the existing categorization are welcome. 15 | - Link to the disclosure programs, not main website. 16 | - Keep descriptions short and simple, but descriptive. 17 | - Don't mention `hackerone/bugcrowd` in the description as it's implied. 18 | - Start the description with a capital and end with a full stop/period. 19 | - Check your spelling and grammar. 20 | - Make sure your text editor is set to remove trailing whitespace. 21 | - The pull request should have a useful title and include a link to the package and why it should be included. 22 | 23 | Thank you for your suggestion! 24 | 25 | ### Updating your PR 26 | 27 | A lot of times, making a PR adhere to the standards above can be difficult. If the maintainers notice anything that we'd like changed, we'll ask you to edit your PR before we merge it. If you're not sure how to do that, [here is a guide](https://github.com/RichardLitt/knowledge/blob/master/github/amending-a-commit-guide.md) on the different ways you can update your PR so that we can merge it. 28 | -------------------------------------------------------------------------------- /lib/app.js: -------------------------------------------------------------------------------- 1 | 2 | const express = require('express') 3 | const app = express() 4 | const bodyParser = require('body-parser') 5 | app.use(bodyParser.json()) 6 | app.use(bodyParser.urlencoded({ extended: true })) 7 | const helmet = require('helmet') 8 | app.use(helmet()) 9 | require('./db') 10 | const routes = require('./routes') 11 | app.use('/api', routes) 12 | module.exports = app -------------------------------------------------------------------------------- /lib/db.js: -------------------------------------------------------------------------------- 1 | 2 | const mongoose = require('mongoose') 3 | mongoose.connect(process.env.DB) -------------------------------------------------------------------------------- /lib/routes/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const router = express.Router() 3 | const notes = require('./notes/notes.controller') 4 | router.use('/notes', notes) 5 | // Add more routes here if you want! 6 | module.exports = router -------------------------------------------------------------------------------- /lib/routes/notes/note.js: -------------------------------------------------------------------------------- 1 | const mongoose = require('mongoose') 2 | const NoteSchema = new mongoose.Schema({ 3 | title: String, 4 | // this is a bug in the markdown - should not have the quotes "" 5 | description: String 6 | }) 7 | module.exports = mongoose.model('Note', NoteSchema) -------------------------------------------------------------------------------- /lib/routes/notes/notes.controller.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const notesController = express.Router() 3 | const Note = require('./note') 4 | notesController 5 | .post('/', async (req, res, next) => { 6 | const note = await Note.create(req.body) 7 | res.status(200).send(note) 8 | }) 9 | notesController 10 | .put('/:id', async (req, res, next) => { 11 | const note = await Note.findByIdAndUpdate(req.params.id, { $set: req.body }, { $upsert: true, new: true }) 12 | res.status(200).send(note) 13 | }) 14 | notesController 15 | .get('/', async (req, res, next) => { 16 | const notes = await Note.find({}) 17 | res.status(200).send(notes) 18 | }) 19 | notesController 20 | .get('/:id', async (req, res, next) => { 21 | const note = await Note.findById(req.params.id) 22 | res.status(200).send(note) 23 | }) 24 | notesController 25 | .delete('/:id', async (req, res, next) => { 26 | const note = await Note.deleteOne({ _id: req.params.id }) 27 | res.status(200).send(note) 28 | }) 29 | module.exports = notesController -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sls-express-mongodb", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@hapi/accept": { 8 | "version": "3.2.3", 9 | "resolved": "https://registry.npmjs.org/@hapi/accept/-/accept-3.2.3.tgz", 10 | "integrity": "sha512-qEzsOJkCAJZxwj3iF83bSG9Lxy8Bpbrt8mRLNdvSALT6vlU2cYh6ZEHKEZPy4h/Mo31Su3j0rJgFF91+W1RWDQ==", 11 | "dev": true, 12 | "requires": { 13 | "@hapi/boom": "7.4.11", 14 | "@hapi/hoek": "8.5.0" 15 | } 16 | }, 17 | "@hapi/address": { 18 | "version": "2.1.2", 19 | "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.2.tgz", 20 | "integrity": "sha512-O4QDrx+JoGKZc6aN64L04vqa7e41tIiLU+OvKdcYaEMP97UttL0f9GIi9/0A4WAMx0uBd6SidDIhktZhgOcN8Q==", 21 | "dev": true 22 | }, 23 | "@hapi/ammo": { 24 | "version": "3.1.1", 25 | "resolved": "https://registry.npmjs.org/@hapi/ammo/-/ammo-3.1.1.tgz", 26 | "integrity": "sha512-NYFK27VSPGyQ/KmOQedpQH4PSjE7awLntepX68vrYtRvuJO21W1kX0bK2p3C+6ltUwtCQSvmNT8a4uMVAysC6Q==", 27 | "dev": true, 28 | "requires": { 29 | "@hapi/hoek": "8.5.0" 30 | } 31 | }, 32 | "@hapi/b64": { 33 | "version": "4.2.1", 34 | "resolved": "https://registry.npmjs.org/@hapi/b64/-/b64-4.2.1.tgz", 35 | "integrity": "sha512-zqHpQuH5CBMw6hADzKfU/IGNrxq1Q+/wTYV+OiZRQN9F3tMyk+9BUMeBvFRMamduuqL8iSp62QAnJ+7ATiYLWA==", 36 | "dev": true, 37 | "requires": { 38 | "@hapi/hoek": "8.5.0" 39 | } 40 | }, 41 | "@hapi/boom": { 42 | "version": "7.4.11", 43 | "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-7.4.11.tgz", 44 | "integrity": "sha512-VSU/Cnj1DXouukYxxkes4nNJonCnlogHvIff1v1RVoN4xzkKhMXX+GRmb3NyH1iar10I9WFPDv2JPwfH3GaV0A==", 45 | "dev": true, 46 | "requires": { 47 | "@hapi/hoek": "8.5.0" 48 | } 49 | }, 50 | "@hapi/bounce": { 51 | "version": "1.3.2", 52 | "resolved": "https://registry.npmjs.org/@hapi/bounce/-/bounce-1.3.2.tgz", 53 | "integrity": "sha512-3bnb1AlcEByFZnpDIidxQyw1Gds81z/1rSqlx4bIEE+wUN0ATj0D49B5cE1wGocy90Rp/de4tv7GjsKd5RQeew==", 54 | "dev": true, 55 | "requires": { 56 | "@hapi/boom": "7.4.11", 57 | "@hapi/hoek": "8.5.0" 58 | } 59 | }, 60 | "@hapi/bourne": { 61 | "version": "1.3.2", 62 | "resolved": "https://registry.npmjs.org/@hapi/bourne/-/bourne-1.3.2.tgz", 63 | "integrity": "sha512-1dVNHT76Uu5N3eJNTYcvxee+jzX4Z9lfciqRRHCU27ihbUcYi+iSc2iml5Ke1LXe1SyJCLA0+14Jh4tXJgOppA==", 64 | "dev": true 65 | }, 66 | "@hapi/call": { 67 | "version": "5.1.2", 68 | "resolved": "https://registry.npmjs.org/@hapi/call/-/call-5.1.2.tgz", 69 | "integrity": "sha512-10XyXbpo0fAXmOf/Q4BCgsQrrTZuwa6/FcSnuKqD06sZz5yMCmJTD8VpmolEjEfwJqXtQBZHj9g/IYcmHk3nxQ==", 70 | "dev": true, 71 | "requires": { 72 | "@hapi/boom": "7.4.11", 73 | "@hapi/hoek": "8.5.0" 74 | } 75 | }, 76 | "@hapi/catbox": { 77 | "version": "10.2.3", 78 | "resolved": "https://registry.npmjs.org/@hapi/catbox/-/catbox-10.2.3.tgz", 79 | "integrity": "sha512-kN9hXO4NYyOHW09CXiuj5qW1syc/0XeVOBsNNk0Tz89wWNQE5h21WF+VsfAw3uFR8swn/Wj3YEVBnWqo82m/JQ==", 80 | "dev": true, 81 | "requires": { 82 | "@hapi/boom": "7.4.11", 83 | "@hapi/hoek": "8.5.0", 84 | "@hapi/joi": "16.1.7", 85 | "@hapi/podium": "3.4.3" 86 | } 87 | }, 88 | "@hapi/catbox-memory": { 89 | "version": "4.1.1", 90 | "resolved": "https://registry.npmjs.org/@hapi/catbox-memory/-/catbox-memory-4.1.1.tgz", 91 | "integrity": "sha512-T6Hdy8DExzG0jY7C8yYWZB4XHfc0v+p1EGkwxl2HoaPYAmW7I3E59M/IvmSVpis8RPcIoBp41ZpO2aZPBpM2Ww==", 92 | "dev": true, 93 | "requires": { 94 | "@hapi/boom": "7.4.11", 95 | "@hapi/hoek": "8.5.0" 96 | } 97 | }, 98 | "@hapi/content": { 99 | "version": "4.1.0", 100 | "resolved": "https://registry.npmjs.org/@hapi/content/-/content-4.1.0.tgz", 101 | "integrity": "sha512-hv2Czsl49hnWDEfRZOFow/BmYbKyfEknmk3k83gOp6moFn5ceHB4xVcna8OwsGfy8dxO81lhpPy+JgQEaU4SWw==", 102 | "dev": true, 103 | "requires": { 104 | "@hapi/boom": "7.4.11" 105 | } 106 | }, 107 | "@hapi/cryptiles": { 108 | "version": "4.2.1", 109 | "resolved": "https://registry.npmjs.org/@hapi/cryptiles/-/cryptiles-4.2.1.tgz", 110 | "integrity": "sha512-XoqgKsHK0l/VpqPs+tr6j6vE+VQ3+2bkF2stvttmc7xAOf1oSAwHcJ0tlp/6MxMysktt1IEY0Csy3khKaP9/uQ==", 111 | "dev": true, 112 | "requires": { 113 | "@hapi/boom": "7.4.11" 114 | } 115 | }, 116 | "@hapi/file": { 117 | "version": "1.0.0", 118 | "resolved": "https://registry.npmjs.org/@hapi/file/-/file-1.0.0.tgz", 119 | "integrity": "sha512-Bsfp/+1Gyf70eGtnIgmScvrH8sSypO3TcK3Zf0QdHnzn/ACnAkI6KLtGACmNRPEzzIy+W7aJX5E+1fc9GwIABQ==", 120 | "dev": true 121 | }, 122 | "@hapi/formula": { 123 | "version": "1.2.0", 124 | "resolved": "https://registry.npmjs.org/@hapi/formula/-/formula-1.2.0.tgz", 125 | "integrity": "sha512-UFbtbGPjstz0eWHb+ga/GM3Z9EzqKXFWIbSOFURU0A/Gku0Bky4bCk9/h//K2Xr3IrCfjFNhMm4jyZ5dbCewGA==", 126 | "dev": true 127 | }, 128 | "@hapi/h2o2": { 129 | "version": "8.3.2", 130 | "resolved": "https://registry.npmjs.org/@hapi/h2o2/-/h2o2-8.3.2.tgz", 131 | "integrity": "sha512-2WkZq+QAkvYHWGqnUuG0stcVeGyv9T7bopBYnCJSUEuvBZlUf2BTX2JCVSKxsnTLOxCYwoC/aI4Rr0ZSRd2oVg==", 132 | "dev": true, 133 | "requires": { 134 | "@hapi/boom": "7.4.11", 135 | "@hapi/hoek": "8.5.0", 136 | "@hapi/joi": "16.1.7", 137 | "@hapi/wreck": "15.1.0" 138 | } 139 | }, 140 | "@hapi/hapi": { 141 | "version": "18.4.0", 142 | "resolved": "https://registry.npmjs.org/@hapi/hapi/-/hapi-18.4.0.tgz", 143 | "integrity": "sha512-uk9zqknRLcNVQKgrPURm85DqkdroWP8eDRekh/IPoKvC4VjdZSn6EH2eUriOwyud/CldeBS3HDIJ/PtRj3VxDQ==", 144 | "dev": true, 145 | "requires": { 146 | "@hapi/accept": "3.2.3", 147 | "@hapi/ammo": "3.1.1", 148 | "@hapi/boom": "7.4.11", 149 | "@hapi/bounce": "1.3.2", 150 | "@hapi/call": "5.1.2", 151 | "@hapi/catbox": "10.2.3", 152 | "@hapi/catbox-memory": "4.1.1", 153 | "@hapi/heavy": "6.2.2", 154 | "@hapi/hoek": "8.5.0", 155 | "@hapi/joi": "15.1.1", 156 | "@hapi/mimos": "4.1.1", 157 | "@hapi/podium": "3.4.3", 158 | "@hapi/shot": "4.1.2", 159 | "@hapi/somever": "2.1.1", 160 | "@hapi/statehood": "6.1.2", 161 | "@hapi/subtext": "6.1.2", 162 | "@hapi/teamwork": "3.3.1", 163 | "@hapi/topo": "3.1.6" 164 | }, 165 | "dependencies": { 166 | "@hapi/joi": { 167 | "version": "15.1.1", 168 | "resolved": "https://registry.npmjs.org/@hapi/joi/-/joi-15.1.1.tgz", 169 | "integrity": "sha512-entf8ZMOK8sc+8YfeOlM8pCfg3b5+WZIKBfUaaJT8UsjAAPjartzxIYm3TIbjvA4u+u++KbcXD38k682nVHDAQ==", 170 | "dev": true, 171 | "requires": { 172 | "@hapi/address": "2.1.2", 173 | "@hapi/bourne": "1.3.2", 174 | "@hapi/hoek": "8.5.0", 175 | "@hapi/topo": "3.1.6" 176 | } 177 | } 178 | } 179 | }, 180 | "@hapi/heavy": { 181 | "version": "6.2.2", 182 | "resolved": "https://registry.npmjs.org/@hapi/heavy/-/heavy-6.2.2.tgz", 183 | "integrity": "sha512-PY1dCCO6dsze7RlafIRhTaGeyTgVe49A/lSkxbhKGjQ7x46o/OFf7hLiRqTCDh3atcEKf6362EaB3+kTUbCsVA==", 184 | "dev": true, 185 | "requires": { 186 | "@hapi/boom": "7.4.11", 187 | "@hapi/hoek": "8.5.0", 188 | "@hapi/joi": "16.1.7" 189 | } 190 | }, 191 | "@hapi/hoek": { 192 | "version": "8.5.0", 193 | "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-8.5.0.tgz", 194 | "integrity": "sha512-7XYT10CZfPsH7j9F1Jmg1+d0ezOux2oM2GfArAzLwWe4mE2Dr3hVjsAL6+TFY49RRJlCdJDMw3nJsLFroTc8Kw==", 195 | "dev": true 196 | }, 197 | "@hapi/iron": { 198 | "version": "5.1.4", 199 | "resolved": "https://registry.npmjs.org/@hapi/iron/-/iron-5.1.4.tgz", 200 | "integrity": "sha512-+ElC+OCiwWLjlJBmm8ZEWjlfzTMQTdgPnU/TsoU5QsktspIWmWi9IU4kU83nH+X/SSya8TP8h8P11Wr5L7dkQQ==", 201 | "dev": true, 202 | "requires": { 203 | "@hapi/b64": "4.2.1", 204 | "@hapi/boom": "7.4.11", 205 | "@hapi/bourne": "1.3.2", 206 | "@hapi/cryptiles": "4.2.1", 207 | "@hapi/hoek": "8.5.0" 208 | } 209 | }, 210 | "@hapi/joi": { 211 | "version": "16.1.7", 212 | "resolved": "https://registry.npmjs.org/@hapi/joi/-/joi-16.1.7.tgz", 213 | "integrity": "sha512-anaIgnZhNooG3LJLrTFzgGALTiO97zRA1UkvQHm9KxxoSiIzCozB3RCNCpDnfhTJD72QlrHA8nwGmNgpFFCIeg==", 214 | "dev": true, 215 | "requires": { 216 | "@hapi/address": "2.1.2", 217 | "@hapi/formula": "1.2.0", 218 | "@hapi/hoek": "8.5.0", 219 | "@hapi/pinpoint": "1.0.2", 220 | "@hapi/topo": "3.1.6" 221 | } 222 | }, 223 | "@hapi/mimos": { 224 | "version": "4.1.1", 225 | "resolved": "https://registry.npmjs.org/@hapi/mimos/-/mimos-4.1.1.tgz", 226 | "integrity": "sha512-CXoi/zfcTWfKYX756eEea8rXJRIb9sR4d7VwyAH9d3BkDyNgAesZxvqIdm55npQc6S9mU3FExinMAQVlIkz0eA==", 227 | "dev": true, 228 | "requires": { 229 | "@hapi/hoek": "8.5.0", 230 | "mime-db": "1.42.0" 231 | } 232 | }, 233 | "@hapi/nigel": { 234 | "version": "3.1.1", 235 | "resolved": "https://registry.npmjs.org/@hapi/nigel/-/nigel-3.1.1.tgz", 236 | "integrity": "sha512-R9YWx4S8yu0gcCBrMUDCiEFm1SQT895dMlYoeNBp8I6YhF1BFF1iYPueKA2Kkp9BvyHdjmvrxCOns7GMmpl+Fw==", 237 | "dev": true, 238 | "requires": { 239 | "@hapi/hoek": "8.5.0", 240 | "@hapi/vise": "3.1.1" 241 | } 242 | }, 243 | "@hapi/pez": { 244 | "version": "4.1.1", 245 | "resolved": "https://registry.npmjs.org/@hapi/pez/-/pez-4.1.1.tgz", 246 | "integrity": "sha512-TUa2C7Xk6J69HWrm+Ad+O6dFvdVAG0BiFUYaRsmkdWjFIfwHBCaOI1dWT/juNukSb39Lj6/mDVyjN+H4nKB3xg==", 247 | "dev": true, 248 | "requires": { 249 | "@hapi/b64": "4.2.1", 250 | "@hapi/boom": "7.4.11", 251 | "@hapi/content": "4.1.0", 252 | "@hapi/hoek": "8.5.0", 253 | "@hapi/nigel": "3.1.1" 254 | } 255 | }, 256 | "@hapi/pinpoint": { 257 | "version": "1.0.2", 258 | "resolved": "https://registry.npmjs.org/@hapi/pinpoint/-/pinpoint-1.0.2.tgz", 259 | "integrity": "sha512-dtXC/WkZBfC5vxscazuiJ6iq4j9oNx1SHknmIr8hofarpKUZKmlUVYVIhNVzIEgK5Wrc4GMHL5lZtt1uS2flmQ==", 260 | "dev": true 261 | }, 262 | "@hapi/podium": { 263 | "version": "3.4.3", 264 | "resolved": "https://registry.npmjs.org/@hapi/podium/-/podium-3.4.3.tgz", 265 | "integrity": "sha512-QJlnYLEYZWlKQ9fSOtuUcpANyoVGwT68GA9P0iQQCAetBK0fI+nbRBt58+aMixoifczWZUthuGkNjqKxgPh/CQ==", 266 | "dev": true, 267 | "requires": { 268 | "@hapi/hoek": "8.5.0", 269 | "@hapi/joi": "16.1.7" 270 | } 271 | }, 272 | "@hapi/shot": { 273 | "version": "4.1.2", 274 | "resolved": "https://registry.npmjs.org/@hapi/shot/-/shot-4.1.2.tgz", 275 | "integrity": "sha512-6LeHLjvsq/bQ0R+fhEyr7mqExRGguNTrxFZf5DyKe3CK6pNabiGgYO4JVFaRrLZ3JyuhkS0fo8iiRE2Ql2oA/A==", 276 | "dev": true, 277 | "requires": { 278 | "@hapi/hoek": "8.5.0", 279 | "@hapi/joi": "16.1.7" 280 | } 281 | }, 282 | "@hapi/somever": { 283 | "version": "2.1.1", 284 | "resolved": "https://registry.npmjs.org/@hapi/somever/-/somever-2.1.1.tgz", 285 | "integrity": "sha512-cic5Sto4KGd9B0oQSdKTokju+rYhCbdpzbMb0EBnrH5Oc1z048hY8PaZ1lx2vBD7I/XIfTQVQetBH57fU51XRA==", 286 | "dev": true, 287 | "requires": { 288 | "@hapi/bounce": "1.3.2", 289 | "@hapi/hoek": "8.5.0" 290 | } 291 | }, 292 | "@hapi/statehood": { 293 | "version": "6.1.2", 294 | "resolved": "https://registry.npmjs.org/@hapi/statehood/-/statehood-6.1.2.tgz", 295 | "integrity": "sha512-pYXw1x6npz/UfmtcpUhuMvdK5kuOGTKcJNfLqdNptzietK2UZH5RzNJSlv5bDHeSmordFM3kGItcuQWX2lj2nQ==", 296 | "dev": true, 297 | "requires": { 298 | "@hapi/boom": "7.4.11", 299 | "@hapi/bounce": "1.3.2", 300 | "@hapi/bourne": "1.3.2", 301 | "@hapi/cryptiles": "4.2.1", 302 | "@hapi/hoek": "8.5.0", 303 | "@hapi/iron": "5.1.4", 304 | "@hapi/joi": "16.1.7" 305 | } 306 | }, 307 | "@hapi/subtext": { 308 | "version": "6.1.2", 309 | "resolved": "https://registry.npmjs.org/@hapi/subtext/-/subtext-6.1.2.tgz", 310 | "integrity": "sha512-G1kqD1E2QdxpvpL26WieIyo3z0qCa/sAGSa2TJI/PYPWCR9rL0rqFvhWY774xPZ4uK1PV3TIaJcx8AruAvxclg==", 311 | "dev": true, 312 | "requires": { 313 | "@hapi/boom": "7.4.11", 314 | "@hapi/bourne": "1.3.2", 315 | "@hapi/content": "4.1.0", 316 | "@hapi/file": "1.0.0", 317 | "@hapi/hoek": "8.5.0", 318 | "@hapi/pez": "4.1.1", 319 | "@hapi/wreck": "15.1.0" 320 | } 321 | }, 322 | "@hapi/teamwork": { 323 | "version": "3.3.1", 324 | "resolved": "https://registry.npmjs.org/@hapi/teamwork/-/teamwork-3.3.1.tgz", 325 | "integrity": "sha512-61tiqWCYvMKP7fCTXy0M4VE6uNIwA0qvgFoiDubgfj7uqJ0fdHJFQNnVPGrxhLWlwz0uBPWrQlBH7r8y9vFITQ==", 326 | "dev": true 327 | }, 328 | "@hapi/topo": { 329 | "version": "3.1.6", 330 | "resolved": "https://registry.npmjs.org/@hapi/topo/-/topo-3.1.6.tgz", 331 | "integrity": "sha512-tAag0jEcjwH+P2quUfipd7liWCNX2F8NvYjQp2wtInsZxnMlypdw0FtAOLxtvvkO+GSRRbmNi8m/5y42PQJYCQ==", 332 | "dev": true, 333 | "requires": { 334 | "@hapi/hoek": "8.5.0" 335 | } 336 | }, 337 | "@hapi/vise": { 338 | "version": "3.1.1", 339 | "resolved": "https://registry.npmjs.org/@hapi/vise/-/vise-3.1.1.tgz", 340 | "integrity": "sha512-OXarbiCSadvtg+bSdVPqu31Z1JoBL+FwNYz3cYoBKQ5xq1/Cr4A3IkGpAZbAuxU5y4NL5pZFZG3d2a3ZGm/dOQ==", 341 | "dev": true, 342 | "requires": { 343 | "@hapi/hoek": "8.5.0" 344 | } 345 | }, 346 | "@hapi/wreck": { 347 | "version": "15.1.0", 348 | "resolved": "https://registry.npmjs.org/@hapi/wreck/-/wreck-15.1.0.tgz", 349 | "integrity": "sha512-tQczYRTTeYBmvhsek/D49En/5khcShaBEmzrAaDjMrFXKJRuF8xA8+tlq1ETLBFwGd6Do6g2OC74rt11kzawzg==", 350 | "dev": true, 351 | "requires": { 352 | "@hapi/boom": "7.4.11", 353 | "@hapi/bourne": "1.3.2", 354 | "@hapi/hoek": "8.5.0" 355 | } 356 | }, 357 | "@sindresorhus/is": { 358 | "version": "0.14.0", 359 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 360 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", 361 | "dev": true 362 | }, 363 | "@szmarczak/http-timer": { 364 | "version": "1.1.2", 365 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 366 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 367 | "dev": true, 368 | "requires": { 369 | "defer-to-connect": "1.1.0" 370 | } 371 | }, 372 | "@types/aws-lambda": { 373 | "version": "8.10.35", 374 | "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.35.tgz", 375 | "integrity": "sha512-2z7tI/cRpwQwx9eFFhnBgyJppQEkL3YZ+4PadhNcDuB5y+BmMY25h1N16WufdtMzOVK2WQYrLUGt6ajTzVBJUQ==", 376 | "optional": true 377 | }, 378 | "accepts": { 379 | "version": "1.3.7", 380 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 381 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 382 | "requires": { 383 | "mime-types": "2.1.25", 384 | "negotiator": "0.6.2" 385 | } 386 | }, 387 | "ansi-align": { 388 | "version": "3.0.0", 389 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 390 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 391 | "dev": true, 392 | "requires": { 393 | "string-width": "3.1.0" 394 | } 395 | }, 396 | "ansi-regex": { 397 | "version": "4.1.0", 398 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 399 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 400 | "dev": true 401 | }, 402 | "ansi-styles": { 403 | "version": "3.2.1", 404 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 405 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 406 | "dev": true, 407 | "requires": { 408 | "color-convert": "1.9.3" 409 | } 410 | }, 411 | "array-flatten": { 412 | "version": "1.1.1", 413 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 414 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 415 | }, 416 | "async-limiter": { 417 | "version": "1.0.1", 418 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz", 419 | "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==", 420 | "dev": true 421 | }, 422 | "bignumber.js": { 423 | "version": "8.1.1", 424 | "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-8.1.1.tgz", 425 | "integrity": "sha512-QD46ppGintwPGuL1KqmwhR0O+N2cZUg8JG/VzwI2e28sM9TqHjQB10lI4QAaMHVbLzwVLLAwEglpKPViWX+5NQ==", 426 | "dev": true 427 | }, 428 | "bluebird": { 429 | "version": "3.5.1", 430 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", 431 | "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" 432 | }, 433 | "body-parser": { 434 | "version": "1.19.0", 435 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 436 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 437 | "requires": { 438 | "bytes": "3.1.0", 439 | "content-type": "1.0.4", 440 | "debug": "2.6.9", 441 | "depd": "1.1.2", 442 | "http-errors": "1.7.2", 443 | "iconv-lite": "0.4.24", 444 | "on-finished": "2.3.0", 445 | "qs": "6.7.0", 446 | "raw-body": "2.4.0", 447 | "type-is": "1.6.18" 448 | } 449 | }, 450 | "bowser": { 451 | "version": "2.7.0", 452 | "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.7.0.tgz", 453 | "integrity": "sha512-aIlMvstvu8x+34KEiOHD3AsBgdrzg6sxALYiukOWhFvGMbQI6TRP/iY0LMhUrHs56aD6P1G0Z7h45PUJaa5m9w==" 454 | }, 455 | "boxen": { 456 | "version": "3.2.0", 457 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-3.2.0.tgz", 458 | "integrity": "sha512-cU4J/+NodM3IHdSL2yN8bqYqnmlBTidDR4RC7nJs61ZmtGz8VZzM3HLQX0zY5mrSmPtR3xWwsq2jOUQqFZN8+A==", 459 | "dev": true, 460 | "requires": { 461 | "ansi-align": "3.0.0", 462 | "camelcase": "5.3.1", 463 | "chalk": "2.4.2", 464 | "cli-boxes": "2.2.0", 465 | "string-width": "3.1.0", 466 | "term-size": "1.2.0", 467 | "type-fest": "0.3.1", 468 | "widest-line": "2.0.1" 469 | } 470 | }, 471 | "bson": { 472 | "version": "1.1.3", 473 | "resolved": "https://registry.npmjs.org/bson/-/bson-1.1.3.tgz", 474 | "integrity": "sha512-TdiJxMVnodVS7r0BdL42y/pqC9cL2iKynVwA0Ho3qbsQYr428veL3l7BQyuqiw+Q5SqqoT0m4srSY/BlZ9AxXg==" 475 | }, 476 | "buffer-equal-constant-time": { 477 | "version": "1.0.1", 478 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 479 | "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=", 480 | "dev": true 481 | }, 482 | "bytes": { 483 | "version": "3.1.0", 484 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 485 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 486 | }, 487 | "cacheable-request": { 488 | "version": "6.1.0", 489 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 490 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 491 | "dev": true, 492 | "requires": { 493 | "clone-response": "1.0.2", 494 | "get-stream": "5.1.0", 495 | "http-cache-semantics": "4.0.3", 496 | "keyv": "3.1.0", 497 | "lowercase-keys": "2.0.0", 498 | "normalize-url": "4.5.0", 499 | "responselike": "1.0.2" 500 | }, 501 | "dependencies": { 502 | "get-stream": { 503 | "version": "5.1.0", 504 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", 505 | "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", 506 | "dev": true, 507 | "requires": { 508 | "pump": "3.0.0" 509 | } 510 | }, 511 | "lowercase-keys": { 512 | "version": "2.0.0", 513 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 514 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", 515 | "dev": true 516 | } 517 | } 518 | }, 519 | "camelcase": { 520 | "version": "5.3.1", 521 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 522 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 523 | "dev": true 524 | }, 525 | "camelize": { 526 | "version": "1.0.0", 527 | "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", 528 | "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" 529 | }, 530 | "cbor": { 531 | "version": "4.1.4", 532 | "resolved": "https://registry.npmjs.org/cbor/-/cbor-4.1.4.tgz", 533 | "integrity": "sha512-SqNWyQnnYtKAPLA7lupvuGKrEgoF2rR/7I9rXdmW/9uxtmKdltthHTf8hfLLN1SIkoAFwz/jb6+VZuaHv3Lv6Q==", 534 | "dev": true, 535 | "requires": { 536 | "bignumber.js": "8.1.1", 537 | "commander": "2.20.3", 538 | "json-text-sequence": "0.1.1", 539 | "nofilter": "1.0.3" 540 | } 541 | }, 542 | "cbor-js": { 543 | "version": "0.1.0", 544 | "resolved": "https://registry.npmjs.org/cbor-js/-/cbor-js-0.1.0.tgz", 545 | "integrity": "sha1-yAzmEg84fo+qdDcN/aIdlluPx/k=", 546 | "dev": true 547 | }, 548 | "chalk": { 549 | "version": "2.4.2", 550 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 551 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 552 | "dev": true, 553 | "requires": { 554 | "ansi-styles": "3.2.1", 555 | "escape-string-regexp": "1.0.5", 556 | "supports-color": "5.5.0" 557 | } 558 | }, 559 | "ci-info": { 560 | "version": "2.0.0", 561 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 562 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", 563 | "dev": true 564 | }, 565 | "cli-boxes": { 566 | "version": "2.2.0", 567 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz", 568 | "integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==", 569 | "dev": true 570 | }, 571 | "clone-response": { 572 | "version": "1.0.2", 573 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 574 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 575 | "dev": true, 576 | "requires": { 577 | "mimic-response": "1.0.1" 578 | } 579 | }, 580 | "color-convert": { 581 | "version": "1.9.3", 582 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 583 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 584 | "dev": true, 585 | "requires": { 586 | "color-name": "1.1.3" 587 | } 588 | }, 589 | "color-name": { 590 | "version": "1.1.3", 591 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 592 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 593 | "dev": true 594 | }, 595 | "commander": { 596 | "version": "2.20.3", 597 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 598 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 599 | "dev": true 600 | }, 601 | "configstore": { 602 | "version": "4.0.0", 603 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-4.0.0.tgz", 604 | "integrity": "sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ==", 605 | "dev": true, 606 | "requires": { 607 | "dot-prop": "4.2.0", 608 | "graceful-fs": "4.2.3", 609 | "make-dir": "1.3.0", 610 | "unique-string": "1.0.0", 611 | "write-file-atomic": "2.4.3", 612 | "xdg-basedir": "3.0.0" 613 | } 614 | }, 615 | "content-disposition": { 616 | "version": "0.5.3", 617 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 618 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 619 | "requires": { 620 | "safe-buffer": "5.1.2" 621 | } 622 | }, 623 | "content-security-policy-builder": { 624 | "version": "2.1.0", 625 | "resolved": "https://registry.npmjs.org/content-security-policy-builder/-/content-security-policy-builder-2.1.0.tgz", 626 | "integrity": "sha512-/MtLWhJVvJNkA9dVLAp6fg9LxD2gfI6R2Fi1hPmfjYXSahJJzcfvoeDOxSyp4NvxMuwWv3WMssE9o31DoULHrQ==" 627 | }, 628 | "content-type": { 629 | "version": "1.0.4", 630 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 631 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 632 | }, 633 | "cookie": { 634 | "version": "0.4.0", 635 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 636 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 637 | }, 638 | "cookie-signature": { 639 | "version": "1.0.6", 640 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 641 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 642 | }, 643 | "cross-spawn": { 644 | "version": "5.1.0", 645 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 646 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 647 | "dev": true, 648 | "requires": { 649 | "lru-cache": "4.1.5", 650 | "shebang-command": "1.2.0", 651 | "which": "1.3.1" 652 | } 653 | }, 654 | "crypto-random-string": { 655 | "version": "1.0.0", 656 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", 657 | "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", 658 | "dev": true 659 | }, 660 | "cuid": { 661 | "version": "2.1.6", 662 | "resolved": "https://registry.npmjs.org/cuid/-/cuid-2.1.6.tgz", 663 | "integrity": "sha512-ZFp7PS6cSYMJNch9fc3tyHdE4T8TDo3Y5qAxb0KSA9mpiYDo7z9ql1CznFuuzxea9STVIDy0tJWm2lYiX2ZU1Q==", 664 | "dev": true 665 | }, 666 | "dasherize": { 667 | "version": "2.0.0", 668 | "resolved": "https://registry.npmjs.org/dasherize/-/dasherize-2.0.0.tgz", 669 | "integrity": "sha1-bYCcnNDPe7iVLYD8hPoT1H3bEwg=" 670 | }, 671 | "debug": { 672 | "version": "2.6.9", 673 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 674 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 675 | "requires": { 676 | "ms": "2.0.0" 677 | } 678 | }, 679 | "decompress-response": { 680 | "version": "3.3.0", 681 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 682 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 683 | "dev": true, 684 | "requires": { 685 | "mimic-response": "1.0.1" 686 | } 687 | }, 688 | "deep-extend": { 689 | "version": "0.6.0", 690 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 691 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 692 | "dev": true 693 | }, 694 | "defer-to-connect": { 695 | "version": "1.1.0", 696 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.0.tgz", 697 | "integrity": "sha512-WE2sZoctWm/v4smfCAdjYbrfS55JiMRdlY9ZubFhsYbteCK9+BvAx4YV7nPjYM6ZnX5BcoVKwfmyx9sIFTgQMQ==", 698 | "dev": true 699 | }, 700 | "define-properties": { 701 | "version": "1.1.3", 702 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 703 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 704 | "dev": true, 705 | "requires": { 706 | "object-keys": "1.1.1" 707 | } 708 | }, 709 | "delimit-stream": { 710 | "version": "0.1.0", 711 | "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", 712 | "integrity": "sha1-m4MZR3wOX4rrPONXrjBfwl6hzSs=", 713 | "dev": true 714 | }, 715 | "depd": { 716 | "version": "1.1.2", 717 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 718 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 719 | }, 720 | "destroy": { 721 | "version": "1.0.4", 722 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 723 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 724 | }, 725 | "dns-prefetch-control": { 726 | "version": "0.2.0", 727 | "resolved": "https://registry.npmjs.org/dns-prefetch-control/-/dns-prefetch-control-0.2.0.tgz", 728 | "integrity": "sha512-hvSnros73+qyZXhHFjx2CMLwoj3Fe7eR9EJsFsqmcI1bB2OBWL/+0YzaEaKssCHnj/6crawNnUyw74Gm2EKe+Q==" 729 | }, 730 | "dont-sniff-mimetype": { 731 | "version": "1.1.0", 732 | "resolved": "https://registry.npmjs.org/dont-sniff-mimetype/-/dont-sniff-mimetype-1.1.0.tgz", 733 | "integrity": "sha512-ZjI4zqTaxveH2/tTlzS1wFp+7ncxNZaIEWYg3lzZRHkKf5zPT/MnEG6WL0BhHMJUabkh8GeU5NL5j+rEUCb7Ug==" 734 | }, 735 | "dot-prop": { 736 | "version": "4.2.0", 737 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", 738 | "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", 739 | "dev": true, 740 | "requires": { 741 | "is-obj": "1.0.1" 742 | } 743 | }, 744 | "duplexer3": { 745 | "version": "0.1.4", 746 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 747 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", 748 | "dev": true 749 | }, 750 | "ecdsa-sig-formatter": { 751 | "version": "1.0.11", 752 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 753 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 754 | "dev": true, 755 | "requires": { 756 | "safe-buffer": "5.1.2" 757 | } 758 | }, 759 | "ee-first": { 760 | "version": "1.1.1", 761 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 762 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 763 | }, 764 | "emoji-regex": { 765 | "version": "7.0.3", 766 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 767 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 768 | "dev": true 769 | }, 770 | "encodeurl": { 771 | "version": "1.0.2", 772 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 773 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 774 | }, 775 | "encodr": { 776 | "version": "1.2.0", 777 | "resolved": "https://registry.npmjs.org/encodr/-/encodr-1.2.0.tgz", 778 | "integrity": "sha512-OHAfuXxoeXEeXFZ0Vu3CGegIVI1iuLLdVMy1EIVDBfvff1tMjVwRNBFuo5UbjBm3Efcu+GiIYGOt0H3NKDjPrw==", 779 | "dev": true, 780 | "requires": { 781 | "cbor": "4.1.4", 782 | "cbor-js": "0.1.0", 783 | "msgpack-lite": "0.1.26", 784 | "utf8": "3.0.0" 785 | } 786 | }, 787 | "end-of-stream": { 788 | "version": "1.4.4", 789 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 790 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 791 | "dev": true, 792 | "requires": { 793 | "once": "1.4.0" 794 | } 795 | }, 796 | "es-abstract": { 797 | "version": "1.16.0", 798 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.0.tgz", 799 | "integrity": "sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==", 800 | "dev": true, 801 | "requires": { 802 | "es-to-primitive": "1.2.1", 803 | "function-bind": "1.1.1", 804 | "has": "1.0.3", 805 | "has-symbols": "1.0.0", 806 | "is-callable": "1.1.4", 807 | "is-regex": "1.0.4", 808 | "object-inspect": "1.7.0", 809 | "object-keys": "1.1.1", 810 | "string.prototype.trimleft": "2.1.0", 811 | "string.prototype.trimright": "2.1.0" 812 | } 813 | }, 814 | "es-to-primitive": { 815 | "version": "1.2.1", 816 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", 817 | "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", 818 | "dev": true, 819 | "requires": { 820 | "is-callable": "1.1.4", 821 | "is-date-object": "1.0.1", 822 | "is-symbol": "1.0.2" 823 | } 824 | }, 825 | "escape-html": { 826 | "version": "1.0.3", 827 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 828 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 829 | }, 830 | "escape-string-regexp": { 831 | "version": "1.0.5", 832 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 833 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 834 | "dev": true 835 | }, 836 | "etag": { 837 | "version": "1.8.1", 838 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 839 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 840 | }, 841 | "event-lite": { 842 | "version": "0.1.2", 843 | "resolved": "https://registry.npmjs.org/event-lite/-/event-lite-0.1.2.tgz", 844 | "integrity": "sha512-HnSYx1BsJ87/p6swwzv+2v6B4X+uxUteoDfRxsAb1S1BePzQqOLevVmkdA15GHJVd9A9Ok6wygUR18Hu0YeV9g==", 845 | "dev": true 846 | }, 847 | "eventemitter3": { 848 | "version": "3.1.2", 849 | "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", 850 | "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==", 851 | "dev": true 852 | }, 853 | "execa": { 854 | "version": "0.7.0", 855 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 856 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 857 | "dev": true, 858 | "requires": { 859 | "cross-spawn": "5.1.0", 860 | "get-stream": "3.0.0", 861 | "is-stream": "1.1.0", 862 | "npm-run-path": "2.0.2", 863 | "p-finally": "1.0.0", 864 | "signal-exit": "3.0.2", 865 | "strip-eof": "1.0.0" 866 | } 867 | }, 868 | "expect-ct": { 869 | "version": "0.2.0", 870 | "resolved": "https://registry.npmjs.org/expect-ct/-/expect-ct-0.2.0.tgz", 871 | "integrity": "sha512-6SK3MG/Bbhm8MsgyJAylg+ucIOU71/FzyFalcfu5nY19dH8y/z0tBJU0wrNBXD4B27EoQtqPF/9wqH0iYAd04g==" 872 | }, 873 | "express": { 874 | "version": "4.17.1", 875 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 876 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 877 | "requires": { 878 | "accepts": "1.3.7", 879 | "array-flatten": "1.1.1", 880 | "body-parser": "1.19.0", 881 | "content-disposition": "0.5.3", 882 | "content-type": "1.0.4", 883 | "cookie": "0.4.0", 884 | "cookie-signature": "1.0.6", 885 | "debug": "2.6.9", 886 | "depd": "1.1.2", 887 | "encodeurl": "1.0.2", 888 | "escape-html": "1.0.3", 889 | "etag": "1.8.1", 890 | "finalhandler": "1.1.2", 891 | "fresh": "0.5.2", 892 | "merge-descriptors": "1.0.1", 893 | "methods": "1.1.2", 894 | "on-finished": "2.3.0", 895 | "parseurl": "1.3.3", 896 | "path-to-regexp": "0.1.7", 897 | "proxy-addr": "2.0.5", 898 | "qs": "6.7.0", 899 | "range-parser": "1.2.1", 900 | "safe-buffer": "5.1.2", 901 | "send": "0.17.1", 902 | "serve-static": "1.14.1", 903 | "setprototypeof": "1.1.1", 904 | "statuses": "1.5.0", 905 | "type-is": "1.6.18", 906 | "utils-merge": "1.0.1", 907 | "vary": "1.1.2" 908 | } 909 | }, 910 | "feature-policy": { 911 | "version": "0.3.0", 912 | "resolved": "https://registry.npmjs.org/feature-policy/-/feature-policy-0.3.0.tgz", 913 | "integrity": "sha512-ZtijOTFN7TzCujt1fnNhfWPFPSHeZkesff9AXZj+UEjYBynWNUIYpC87Ve4wHzyexQsImicLu7WsC2LHq7/xrQ==" 914 | }, 915 | "finalhandler": { 916 | "version": "1.1.2", 917 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 918 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 919 | "requires": { 920 | "debug": "2.6.9", 921 | "encodeurl": "1.0.2", 922 | "escape-html": "1.0.3", 923 | "on-finished": "2.3.0", 924 | "parseurl": "1.3.3", 925 | "statuses": "1.5.0", 926 | "unpipe": "1.0.0" 927 | } 928 | }, 929 | "forwarded": { 930 | "version": "0.1.2", 931 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 932 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 933 | }, 934 | "frameguard": { 935 | "version": "3.1.0", 936 | "resolved": "https://registry.npmjs.org/frameguard/-/frameguard-3.1.0.tgz", 937 | "integrity": "sha512-TxgSKM+7LTA6sidjOiSZK9wxY0ffMPY3Wta//MqwmX0nZuEHc8QrkV8Fh3ZhMJeiH+Uyh/tcaarImRy8u77O7g==" 938 | }, 939 | "fresh": { 940 | "version": "0.5.2", 941 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 942 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 943 | }, 944 | "function-bind": { 945 | "version": "1.1.1", 946 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 947 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 948 | "dev": true 949 | }, 950 | "get-stream": { 951 | "version": "3.0.0", 952 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 953 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", 954 | "dev": true 955 | }, 956 | "global-dirs": { 957 | "version": "0.1.1", 958 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", 959 | "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", 960 | "dev": true, 961 | "requires": { 962 | "ini": "1.3.5" 963 | } 964 | }, 965 | "got": { 966 | "version": "9.6.0", 967 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 968 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 969 | "dev": true, 970 | "requires": { 971 | "@sindresorhus/is": "0.14.0", 972 | "@szmarczak/http-timer": "1.1.2", 973 | "cacheable-request": "6.1.0", 974 | "decompress-response": "3.3.0", 975 | "duplexer3": "0.1.4", 976 | "get-stream": "4.1.0", 977 | "lowercase-keys": "1.0.1", 978 | "mimic-response": "1.0.1", 979 | "p-cancelable": "1.1.0", 980 | "to-readable-stream": "1.0.0", 981 | "url-parse-lax": "3.0.0" 982 | }, 983 | "dependencies": { 984 | "get-stream": { 985 | "version": "4.1.0", 986 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 987 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 988 | "dev": true, 989 | "requires": { 990 | "pump": "3.0.0" 991 | } 992 | } 993 | } 994 | }, 995 | "graceful-fs": { 996 | "version": "4.2.3", 997 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", 998 | "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", 999 | "dev": true 1000 | }, 1001 | "hapi-plugin-websocket": { 1002 | "version": "2.2.0", 1003 | "resolved": "https://registry.npmjs.org/hapi-plugin-websocket/-/hapi-plugin-websocket-2.2.0.tgz", 1004 | "integrity": "sha512-vSua7RgFYDrBwdmGrexdT4ypOlOqQ/OnREvXlOrrKp4JDPBgb3i1tEsIgcrj5D/S2POcSpWs8TUsLxkz9jqdhA==", 1005 | "dev": true, 1006 | "requires": { 1007 | "@hapi/boom": "8.0.1", 1008 | "@hapi/hoek": "8.3.2", 1009 | "urijs": "1.19.2", 1010 | "websocket-framed": "1.2.1", 1011 | "ws": "7.2.0" 1012 | }, 1013 | "dependencies": { 1014 | "@hapi/boom": { 1015 | "version": "8.0.1", 1016 | "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-8.0.1.tgz", 1017 | "integrity": "sha512-SnBM2GzEYEA6AGFKXBqNLWXR3uNBui0bkmklYXX1gYtevVhDTy2uakwkSauxvIWMtlANGRhzChYg95If3FWCwA==", 1018 | "dev": true, 1019 | "requires": { 1020 | "@hapi/hoek": "8.3.2" 1021 | } 1022 | }, 1023 | "@hapi/hoek": { 1024 | "version": "8.3.2", 1025 | "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-8.3.2.tgz", 1026 | "integrity": "sha512-NP5SG4bzix+EtSMtcudp8TvI0lB46mXNo8uFpTDw6tqxGx4z5yx+giIunEFA0Z7oUO4DuWrOJV9xqR2tJVEdyA==", 1027 | "dev": true 1028 | } 1029 | } 1030 | }, 1031 | "has": { 1032 | "version": "1.0.3", 1033 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 1034 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 1035 | "dev": true, 1036 | "requires": { 1037 | "function-bind": "1.1.1" 1038 | } 1039 | }, 1040 | "has-flag": { 1041 | "version": "3.0.0", 1042 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1043 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1044 | "dev": true 1045 | }, 1046 | "has-symbols": { 1047 | "version": "1.0.0", 1048 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", 1049 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", 1050 | "dev": true 1051 | }, 1052 | "has-yarn": { 1053 | "version": "2.1.0", 1054 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 1055 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", 1056 | "dev": true 1057 | }, 1058 | "helmet": { 1059 | "version": "3.21.2", 1060 | "resolved": "https://registry.npmjs.org/helmet/-/helmet-3.21.2.tgz", 1061 | "integrity": "sha512-okUo+MeWgg00cKB8Csblu8EXgcIoDyb5ZS/3u0W4spCimeVuCUvVZ6Vj3O2VJ1Sxpyb8jCDvzu0L1KKT11pkIg==", 1062 | "requires": { 1063 | "depd": "2.0.0", 1064 | "dns-prefetch-control": "0.2.0", 1065 | "dont-sniff-mimetype": "1.1.0", 1066 | "expect-ct": "0.2.0", 1067 | "feature-policy": "0.3.0", 1068 | "frameguard": "3.1.0", 1069 | "helmet-crossdomain": "0.4.0", 1070 | "helmet-csp": "2.9.4", 1071 | "hide-powered-by": "1.1.0", 1072 | "hpkp": "2.0.0", 1073 | "hsts": "2.2.0", 1074 | "ienoopen": "1.1.0", 1075 | "nocache": "2.1.0", 1076 | "referrer-policy": "1.2.0", 1077 | "x-xss-protection": "1.3.0" 1078 | }, 1079 | "dependencies": { 1080 | "depd": { 1081 | "version": "2.0.0", 1082 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 1083 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 1084 | } 1085 | } 1086 | }, 1087 | "helmet-crossdomain": { 1088 | "version": "0.4.0", 1089 | "resolved": "https://registry.npmjs.org/helmet-crossdomain/-/helmet-crossdomain-0.4.0.tgz", 1090 | "integrity": "sha512-AB4DTykRw3HCOxovD1nPR16hllrVImeFp5VBV9/twj66lJ2nU75DP8FPL0/Jp4jj79JhTfG+pFI2MD02kWJ+fA==" 1091 | }, 1092 | "helmet-csp": { 1093 | "version": "2.9.4", 1094 | "resolved": "https://registry.npmjs.org/helmet-csp/-/helmet-csp-2.9.4.tgz", 1095 | "integrity": "sha512-qUgGx8+yk7Xl8XFEGI4MFu1oNmulxhQVTlV8HP8tV3tpfslCs30OZz/9uQqsWPvDISiu/NwrrCowsZBhFADYqg==", 1096 | "requires": { 1097 | "bowser": "2.7.0", 1098 | "camelize": "1.0.0", 1099 | "content-security-policy-builder": "2.1.0", 1100 | "dasherize": "2.0.0" 1101 | } 1102 | }, 1103 | "hide-powered-by": { 1104 | "version": "1.1.0", 1105 | "resolved": "https://registry.npmjs.org/hide-powered-by/-/hide-powered-by-1.1.0.tgz", 1106 | "integrity": "sha512-Io1zA2yOA1YJslkr+AJlWSf2yWFkKjvkcL9Ni1XSUqnGLr/qRQe2UI3Cn/J9MsJht7yEVCe0SscY1HgVMujbgg==" 1107 | }, 1108 | "hpkp": { 1109 | "version": "2.0.0", 1110 | "resolved": "https://registry.npmjs.org/hpkp/-/hpkp-2.0.0.tgz", 1111 | "integrity": "sha1-EOFCJk52IVpdMMROxD3mTe5tFnI=" 1112 | }, 1113 | "hsts": { 1114 | "version": "2.2.0", 1115 | "resolved": "https://registry.npmjs.org/hsts/-/hsts-2.2.0.tgz", 1116 | "integrity": "sha512-ToaTnQ2TbJkochoVcdXYm4HOCliNozlviNsg+X2XQLQvZNI/kCHR9rZxVYpJB3UPcHz80PgxRyWQ7PdU1r+VBQ==", 1117 | "requires": { 1118 | "depd": "2.0.0" 1119 | }, 1120 | "dependencies": { 1121 | "depd": { 1122 | "version": "2.0.0", 1123 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 1124 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" 1125 | } 1126 | } 1127 | }, 1128 | "http-cache-semantics": { 1129 | "version": "4.0.3", 1130 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.0.3.tgz", 1131 | "integrity": "sha512-TcIMG3qeVLgDr1TEd2XvHaTnMPwYQUQMIBLy+5pLSDKYFc7UIqj39w8EGzZkaxoLv/l2K8HaI0t5AVA+YYgUew==", 1132 | "dev": true 1133 | }, 1134 | "http-errors": { 1135 | "version": "1.7.2", 1136 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 1137 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 1138 | "requires": { 1139 | "depd": "1.1.2", 1140 | "inherits": "2.0.3", 1141 | "setprototypeof": "1.1.1", 1142 | "statuses": "1.5.0", 1143 | "toidentifier": "1.0.0" 1144 | } 1145 | }, 1146 | "iconv-lite": { 1147 | "version": "0.4.24", 1148 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1149 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1150 | "requires": { 1151 | "safer-buffer": "2.1.2" 1152 | } 1153 | }, 1154 | "ieee754": { 1155 | "version": "1.1.13", 1156 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", 1157 | "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", 1158 | "dev": true 1159 | }, 1160 | "ienoopen": { 1161 | "version": "1.1.0", 1162 | "resolved": "https://registry.npmjs.org/ienoopen/-/ienoopen-1.1.0.tgz", 1163 | "integrity": "sha512-MFs36e/ca6ohEKtinTJ5VvAJ6oDRAYFdYXweUnGY9L9vcoqFOU4n2ZhmJ0C4z/cwGZ3YIQRSB3XZ1+ghZkY5NQ==" 1164 | }, 1165 | "import-lazy": { 1166 | "version": "2.1.0", 1167 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 1168 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", 1169 | "dev": true 1170 | }, 1171 | "imurmurhash": { 1172 | "version": "0.1.4", 1173 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1174 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 1175 | "dev": true 1176 | }, 1177 | "inherits": { 1178 | "version": "2.0.3", 1179 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1180 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1181 | }, 1182 | "ini": { 1183 | "version": "1.3.5", 1184 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 1185 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", 1186 | "dev": true 1187 | }, 1188 | "int64-buffer": { 1189 | "version": "0.1.10", 1190 | "resolved": "https://registry.npmjs.org/int64-buffer/-/int64-buffer-0.1.10.tgz", 1191 | "integrity": "sha1-J3siiofZWtd30HwTgyAiQGpHNCM=", 1192 | "dev": true 1193 | }, 1194 | "ipaddr.js": { 1195 | "version": "1.9.0", 1196 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", 1197 | "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==" 1198 | }, 1199 | "is-callable": { 1200 | "version": "1.1.4", 1201 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", 1202 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", 1203 | "dev": true 1204 | }, 1205 | "is-ci": { 1206 | "version": "2.0.0", 1207 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 1208 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 1209 | "dev": true, 1210 | "requires": { 1211 | "ci-info": "2.0.0" 1212 | } 1213 | }, 1214 | "is-date-object": { 1215 | "version": "1.0.1", 1216 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 1217 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 1218 | "dev": true 1219 | }, 1220 | "is-fullwidth-code-point": { 1221 | "version": "2.0.0", 1222 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1223 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1224 | "dev": true 1225 | }, 1226 | "is-installed-globally": { 1227 | "version": "0.1.0", 1228 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", 1229 | "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", 1230 | "dev": true, 1231 | "requires": { 1232 | "global-dirs": "0.1.1", 1233 | "is-path-inside": "1.0.1" 1234 | } 1235 | }, 1236 | "is-npm": { 1237 | "version": "3.0.0", 1238 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-3.0.0.tgz", 1239 | "integrity": "sha512-wsigDr1Kkschp2opC4G3yA6r9EgVA6NjRpWzIi9axXqeIaAATPRJc4uLujXe3Nd9uO8KoDyA4MD6aZSeXTADhA==", 1240 | "dev": true 1241 | }, 1242 | "is-obj": { 1243 | "version": "1.0.1", 1244 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", 1245 | "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", 1246 | "dev": true 1247 | }, 1248 | "is-path-inside": { 1249 | "version": "1.0.1", 1250 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", 1251 | "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", 1252 | "dev": true, 1253 | "requires": { 1254 | "path-is-inside": "1.0.2" 1255 | } 1256 | }, 1257 | "is-regex": { 1258 | "version": "1.0.4", 1259 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 1260 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 1261 | "dev": true, 1262 | "requires": { 1263 | "has": "1.0.3" 1264 | } 1265 | }, 1266 | "is-stream": { 1267 | "version": "1.1.0", 1268 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 1269 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 1270 | "dev": true 1271 | }, 1272 | "is-symbol": { 1273 | "version": "1.0.2", 1274 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", 1275 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", 1276 | "dev": true, 1277 | "requires": { 1278 | "has-symbols": "1.0.0" 1279 | } 1280 | }, 1281 | "is-yarn-global": { 1282 | "version": "0.3.0", 1283 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 1284 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", 1285 | "dev": true 1286 | }, 1287 | "isarray": { 1288 | "version": "1.0.0", 1289 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1290 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1291 | "dev": true 1292 | }, 1293 | "isexe": { 1294 | "version": "2.0.0", 1295 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1296 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1297 | "dev": true 1298 | }, 1299 | "js-string-escape": { 1300 | "version": "1.0.1", 1301 | "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", 1302 | "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", 1303 | "dev": true 1304 | }, 1305 | "json-buffer": { 1306 | "version": "3.0.0", 1307 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 1308 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", 1309 | "dev": true 1310 | }, 1311 | "json-text-sequence": { 1312 | "version": "0.1.1", 1313 | "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", 1314 | "integrity": "sha1-py8hfcSvxGKf/1/rME3BvVGi89I=", 1315 | "dev": true, 1316 | "requires": { 1317 | "delimit-stream": "0.1.0" 1318 | } 1319 | }, 1320 | "jsonpath-plus": { 1321 | "version": "1.1.0", 1322 | "resolved": "https://registry.npmjs.org/jsonpath-plus/-/jsonpath-plus-1.1.0.tgz", 1323 | "integrity": "sha512-ydqTBOuLcFCUr9e7AxJlKCFgxzEQ03HjnIim0hJSdk2NxD8MOsaMOrRgP6XWEm5q3VuDY5+cRT1DM9vLlGo/qA==", 1324 | "dev": true 1325 | }, 1326 | "jsonwebtoken": { 1327 | "version": "8.5.1", 1328 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", 1329 | "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", 1330 | "dev": true, 1331 | "requires": { 1332 | "jws": "3.2.2", 1333 | "lodash.includes": "4.3.0", 1334 | "lodash.isboolean": "3.0.3", 1335 | "lodash.isinteger": "4.0.4", 1336 | "lodash.isnumber": "3.0.3", 1337 | "lodash.isplainobject": "4.0.6", 1338 | "lodash.isstring": "4.0.1", 1339 | "lodash.once": "4.1.1", 1340 | "ms": "2.1.2", 1341 | "semver": "5.7.1" 1342 | }, 1343 | "dependencies": { 1344 | "ms": { 1345 | "version": "2.1.2", 1346 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1347 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1348 | "dev": true 1349 | } 1350 | } 1351 | }, 1352 | "jwa": { 1353 | "version": "1.4.1", 1354 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 1355 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 1356 | "dev": true, 1357 | "requires": { 1358 | "buffer-equal-constant-time": "1.0.1", 1359 | "ecdsa-sig-formatter": "1.0.11", 1360 | "safe-buffer": "5.1.2" 1361 | } 1362 | }, 1363 | "jws": { 1364 | "version": "3.2.2", 1365 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 1366 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 1367 | "dev": true, 1368 | "requires": { 1369 | "jwa": "1.4.1", 1370 | "safe-buffer": "5.1.2" 1371 | } 1372 | }, 1373 | "kareem": { 1374 | "version": "2.3.1", 1375 | "resolved": "https://registry.npmjs.org/kareem/-/kareem-2.3.1.tgz", 1376 | "integrity": "sha512-l3hLhffs9zqoDe8zjmb/mAN4B8VT3L56EUvKNqLFVs9YlFA+zx7ke1DO8STAdDyYNkeSo1nKmjuvQeI12So8Xw==" 1377 | }, 1378 | "keyv": { 1379 | "version": "3.1.0", 1380 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 1381 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 1382 | "dev": true, 1383 | "requires": { 1384 | "json-buffer": "3.0.0" 1385 | } 1386 | }, 1387 | "latest-version": { 1388 | "version": "5.1.0", 1389 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 1390 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 1391 | "dev": true, 1392 | "requires": { 1393 | "package-json": "6.5.0" 1394 | } 1395 | }, 1396 | "lodash.includes": { 1397 | "version": "4.3.0", 1398 | "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", 1399 | "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=", 1400 | "dev": true 1401 | }, 1402 | "lodash.isboolean": { 1403 | "version": "3.0.3", 1404 | "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", 1405 | "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=", 1406 | "dev": true 1407 | }, 1408 | "lodash.isinteger": { 1409 | "version": "4.0.4", 1410 | "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", 1411 | "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=", 1412 | "dev": true 1413 | }, 1414 | "lodash.isnumber": { 1415 | "version": "3.0.3", 1416 | "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", 1417 | "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=", 1418 | "dev": true 1419 | }, 1420 | "lodash.isplainobject": { 1421 | "version": "4.0.6", 1422 | "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", 1423 | "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", 1424 | "dev": true 1425 | }, 1426 | "lodash.isstring": { 1427 | "version": "4.0.1", 1428 | "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", 1429 | "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", 1430 | "dev": true 1431 | }, 1432 | "lodash.once": { 1433 | "version": "4.1.1", 1434 | "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", 1435 | "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=", 1436 | "dev": true 1437 | }, 1438 | "lowercase-keys": { 1439 | "version": "1.0.1", 1440 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 1441 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", 1442 | "dev": true 1443 | }, 1444 | "lru-cache": { 1445 | "version": "4.1.5", 1446 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1447 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1448 | "dev": true, 1449 | "requires": { 1450 | "pseudomap": "1.0.2", 1451 | "yallist": "2.1.2" 1452 | } 1453 | }, 1454 | "luxon": { 1455 | "version": "1.21.1", 1456 | "resolved": "https://registry.npmjs.org/luxon/-/luxon-1.21.1.tgz", 1457 | "integrity": "sha512-3zxaKX7mj7eA80TU0sm4CfNEtiUZ2QXGjMc80rfG4d1dOnnOOWz63U9j4nYR7+1w716DYtWfdOeVhDXYlH+D4w==", 1458 | "dev": true 1459 | }, 1460 | "make-dir": { 1461 | "version": "1.3.0", 1462 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", 1463 | "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", 1464 | "dev": true, 1465 | "requires": { 1466 | "pify": "3.0.0" 1467 | } 1468 | }, 1469 | "media-typer": { 1470 | "version": "0.3.0", 1471 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1472 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1473 | }, 1474 | "memory-pager": { 1475 | "version": "1.5.0", 1476 | "resolved": "https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz", 1477 | "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", 1478 | "optional": true 1479 | }, 1480 | "merge-descriptors": { 1481 | "version": "1.0.1", 1482 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1483 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1484 | }, 1485 | "methods": { 1486 | "version": "1.1.2", 1487 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1488 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1489 | }, 1490 | "mime": { 1491 | "version": "1.6.0", 1492 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1493 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 1494 | }, 1495 | "mime-db": { 1496 | "version": "1.42.0", 1497 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.42.0.tgz", 1498 | "integrity": "sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==" 1499 | }, 1500 | "mime-types": { 1501 | "version": "2.1.25", 1502 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.25.tgz", 1503 | "integrity": "sha512-5KhStqB5xpTAeGqKBAMgwaYMnQik7teQN4IAzC7npDv6kzeU6prfkR67bc87J1kWMPGkoaZSq1npmexMgkmEVg==", 1504 | "requires": { 1505 | "mime-db": "1.42.0" 1506 | } 1507 | }, 1508 | "mimic-response": { 1509 | "version": "1.0.1", 1510 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 1511 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", 1512 | "dev": true 1513 | }, 1514 | "minimist": { 1515 | "version": "1.2.0", 1516 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1517 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", 1518 | "dev": true 1519 | }, 1520 | "mongodb": { 1521 | "version": "3.3.4", 1522 | "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-3.3.4.tgz", 1523 | "integrity": "sha512-6fmHu3FJTpeZxacJcfjUGIP3BSteG0l2cxLkSrf1nnnS1OrlnVGiP9P/wAC4aB6dM6H4vQ2io8YDjkuPkje7AA==", 1524 | "requires": { 1525 | "bson": "1.1.3", 1526 | "require_optional": "1.0.1", 1527 | "safe-buffer": "5.1.2", 1528 | "saslprep": "1.0.3" 1529 | } 1530 | }, 1531 | "mongoose": { 1532 | "version": "5.7.11", 1533 | "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-5.7.11.tgz", 1534 | "integrity": "sha512-KpXGBTXQTKfTlePpZMY+FBsk9wiyp2gzfph9AsLPfWleK1x2GJY+6xpKx2kKIgLustgNq16OOrqwlAOGUbv3kg==", 1535 | "requires": { 1536 | "bson": "1.1.3", 1537 | "kareem": "2.3.1", 1538 | "mongodb": "3.3.4", 1539 | "mongoose-legacy-pluralize": "1.0.2", 1540 | "mpath": "0.6.0", 1541 | "mquery": "3.2.2", 1542 | "ms": "2.1.2", 1543 | "regexp-clone": "1.0.0", 1544 | "safe-buffer": "5.1.2", 1545 | "sift": "7.0.1", 1546 | "sliced": "1.0.1" 1547 | }, 1548 | "dependencies": { 1549 | "ms": { 1550 | "version": "2.1.2", 1551 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1552 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1553 | } 1554 | } 1555 | }, 1556 | "mongoose-legacy-pluralize": { 1557 | "version": "1.0.2", 1558 | "resolved": "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz", 1559 | "integrity": "sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==" 1560 | }, 1561 | "mpath": { 1562 | "version": "0.6.0", 1563 | "resolved": "https://registry.npmjs.org/mpath/-/mpath-0.6.0.tgz", 1564 | "integrity": "sha512-i75qh79MJ5Xo/sbhxrDrPSEG0H/mr1kcZXJ8dH6URU5jD/knFxCVqVC/gVSW7GIXL/9hHWlT9haLbCXWOll3qw==" 1565 | }, 1566 | "mquery": { 1567 | "version": "3.2.2", 1568 | "resolved": "https://registry.npmjs.org/mquery/-/mquery-3.2.2.tgz", 1569 | "integrity": "sha512-XB52992COp0KP230I3qloVUbkLUxJIu328HBP2t2EsxSFtf4W1HPSOBWOXf1bqxK4Xbb66lfMJ+Bpfd9/yZE1Q==", 1570 | "requires": { 1571 | "bluebird": "3.5.1", 1572 | "debug": "3.1.0", 1573 | "regexp-clone": "1.0.0", 1574 | "safe-buffer": "5.1.2", 1575 | "sliced": "1.0.1" 1576 | }, 1577 | "dependencies": { 1578 | "debug": { 1579 | "version": "3.1.0", 1580 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1581 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1582 | "requires": { 1583 | "ms": "2.0.0" 1584 | } 1585 | } 1586 | } 1587 | }, 1588 | "ms": { 1589 | "version": "2.0.0", 1590 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1591 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1592 | }, 1593 | "msgpack-lite": { 1594 | "version": "0.1.26", 1595 | "resolved": "https://registry.npmjs.org/msgpack-lite/-/msgpack-lite-0.1.26.tgz", 1596 | "integrity": "sha1-3TxQsm8FnyXn7e42REGDWOKprYk=", 1597 | "dev": true, 1598 | "requires": { 1599 | "event-lite": "0.1.2", 1600 | "ieee754": "1.1.13", 1601 | "int64-buffer": "0.1.10", 1602 | "isarray": "1.0.0" 1603 | } 1604 | }, 1605 | "negotiator": { 1606 | "version": "0.6.2", 1607 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1608 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 1609 | }, 1610 | "nocache": { 1611 | "version": "2.1.0", 1612 | "resolved": "https://registry.npmjs.org/nocache/-/nocache-2.1.0.tgz", 1613 | "integrity": "sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q==" 1614 | }, 1615 | "nofilter": { 1616 | "version": "1.0.3", 1617 | "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-1.0.3.tgz", 1618 | "integrity": "sha512-FlUlqwRK6reQCaFLAhMcF+6VkVG2caYjKQY3YsRDTl4/SEch595Qb3oLjJRDr8dkHAAOVj2pOx3VknfnSgkE5g==", 1619 | "dev": true 1620 | }, 1621 | "normalize-url": { 1622 | "version": "4.5.0", 1623 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 1624 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", 1625 | "dev": true 1626 | }, 1627 | "npm-run-path": { 1628 | "version": "2.0.2", 1629 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 1630 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 1631 | "dev": true, 1632 | "requires": { 1633 | "path-key": "2.0.1" 1634 | } 1635 | }, 1636 | "object-inspect": { 1637 | "version": "1.7.0", 1638 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz", 1639 | "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==", 1640 | "dev": true 1641 | }, 1642 | "object-keys": { 1643 | "version": "1.1.1", 1644 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 1645 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 1646 | "dev": true 1647 | }, 1648 | "object.fromentries": { 1649 | "version": "2.0.1", 1650 | "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.1.tgz", 1651 | "integrity": "sha512-PUQv8Hbg3j2QX0IQYv3iAGCbGcu4yY4KQ92/dhA4sFSixBmSmp13UpDLs6jGK8rBtbmhNNIK99LD2k293jpiGA==", 1652 | "dev": true, 1653 | "requires": { 1654 | "define-properties": "1.1.3", 1655 | "es-abstract": "1.16.0", 1656 | "function-bind": "1.1.1", 1657 | "has": "1.0.3" 1658 | } 1659 | }, 1660 | "on-finished": { 1661 | "version": "2.3.0", 1662 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1663 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1664 | "requires": { 1665 | "ee-first": "1.1.1" 1666 | } 1667 | }, 1668 | "once": { 1669 | "version": "1.4.0", 1670 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1671 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1672 | "dev": true, 1673 | "requires": { 1674 | "wrappy": "1.0.2" 1675 | } 1676 | }, 1677 | "p-cancelable": { 1678 | "version": "1.1.0", 1679 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 1680 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", 1681 | "dev": true 1682 | }, 1683 | "p-finally": { 1684 | "version": "1.0.0", 1685 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 1686 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", 1687 | "dev": true 1688 | }, 1689 | "package-json": { 1690 | "version": "6.5.0", 1691 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 1692 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 1693 | "dev": true, 1694 | "requires": { 1695 | "got": "9.6.0", 1696 | "registry-auth-token": "4.0.0", 1697 | "registry-url": "5.1.0", 1698 | "semver": "6.3.0" 1699 | }, 1700 | "dependencies": { 1701 | "semver": { 1702 | "version": "6.3.0", 1703 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1704 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1705 | "dev": true 1706 | } 1707 | } 1708 | }, 1709 | "parseurl": { 1710 | "version": "1.3.3", 1711 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1712 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1713 | }, 1714 | "path-is-inside": { 1715 | "version": "1.0.2", 1716 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", 1717 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", 1718 | "dev": true 1719 | }, 1720 | "path-key": { 1721 | "version": "2.0.1", 1722 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1723 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 1724 | "dev": true 1725 | }, 1726 | "path-to-regexp": { 1727 | "version": "0.1.7", 1728 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1729 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1730 | }, 1731 | "pify": { 1732 | "version": "3.0.0", 1733 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 1734 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", 1735 | "dev": true 1736 | }, 1737 | "prepend-http": { 1738 | "version": "2.0.0", 1739 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 1740 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", 1741 | "dev": true 1742 | }, 1743 | "proxy-addr": { 1744 | "version": "2.0.5", 1745 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", 1746 | "integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==", 1747 | "requires": { 1748 | "forwarded": "0.1.2", 1749 | "ipaddr.js": "1.9.0" 1750 | } 1751 | }, 1752 | "pseudomap": { 1753 | "version": "1.0.2", 1754 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1755 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 1756 | "dev": true 1757 | }, 1758 | "pump": { 1759 | "version": "3.0.0", 1760 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1761 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1762 | "dev": true, 1763 | "requires": { 1764 | "end-of-stream": "1.4.4", 1765 | "once": "1.4.0" 1766 | } 1767 | }, 1768 | "qs": { 1769 | "version": "6.7.0", 1770 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1771 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1772 | }, 1773 | "range-parser": { 1774 | "version": "1.2.1", 1775 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1776 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1777 | }, 1778 | "raw-body": { 1779 | "version": "2.4.0", 1780 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1781 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1782 | "requires": { 1783 | "bytes": "3.1.0", 1784 | "http-errors": "1.7.2", 1785 | "iconv-lite": "0.4.24", 1786 | "unpipe": "1.0.0" 1787 | } 1788 | }, 1789 | "rc": { 1790 | "version": "1.2.8", 1791 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1792 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1793 | "dev": true, 1794 | "requires": { 1795 | "deep-extend": "0.6.0", 1796 | "ini": "1.3.5", 1797 | "minimist": "1.2.0", 1798 | "strip-json-comments": "2.0.1" 1799 | } 1800 | }, 1801 | "referrer-policy": { 1802 | "version": "1.2.0", 1803 | "resolved": "https://registry.npmjs.org/referrer-policy/-/referrer-policy-1.2.0.tgz", 1804 | "integrity": "sha512-LgQJIuS6nAy1Jd88DCQRemyE3mS+ispwlqMk3b0yjZ257fI1v9c+/p6SD5gP5FGyXUIgrNOAfmyioHwZtYv2VA==" 1805 | }, 1806 | "regexp-clone": { 1807 | "version": "1.0.0", 1808 | "resolved": "https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz", 1809 | "integrity": "sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw==" 1810 | }, 1811 | "registry-auth-token": { 1812 | "version": "4.0.0", 1813 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.0.0.tgz", 1814 | "integrity": "sha512-lpQkHxd9UL6tb3k/aHAVfnVtn+Bcs9ob5InuFLLEDqSqeq+AljB8GZW9xY0x7F+xYwEcjKe07nyoxzEYz6yvkw==", 1815 | "dev": true, 1816 | "requires": { 1817 | "rc": "1.2.8", 1818 | "safe-buffer": "5.1.2" 1819 | } 1820 | }, 1821 | "registry-url": { 1822 | "version": "5.1.0", 1823 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 1824 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 1825 | "dev": true, 1826 | "requires": { 1827 | "rc": "1.2.8" 1828 | } 1829 | }, 1830 | "require_optional": { 1831 | "version": "1.0.1", 1832 | "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz", 1833 | "integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==", 1834 | "requires": { 1835 | "resolve-from": "2.0.0", 1836 | "semver": "5.7.1" 1837 | } 1838 | }, 1839 | "resolve-from": { 1840 | "version": "2.0.0", 1841 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", 1842 | "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=" 1843 | }, 1844 | "responselike": { 1845 | "version": "1.0.2", 1846 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1847 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1848 | "dev": true, 1849 | "requires": { 1850 | "lowercase-keys": "1.0.1" 1851 | } 1852 | }, 1853 | "safe-buffer": { 1854 | "version": "5.1.2", 1855 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1856 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1857 | }, 1858 | "safer-buffer": { 1859 | "version": "2.1.2", 1860 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1861 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1862 | }, 1863 | "saslprep": { 1864 | "version": "1.0.3", 1865 | "resolved": "https://registry.npmjs.org/saslprep/-/saslprep-1.0.3.tgz", 1866 | "integrity": "sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag==", 1867 | "optional": true, 1868 | "requires": { 1869 | "sparse-bitfield": "3.0.3" 1870 | } 1871 | }, 1872 | "semver": { 1873 | "version": "5.7.1", 1874 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1875 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 1876 | }, 1877 | "semver-diff": { 1878 | "version": "2.1.0", 1879 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", 1880 | "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", 1881 | "dev": true, 1882 | "requires": { 1883 | "semver": "5.7.1" 1884 | } 1885 | }, 1886 | "send": { 1887 | "version": "0.17.1", 1888 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1889 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1890 | "requires": { 1891 | "debug": "2.6.9", 1892 | "depd": "1.1.2", 1893 | "destroy": "1.0.4", 1894 | "encodeurl": "1.0.2", 1895 | "escape-html": "1.0.3", 1896 | "etag": "1.8.1", 1897 | "fresh": "0.5.2", 1898 | "http-errors": "1.7.2", 1899 | "mime": "1.6.0", 1900 | "ms": "2.1.1", 1901 | "on-finished": "2.3.0", 1902 | "range-parser": "1.2.1", 1903 | "statuses": "1.5.0" 1904 | }, 1905 | "dependencies": { 1906 | "ms": { 1907 | "version": "2.1.1", 1908 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1909 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1910 | } 1911 | } 1912 | }, 1913 | "serve-static": { 1914 | "version": "1.14.1", 1915 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1916 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1917 | "requires": { 1918 | "encodeurl": "1.0.2", 1919 | "escape-html": "1.0.3", 1920 | "parseurl": "1.3.3", 1921 | "send": "0.17.1" 1922 | } 1923 | }, 1924 | "serverless-http": { 1925 | "version": "2.3.0", 1926 | "resolved": "https://registry.npmjs.org/serverless-http/-/serverless-http-2.3.0.tgz", 1927 | "integrity": "sha512-z1820kGkw/XlaXCZ3HMA6fY/SQXrbtlQjuTaxB1fMJTe5GJqjQRE0EyLKkeQDT3Qd4nmtfM1p7XEUuNv2chnFA==", 1928 | "requires": { 1929 | "@types/aws-lambda": "8.10.35" 1930 | } 1931 | }, 1932 | "serverless-offline": { 1933 | "version": "5.12.0", 1934 | "resolved": "https://registry.npmjs.org/serverless-offline/-/serverless-offline-5.12.0.tgz", 1935 | "integrity": "sha512-iYnToFs/PWQe1V68ChueD6+pzMlla8hJNA2O7jThYGiDgC8EyO+R6uAK+cD89VW8kneQNy/eGJzEcA8VUJOkbg==", 1936 | "dev": true, 1937 | "requires": { 1938 | "@hapi/boom": "7.4.11", 1939 | "@hapi/h2o2": "8.3.2", 1940 | "@hapi/hapi": "18.4.0", 1941 | "cuid": "2.1.6", 1942 | "hapi-plugin-websocket": "2.2.0", 1943 | "js-string-escape": "1.0.1", 1944 | "jsonpath-plus": "1.1.0", 1945 | "jsonwebtoken": "8.5.1", 1946 | "luxon": "1.21.1", 1947 | "object.fromentries": "2.0.1", 1948 | "semver": "6.3.0", 1949 | "trim-newlines": "3.0.0", 1950 | "update-notifier": "3.0.1", 1951 | "velocityjs": "1.1.5" 1952 | }, 1953 | "dependencies": { 1954 | "semver": { 1955 | "version": "6.3.0", 1956 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1957 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1958 | "dev": true 1959 | } 1960 | } 1961 | }, 1962 | "setprototypeof": { 1963 | "version": "1.1.1", 1964 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1965 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1966 | }, 1967 | "shebang-command": { 1968 | "version": "1.2.0", 1969 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1970 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1971 | "dev": true, 1972 | "requires": { 1973 | "shebang-regex": "1.0.0" 1974 | } 1975 | }, 1976 | "shebang-regex": { 1977 | "version": "1.0.0", 1978 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1979 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 1980 | "dev": true 1981 | }, 1982 | "sift": { 1983 | "version": "7.0.1", 1984 | "resolved": "https://registry.npmjs.org/sift/-/sift-7.0.1.tgz", 1985 | "integrity": "sha512-oqD7PMJ+uO6jV9EQCl0LrRw1OwsiPsiFQR5AR30heR+4Dl7jBBbDLnNvWiak20tzZlSE1H7RB30SX/1j/YYT7g==" 1986 | }, 1987 | "signal-exit": { 1988 | "version": "3.0.2", 1989 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 1990 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 1991 | "dev": true 1992 | }, 1993 | "sliced": { 1994 | "version": "1.0.1", 1995 | "resolved": "https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz", 1996 | "integrity": "sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E=" 1997 | }, 1998 | "sparse-bitfield": { 1999 | "version": "3.0.3", 2000 | "resolved": "https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", 2001 | "integrity": "sha1-/0rm5oZWBWuks+eSqzM004JzyhE=", 2002 | "optional": true, 2003 | "requires": { 2004 | "memory-pager": "1.5.0" 2005 | } 2006 | }, 2007 | "statuses": { 2008 | "version": "1.5.0", 2009 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2010 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 2011 | }, 2012 | "string-width": { 2013 | "version": "3.1.0", 2014 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2015 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2016 | "dev": true, 2017 | "requires": { 2018 | "emoji-regex": "7.0.3", 2019 | "is-fullwidth-code-point": "2.0.0", 2020 | "strip-ansi": "5.2.0" 2021 | } 2022 | }, 2023 | "string.prototype.trimleft": { 2024 | "version": "2.1.0", 2025 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz", 2026 | "integrity": "sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw==", 2027 | "dev": true, 2028 | "requires": { 2029 | "define-properties": "1.1.3", 2030 | "function-bind": "1.1.1" 2031 | } 2032 | }, 2033 | "string.prototype.trimright": { 2034 | "version": "2.1.0", 2035 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz", 2036 | "integrity": "sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg==", 2037 | "dev": true, 2038 | "requires": { 2039 | "define-properties": "1.1.3", 2040 | "function-bind": "1.1.1" 2041 | } 2042 | }, 2043 | "strip-ansi": { 2044 | "version": "5.2.0", 2045 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2046 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2047 | "dev": true, 2048 | "requires": { 2049 | "ansi-regex": "4.1.0" 2050 | } 2051 | }, 2052 | "strip-eof": { 2053 | "version": "1.0.0", 2054 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 2055 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 2056 | "dev": true 2057 | }, 2058 | "strip-json-comments": { 2059 | "version": "2.0.1", 2060 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2061 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 2062 | "dev": true 2063 | }, 2064 | "supports-color": { 2065 | "version": "5.5.0", 2066 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 2067 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 2068 | "dev": true, 2069 | "requires": { 2070 | "has-flag": "3.0.0" 2071 | } 2072 | }, 2073 | "term-size": { 2074 | "version": "1.2.0", 2075 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", 2076 | "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", 2077 | "dev": true, 2078 | "requires": { 2079 | "execa": "0.7.0" 2080 | } 2081 | }, 2082 | "to-readable-stream": { 2083 | "version": "1.0.0", 2084 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 2085 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", 2086 | "dev": true 2087 | }, 2088 | "toidentifier": { 2089 | "version": "1.0.0", 2090 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 2091 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 2092 | }, 2093 | "trim-newlines": { 2094 | "version": "3.0.0", 2095 | "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-3.0.0.tgz", 2096 | "integrity": "sha512-C4+gOpvmxaSMKuEf9Qc134F1ZuOHVXKRbtEflf4NTtuuJDEIJ9p5PXsalL8SkeRw+qit1Mo+yuvMPAKwWg/1hA==", 2097 | "dev": true 2098 | }, 2099 | "type-fest": { 2100 | "version": "0.3.1", 2101 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", 2102 | "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", 2103 | "dev": true 2104 | }, 2105 | "type-is": { 2106 | "version": "1.6.18", 2107 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2108 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2109 | "requires": { 2110 | "media-typer": "0.3.0", 2111 | "mime-types": "2.1.25" 2112 | } 2113 | }, 2114 | "unique-string": { 2115 | "version": "1.0.0", 2116 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", 2117 | "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", 2118 | "dev": true, 2119 | "requires": { 2120 | "crypto-random-string": "1.0.0" 2121 | } 2122 | }, 2123 | "unpipe": { 2124 | "version": "1.0.0", 2125 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2126 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2127 | }, 2128 | "update-notifier": { 2129 | "version": "3.0.1", 2130 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-3.0.1.tgz", 2131 | "integrity": "sha512-grrmrB6Zb8DUiyDIaeRTBCkgISYUgETNe7NglEbVsrLWXeESnlCSP50WfRSj/GmzMPl6Uchj24S/p80nP/ZQrQ==", 2132 | "dev": true, 2133 | "requires": { 2134 | "boxen": "3.2.0", 2135 | "chalk": "2.4.2", 2136 | "configstore": "4.0.0", 2137 | "has-yarn": "2.1.0", 2138 | "import-lazy": "2.1.0", 2139 | "is-ci": "2.0.0", 2140 | "is-installed-globally": "0.1.0", 2141 | "is-npm": "3.0.0", 2142 | "is-yarn-global": "0.3.0", 2143 | "latest-version": "5.1.0", 2144 | "semver-diff": "2.1.0", 2145 | "xdg-basedir": "3.0.0" 2146 | } 2147 | }, 2148 | "urijs": { 2149 | "version": "1.19.2", 2150 | "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.2.tgz", 2151 | "integrity": "sha512-s/UIq9ap4JPZ7H1EB5ULo/aOUbWqfDi7FKzMC2Nz+0Si8GiT1rIEaprt8hy3Vy2Ex2aJPpOQv4P4DuOZ+K1c6w==", 2152 | "dev": true 2153 | }, 2154 | "url-parse-lax": { 2155 | "version": "3.0.0", 2156 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 2157 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 2158 | "dev": true, 2159 | "requires": { 2160 | "prepend-http": "2.0.0" 2161 | } 2162 | }, 2163 | "utf8": { 2164 | "version": "3.0.0", 2165 | "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", 2166 | "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==", 2167 | "dev": true 2168 | }, 2169 | "utils-merge": { 2170 | "version": "1.0.1", 2171 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2172 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2173 | }, 2174 | "vary": { 2175 | "version": "1.1.2", 2176 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2177 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2178 | }, 2179 | "velocityjs": { 2180 | "version": "1.1.5", 2181 | "resolved": "https://registry.npmjs.org/velocityjs/-/velocityjs-1.1.5.tgz", 2182 | "integrity": "sha512-U4ANK4MRYSczVZjOp9FkAQoPO9geKSy3CWrBShPxMoWyqDox8SW8AZYiKtlCrV21ucONUtlU0iF3+KKK9AGoyA==", 2183 | "dev": true 2184 | }, 2185 | "websocket-framed": { 2186 | "version": "1.2.1", 2187 | "resolved": "https://registry.npmjs.org/websocket-framed/-/websocket-framed-1.2.1.tgz", 2188 | "integrity": "sha512-Gzny2xBIboB/gO8ZIP2gRZQz5x0S+kxyJwBXvGhrbwolNVG5i4THm1IdA+0ga9ZWTpLCHrkcFXB+s88TlkDJUQ==", 2189 | "dev": true, 2190 | "requires": { 2191 | "encodr": "1.2.0", 2192 | "eventemitter3": "3.1.2" 2193 | } 2194 | }, 2195 | "which": { 2196 | "version": "1.3.1", 2197 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 2198 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 2199 | "dev": true, 2200 | "requires": { 2201 | "isexe": "2.0.0" 2202 | } 2203 | }, 2204 | "widest-line": { 2205 | "version": "2.0.1", 2206 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz", 2207 | "integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==", 2208 | "dev": true, 2209 | "requires": { 2210 | "string-width": "2.1.1" 2211 | }, 2212 | "dependencies": { 2213 | "ansi-regex": { 2214 | "version": "3.0.0", 2215 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 2216 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 2217 | "dev": true 2218 | }, 2219 | "string-width": { 2220 | "version": "2.1.1", 2221 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2222 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2223 | "dev": true, 2224 | "requires": { 2225 | "is-fullwidth-code-point": "2.0.0", 2226 | "strip-ansi": "4.0.0" 2227 | } 2228 | }, 2229 | "strip-ansi": { 2230 | "version": "4.0.0", 2231 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2232 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2233 | "dev": true, 2234 | "requires": { 2235 | "ansi-regex": "3.0.0" 2236 | } 2237 | } 2238 | } 2239 | }, 2240 | "wrappy": { 2241 | "version": "1.0.2", 2242 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2243 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2244 | "dev": true 2245 | }, 2246 | "write-file-atomic": { 2247 | "version": "2.4.3", 2248 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", 2249 | "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", 2250 | "dev": true, 2251 | "requires": { 2252 | "graceful-fs": "4.2.3", 2253 | "imurmurhash": "0.1.4", 2254 | "signal-exit": "3.0.2" 2255 | } 2256 | }, 2257 | "ws": { 2258 | "version": "7.2.0", 2259 | "resolved": "https://registry.npmjs.org/ws/-/ws-7.2.0.tgz", 2260 | "integrity": "sha512-+SqNqFbwTm/0DC18KYzIsMTnEWpLwJsiasW/O17la4iDRRIO9uaHbvKiAS3AHgTiuuWerK/brj4O6MYZkei9xg==", 2261 | "dev": true, 2262 | "requires": { 2263 | "async-limiter": "1.0.1" 2264 | } 2265 | }, 2266 | "x-xss-protection": { 2267 | "version": "1.3.0", 2268 | "resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.3.0.tgz", 2269 | "integrity": "sha512-kpyBI9TlVipZO4diReZMAHWtS0MMa/7Kgx8hwG/EuZLiA6sg4Ah/4TRdASHhRRN3boobzcYgFRUFSgHRge6Qhg==" 2270 | }, 2271 | "xdg-basedir": { 2272 | "version": "3.0.0", 2273 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", 2274 | "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", 2275 | "dev": true 2276 | }, 2277 | "yallist": { 2278 | "version": "2.1.2", 2279 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 2280 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 2281 | "dev": true 2282 | } 2283 | } 2284 | } 2285 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sls-express-mongodb", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "handler.js", 6 | "directories": { 7 | "lib": "lib" 8 | }, 9 | "scripts": { 10 | "offline": "sls offline start --skipCacheInvalidation" 11 | }, 12 | "keywords": [], 13 | "author": "", 14 | "license": "ISC", 15 | "dependencies": { 16 | "body-parser": "^1.19.0", 17 | "express": "^4.17.1", 18 | "helmet": "^3.21.2", 19 | "mongoose": "^5.7.11", 20 | "serverless-http": "^2.3.0", 21 | "minimist": ">=1.2.3" 22 | }, 23 | "devDependencies": { 24 | "serverless-offline": "^5.12.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /secrets.json: -------------------------------------------------------------------------------- 1 | { 2 | "NODE_ENV": "production", 3 | "DB": "mongodb+srv://admin:password@sls-api-pdbit.mongodb.net/test?retryWrites=true&w=majority" 4 | } 5 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | // server.js 2 | const sls = require('serverless-http') 3 | const app = require('./lib/app') 4 | module.exports.run = sls(app) -------------------------------------------------------------------------------- /serverless.yml: -------------------------------------------------------------------------------- 1 | # serverless.yml 2 | service: sls-express-mongodb 3 | custom: 4 | secrets: ${file(secrets.json)} 5 | provider: 6 | name: aws 7 | runtime: nodejs8.10 8 | stage: ${self:custom.secrets.NODE_ENV} 9 | region: ap-south-1 10 | environment: 11 | NODE_ENV: ${self:custom.secrets.NODE_ENV} 12 | DB: ${self:custom.secrets.DB} 13 | functions: 14 | app: 15 | handler: server.run 16 | events: 17 | - http: 18 | path: / 19 | method: ANY 20 | cors: true 21 | - http: 22 | path: /{proxy+} 23 | method: ANY 24 | cors: true 25 | plugins: 26 | - serverless-offline --------------------------------------------------------------------------------