Skip to content

Commit 0dad59f

Browse files
Release v1.6.6
1 parent cd46bd4 commit 0dad59f

File tree

6 files changed

+28
-18
lines changed

6 files changed

+28
-18
lines changed

dist/dynamics-web-api-callbacks.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api-callbacks v1.6.5 (c) 2020 Aleksandr Rogov */
1+
/*! dynamics-web-api-callbacks v1.6.6 (c) 2020 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -2867,11 +2867,16 @@ function parseData(object, parseParams) {
28672867
for (var i = 0; i < keys.length; i++) {
28682868
var currentKey = keys[i];
28692869

2870-
if (object[currentKey] != null && object[currentKey].constructor === Array) {
2871-
for (var j = 0; j < object[currentKey].length; j++) {
2872-
object[currentKey][j] = parseData(object[currentKey][j]);
2873-
}
2874-
}
2870+
if (object[currentKey] != null) {
2871+
if (object[currentKey].constructor === Array) {
2872+
for (var j = 0; j < object[currentKey].length; j++) {
2873+
object[currentKey][j] = parseData(object[currentKey][j]);
2874+
}
2875+
}
2876+
else if (typeof (object[currentKey]) === "object") {
2877+
parseData(object[currentKey]);
2878+
}
2879+
}
28752880

28762881
//parse formatted values
28772882
var formattedKeyValue = getFormattedKeyValue(currentKey, object[currentKey]);

dist/dynamics-web-api-callbacks.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v1.6.5 (c) 2020 Aleksandr Rogov */
1+
/*! dynamics-web-api v1.6.6 (c) 2020 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -2394,11 +2394,16 @@ function parseData(object, parseParams) {
23942394
for (var i = 0; i < keys.length; i++) {
23952395
var currentKey = keys[i];
23962396

2397-
if (object[currentKey] != null && object[currentKey].constructor === Array) {
2398-
for (var j = 0; j < object[currentKey].length; j++) {
2399-
object[currentKey][j] = parseData(object[currentKey][j]);
2400-
}
2401-
}
2397+
if (object[currentKey] != null) {
2398+
if (object[currentKey].constructor === Array) {
2399+
for (var j = 0; j < object[currentKey].length; j++) {
2400+
object[currentKey][j] = parseData(object[currentKey][j]);
2401+
}
2402+
}
2403+
else if (typeof (object[currentKey]) === "object") {
2404+
parseData(object[currentKey]);
2405+
}
2406+
}
24022407

24032408
//parse formatted values
24042409
var formattedKeyValue = getFormattedKeyValue(currentKey, object[currentKey]);

dist/dynamics-web-api.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamics-web-api",
3-
"version": "1.6.5",
3+
"version": "1.6.6",
44
"description": "DynamicsWebApi is a Microsoft Dynamics CRM Web API helper library",
55
"keywords": [
66
"crm",

0 commit comments

Comments
 (0)