@ardimedia/angular-portal-azure 0.2.333 → 0.2.335
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 +11 -1
- package/index.js +14 -14
- package/package.json +1 -1
package/apn.js
CHANGED
|
@@ -1772,8 +1772,18 @@ var angularportalazure;
|
|
|
1772
1772
|
exception = angularportalazure.Exception.processResponseData(exception, response.json().Data);
|
|
1773
1773
|
}
|
|
1774
1774
|
// #endregion
|
|
1775
|
+
// #region Process (Angular 2) response._body
|
|
1776
|
+
else if (response._body !== undefined) {
|
|
1777
|
+
var body = JSON.parse(response._body);
|
|
1778
|
+
if (body.Message) {
|
|
1779
|
+
exception.Message = body.Message;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
// #endregion
|
|
1775
1783
|
// #region Process (Angular 2) response.InnerException.InnerException.Message
|
|
1776
|
-
else if (response.json !== undefined && response.json
|
|
1784
|
+
else if (response.json !== undefined && response.json !== null
|
|
1785
|
+
&& response.json().InnerException !== undefined && response.json().InnerException !== null
|
|
1786
|
+
&& response.json().InnerException.InnerException !== undefined && response.json().InnerException.InnerException !== null) {
|
|
1777
1787
|
exception.Message = response.json().InnerException.InnerException.Message;
|
|
1778
1788
|
}
|
|
1779
1789
|
// #endregion
|
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
require('./apn');
|
|
2
|
-
module.exports = angularportalazure;
|
|
3
|
-
|
|
4
|
-
// TODO: 2016-10-25/hp: maybe we should use
|
|
5
|
-
/// https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html
|
|
6
|
-
(function (root, factory) {
|
|
7
|
-
if (typeof define === "function" && define.amd) {
|
|
8
|
-
define(["libName"], factory);
|
|
9
|
-
} else if (typeof module === "object" && module.exports) {
|
|
10
|
-
module.exports = factory(require("libName"));
|
|
11
|
-
} else {
|
|
12
|
-
root.returnExports = factory(root.libName);
|
|
13
|
-
}
|
|
14
|
-
}(this, function (b) { console.log(b); }))
|
|
1
|
+
require('./apn');
|
|
2
|
+
module.exports = angularportalazure;
|
|
3
|
+
|
|
4
|
+
// TODO: 2016-10-25/hp: maybe we should use something like this and change our code from [global] to [umd]
|
|
5
|
+
/// https://www.typescriptlang.org/docs/handbook/declaration-files/library-structures.html
|
|
6
|
+
(function (root, factory) {
|
|
7
|
+
if (typeof define === "function" && define.amd) {
|
|
8
|
+
define(["libName"], factory);
|
|
9
|
+
} else if (typeof module === "object" && module.exports) {
|
|
10
|
+
module.exports = factory(require("libName"));
|
|
11
|
+
} else {
|
|
12
|
+
root.returnExports = factory(root.libName);
|
|
13
|
+
}
|
|
14
|
+
}(this, function (b) { console.log(b); }))
|
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.335",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|