deep-core
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -30,2 +30,4 @@ /** | ||
var _Context = require('./Context'); | ||
/** | ||
@@ -59,3 +61,3 @@ * Lambda runtime context | ||
/** | ||
* @returns {Object} | ||
* @returns {null|Context} | ||
*/ | ||
@@ -72,10 +74,6 @@ | ||
value: function run(event, context) { | ||
this._context = new _Context.Context(context); | ||
this._request = new _Request.Request(event); | ||
// @todo: move to constructor | ||
this._context = context; | ||
this._addExceptionListener(); | ||
this._request = new _Request.Request(event); | ||
this._fillUserContext(); | ||
@@ -146,3 +144,3 @@ | ||
value: function _fillUserContext() { | ||
if (this._context && this._context.hasOwnProperty('identity') && this._context.identity.hasOwnProperty('cognitoIdentityPoolId') && this._context.identity.hasOwnProperty('cognitoIdentityId')) { | ||
if (this._context && this._context.has('identity') && this._context.identity.hasOwnProperty('cognitoIdentityPoolId') && this._context.identity.hasOwnProperty('cognitoIdentityId')) { | ||
var identityPoolId = this._context.identity.cognitoIdentityPoolId; | ||
@@ -149,0 +147,0 @@ |
{ | ||
"name": "deep-core", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "DEEP Core Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
99530
31
2054