gsg-typeix
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
/** | ||
@@ -3,0 +2,0 @@ * @since 1.0.0 |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
/** | ||
@@ -3,0 +2,0 @@ * @since 1.0.0 |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IProvider } from "./iprovider"; | ||
@@ -3,0 +2,0 @@ import { IResolvedRoute } from "./iroute"; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IBodyParser } from "../interfaces/ibodyparser"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Injector } from "../injector/injector"; | ||
@@ -3,0 +2,0 @@ import { Logger } from "../logger/logger"; |
@@ -12,3 +12,2 @@ "use strict"; | ||
const router_1 = require("../router/router"); | ||
const core_2 = require("../core"); | ||
exports.BOOTSTRAP_PROVIDERS = [logger_1.Logger, router_1.Router]; | ||
@@ -169,3 +168,3 @@ exports.BOOTSTRAP_MODULE = "root"; | ||
*/ | ||
function fireRequest(modules, request, response, event = {}, ctx) { | ||
function fireRequest(modules, request, response, event = {}, ctx = {}) { | ||
let rootInjector = getModule(modules).injector; | ||
@@ -176,6 +175,4 @@ let logger = rootInjector.get(logger_1.Logger); | ||
// in case of a lambda execution context is set and has a awsRequestId the request id is set as the internal UUID | ||
if (!core_2.isPresent(ctx)) { | ||
if (core_2.isPresent(ctx.awsRequestId)) { | ||
UUID = ctx.awsRequestId; | ||
} | ||
if (ctx && ctx.awsRequestId) { | ||
UUID = ctx.awsRequestId; | ||
} | ||
@@ -182,0 +179,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage, ServerResponse } from "http"; | ||
@@ -3,0 +2,0 @@ import { Injector } from "../injector/injector"; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Injector } from "../injector/injector"; | ||
@@ -3,0 +2,0 @@ import { IModule } from "../interfaces/imodule"; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IAfterConstruct, IProvider } from "../interfaces/iprovider"; | ||
@@ -3,0 +2,0 @@ import { IncomingMessage } from "http"; |
@@ -312,11 +312,5 @@ "use strict"; | ||
response = yield this.processError(response, true); | ||
this.response.writeHead(this.statusCode, headers); | ||
this.response.write(response); | ||
this.response.end(); | ||
break; | ||
case RenderType.DEFAULT_ERROR_HANDLER: | ||
response = yield this.processError(response, false); | ||
this.response.writeHead(this.statusCode, headers); | ||
this.response.write(response); | ||
this.response.end(); | ||
break; | ||
@@ -323,0 +317,0 @@ case RenderType.REDIRECT: |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IResolvedRoute } from "../interfaces"; | ||
@@ -3,0 +2,0 @@ import { MultiPartField, MultiPartFile } from "../parsers"; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage } from "http"; | ||
@@ -3,0 +2,0 @@ import { IResolvedRoute } from "../interfaces"; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { IncomingMessage } from "http"; | ||
@@ -3,0 +2,0 @@ import { IModule } from "../interfaces/imodule"; |
@@ -0,1 +1,4 @@ | ||
## 3.0.1-rc.0 | ||
- Fixed issue with HTTP error handling | ||
## 3.0.0-rc.0 | ||
@@ -2,0 +5,0 @@ - Lambda support |
{ | ||
"name": "gsg-typeix", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"dependencies": { | ||
@@ -39,3 +39,4 @@ "aws-lambda-create-request-response": "^0.1.13", | ||
"author": "igor.zg1987@gmail.com", | ||
"contributors": [{ | ||
"contributors": [ | ||
{ | ||
"name": "Michael Rose", | ||
@@ -48,3 +49,2 @@ "email": "michael_rose@gmx.de" | ||
} | ||
], | ||
@@ -63,2 +63,4 @@ "license": "MIT", | ||
"nyc": "^13.1.0", | ||
"sinon": "^7.3.2", | ||
"sinon-chai": "^3.3.0", | ||
"tslint": "^5.6.0", | ||
@@ -65,0 +67,0 @@ "typedoc": "^0.8.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
5
438330
15
10591