@aws-amplify/analytics
Advanced tools
Comparing version 1.0.6-unstable.2 to 1.0.6-unstable.3
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.0.6-unstable.3"></a> | ||
## [1.0.6-unstable.3](https://github.com/aws/aws-amplify/compare/@aws-amplify/analytics@1.0.6-unstable.2...@aws-amplify/analytics@1.0.6-unstable.3) (2018-08-27) | ||
### Bug Fixes | ||
* **@aws-amplify/analytics:** abort recording events when lacking of application id or region ([b2b631b](https://github.com/aws/aws-amplify/commit/b2b631b)) | ||
<a name="1.0.6-unstable.2"></a> | ||
@@ -8,0 +19,0 @@ ## [1.0.6-unstable.2](https://github.com/aws/aws-amplify/compare/@aws-amplify/analytics@1.0.6-unstable.1...@aws-amplify/analytics@1.0.6-unstable.2) (2018-08-21) |
@@ -202,4 +202,6 @@ "use strict"; | ||
credentials = _a.sent(); | ||
if (!credentials) | ||
if (!credentials || !this._config['appId'] || !this._config['region']) { | ||
logger.debug('cannot send events without credentials, applicationId or region'); | ||
return [2 /*return*/, Promise.resolve(false)]; | ||
} | ||
timestamp = new Date().getTime(); | ||
@@ -206,0 +208,0 @@ Object.assign(params, { timestamp: timestamp, config: this._config, credentials: credentials }); |
{ | ||
"name": "@aws-amplify/analytics", | ||
"version": "1.0.6-unstable.2", | ||
"version": "1.0.6-unstable.3", | ||
"description": "Analytics category of aws-amplify", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
5181956
27965