@mcma/google-cloud-http-functions
Advanced tools
Comparing version 0.13.16 to 0.13.17
import { McmaApiRouteCollection } from "@mcma/api"; | ||
import { Request, Response } from "express"; | ||
import { EnvironmentVariables, LoggerProvider } from "@mcma/core"; | ||
import { ConfigVariables, LoggerProvider } from "@mcma/core"; | ||
export declare class HttpFunctionApiController { | ||
private loggerProvider?; | ||
private environmentVariables; | ||
private configVariables; | ||
private mcmaApiController; | ||
constructor(routes: McmaApiRouteCollection, loggerProvider?: LoggerProvider, environmentVariables?: EnvironmentVariables); | ||
constructor(routes: McmaApiRouteCollection, loggerProvider?: LoggerProvider, configVariables?: ConfigVariables); | ||
handleRequest(request: Request, response: Response): Promise<void>; | ||
} |
@@ -24,5 +24,5 @@ "use strict"; | ||
class HttpFunctionApiController { | ||
constructor(routes, loggerProvider, environmentVariables = core_1.EnvironmentVariables.getInstance()) { | ||
constructor(routes, loggerProvider, configVariables = core_1.ConfigVariables.getInstance()) { | ||
this.loggerProvider = loggerProvider; | ||
this.environmentVariables = environmentVariables; | ||
this.configVariables = configVariables; | ||
this.mcmaApiController = new api_1.McmaApiController(routes); | ||
@@ -39,3 +39,3 @@ } | ||
body: request.body | ||
}), this.loggerProvider, this.environmentVariables); | ||
}), this.loggerProvider, this.configVariables); | ||
await this.mcmaApiController.handleRequest(requestContext); | ||
@@ -42,0 +42,0 @@ response.statusCode = requestContext.response.statusCode; |
{ | ||
"name": "@mcma/google-cloud-http-functions", | ||
"version": "0.13.16", | ||
"version": "0.13.17", | ||
"description": "Node module with code for using Google HTTP functions as an entry point to an MCMA API handler.", | ||
@@ -39,14 +39,14 @@ "engines": { | ||
"peerDependencies": { | ||
"@mcma/api": "0.13.16", | ||
"@mcma/client": "0.13.16", | ||
"@mcma/core": "0.13.16", | ||
"@mcma/data": "0.13.16", | ||
"@mcma/worker-invoker": "0.13.16" | ||
"@mcma/api": "0.13.17", | ||
"@mcma/client": "0.13.17", | ||
"@mcma/core": "0.13.17", | ||
"@mcma/data": "0.13.17", | ||
"@mcma/worker-invoker": "0.13.17" | ||
}, | ||
"devDependencies": { | ||
"@mcma/api": "0.13.16", | ||
"@mcma/client": "0.13.16", | ||
"@mcma/core": "0.13.16", | ||
"@mcma/data": "0.13.16", | ||
"@mcma/worker-invoker": "0.13.16", | ||
"@mcma/api": "0.13.17", | ||
"@mcma/client": "0.13.17", | ||
"@mcma/core": "0.13.17", | ||
"@mcma/data": "0.13.17", | ||
"@mcma/worker-invoker": "0.13.17", | ||
"@types/express": "^4.17.6", | ||
@@ -53,0 +53,0 @@ "@types/node": "^13.7.6", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5420
1