@ardimedia/angular-portal-azure 0.2.204 → 0.2.205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/apn.js +9 -8
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1368,8 +1368,6 @@ var angularportalazure;
1368
1368
  //#region Static Methods
1369
1369
  // TODO:2017-01-09/hp: [any] will be [Response] in angular2
1370
1370
  Exception.prepareException = function (response) {
1371
- console.log('convertException: input [angular.IHttpPromiseCallbackArg<angularportalazure.Exception>]');
1372
- console.log(response);
1373
1371
  var exception = new angularportalazure.Exception();
1374
1372
  if (response.headers === undefined) {
1375
1373
  exception = Exception.processDotNetException1(response.data);
@@ -1398,10 +1396,8 @@ var angularportalazure;
1398
1396
  exception.StatusText = response.statusText;
1399
1397
  }
1400
1398
  //// Find a better way to log information, maybe to the database or to Google Analytics.
1401
- //console.log('processException:');
1402
- //console.log(response);
1403
- //console.log(this);
1404
- console.log('convertException: output is converted [angularportalazure.Exception]');
1399
+ console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in [Responsee] and [Exception] below. [Exception] does contain data from [Response.]');
1400
+ console.log(response);
1405
1401
  console.log(exception);
1406
1402
  return exception;
1407
1403
  };
@@ -1436,7 +1432,9 @@ var angularportalazure;
1436
1432
  // TODO:2017-01-09/hp: Implement this function for angular2
1437
1433
  Exception.processDotNetException2 = function (response) {
1438
1434
  var exception = new angularportalazure.Exception();
1439
- console.log('[angularportalazure.Exception.processDotNetException2] not yet implemented.');
1435
+ if (response.json().data !== undefined) {
1436
+ console.log('[angularportalazure.Exception.processDotNetException2] not yet implemented. Implement it to get proper exception data.');
1437
+ }
1440
1438
  return exception;
1441
1439
  };
1442
1440
  Exception.setExceptionType1 = function (response, exception) {
@@ -1455,8 +1453,11 @@ var angularportalazure;
1455
1453
  }
1456
1454
  exception.ExceptionType = response.data.ExceptionType;
1457
1455
  };
1456
+ // TODO:2017-01-09/hp: Implement this function for angular2
1458
1457
  Exception.setExceptionType2 = function (response, exception) {
1459
- console.log('[angularportalazure.Exception.setExceptionType2] not yet implemented.');
1458
+ if (response.json().ExceptionType !== undefined) {
1459
+ console.log('[angularportalazure.Exception.setExceptionType2] not yet implemented. Implement it to get proper exception data.');
1460
+ }
1460
1461
  };
1461
1462
  return Exception;
1462
1463
  }(angularportalazure.ValidationsExceptionDotNet));
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.204",
5
+ "version": "0.2.205",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {