@ardimedia/angular-portal-azure 0.2.205 → 0.2.207
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.
- package/apn.js +6 -5
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -1368,9 +1368,10 @@ 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('angularportalazure.Exception.prepareException - Logging Exception: Find more information in [Responsee] and [Exception] below. [Exception] does contain data from [Response.]');
|
|
1371
1372
|
var exception = new angularportalazure.Exception();
|
|
1372
1373
|
if (response.headers === undefined) {
|
|
1373
|
-
exception = Exception.processDotNetException1(response
|
|
1374
|
+
exception = Exception.processDotNetException1(response);
|
|
1374
1375
|
exception.ExceptionMessage = response.data.ExceptionMessage;
|
|
1375
1376
|
exception.StackTrace = response.data.StackTrace;
|
|
1376
1377
|
Exception.setExceptionType1(response, exception);
|
|
@@ -1383,7 +1384,7 @@ var angularportalazure;
|
|
|
1383
1384
|
exception.StatusText = response.statusText;
|
|
1384
1385
|
}
|
|
1385
1386
|
else {
|
|
1386
|
-
exception = Exception.processDotNetException2(response
|
|
1387
|
+
exception = Exception.processDotNetException2(response);
|
|
1387
1388
|
exception.ExceptionMessage = response.json().ExceptionMessage;
|
|
1388
1389
|
exception.StackTrace = response.json().StackTrace;
|
|
1389
1390
|
Exception.setExceptionType2(response, exception);
|
|
@@ -1396,7 +1397,6 @@ var angularportalazure;
|
|
|
1396
1397
|
exception.StatusText = response.statusText;
|
|
1397
1398
|
}
|
|
1398
1399
|
//// Find a better way to log information, maybe to the database or to Google Analytics.
|
|
1399
|
-
console.log('angularportalazure.Exception.prepareException - Logging Exception: Find more information in [Responsee] and [Exception] below. [Exception] does contain data from [Response.]');
|
|
1400
1400
|
console.log(response);
|
|
1401
1401
|
console.log(exception);
|
|
1402
1402
|
return exception;
|
|
@@ -1422,8 +1422,8 @@ var angularportalazure;
|
|
|
1422
1422
|
//#region Convert data to Messages
|
|
1423
1423
|
exception.Messages = [];
|
|
1424
1424
|
var i = 1;
|
|
1425
|
-
while (response.data[i + ''] !== undefined) {
|
|
1426
|
-
exception.Messages.push(response.data[i + '']);
|
|
1425
|
+
while (response.data.Data[i + ''] !== undefined) {
|
|
1426
|
+
exception.Messages.push(response.data.Data[i + '']);
|
|
1427
1427
|
i++;
|
|
1428
1428
|
}
|
|
1429
1429
|
//#endregion
|
|
@@ -1457,6 +1457,7 @@ var angularportalazure;
|
|
|
1457
1457
|
Exception.setExceptionType2 = function (response, exception) {
|
|
1458
1458
|
if (response.json().ExceptionType !== undefined) {
|
|
1459
1459
|
console.log('[angularportalazure.Exception.setExceptionType2] not yet implemented. Implement it to get proper exception data.');
|
|
1460
|
+
console.log(response.json().ExceptionType);
|
|
1460
1461
|
}
|
|
1461
1462
|
};
|
|
1462
1463
|
return Exception;
|
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.
|
|
5
|
+
"version": "0.2.207",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|