Skip to content

Commit 76b132d

Browse files
Release v1.5.12
1 parent 449e287 commit 76b132d

File tree

6 files changed

+32
-14
lines changed

6 files changed

+32
-14
lines changed

dist/dynamics-web-api-callbacks.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api-callbacks v1.5.11 (c) 2019 Aleksandr Rogov */
1+
/*! dynamics-web-api-callbacks v1.5.12 (c) 2019 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -1778,11 +1778,20 @@ function DynamicsWebApi(config) {
17781778
var internalSuccessCallback = function (response) {
17791779
records = records.concat(response.value);
17801780

1781-
if (response.oDataNextLink) {
1782-
_retrieveAllRequest(request, successCallback, errorCallback, response.oDataNextLink, records);
1781+
var pageLink = response.oDataNextLink;
1782+
1783+
if (pageLink) {
1784+
_retrieveAllRequest(request, successCallback, errorCallback, pageLink, records);
17831785
}
17841786
else {
1785-
successCallback({ value: records });
1787+
var result = { value: records };
1788+
1789+
if (response.oDataDeltaLink) {
1790+
result["@odata.deltaLink"] = response.oDataDeltaLink;
1791+
result.oDataDeltaLink = response.oDataDeltaLink;
1792+
}
1793+
1794+
successCallback(result);
17861795
}
17871796
};
17881797

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: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v1.5.11 (c) 2019 Aleksandr Rogov */
1+
/*! dynamics-web-api v1.5.12 (c) 2019 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -1331,11 +1331,20 @@ function DynamicsWebApi(config) {
13311331
return retrieveMultipleRequest(request, nextPageLink).then(function (response) {
13321332
records = records.concat(response.value);
13331333

1334-
if (response.oDataNextLink) {
1335-
return _retrieveAllRequest(request, response.oDataNextLink, records);
1334+
var pageLink = response.oDataNextLink;
1335+
1336+
if (pageLink) {
1337+
return _retrieveAllRequest(request, pageLink, records);
13361338
}
13371339

1338-
return { value: records };
1340+
var result = { value: records };
1341+
1342+
if (response.oDataDeltaLink) {
1343+
result["@odata.deltaLink"] = response.oDataDeltaLink;
1344+
result.oDataDeltaLink = response.oDataDeltaLink;
1345+
}
1346+
1347+
return result;
13391348
});
13401349
};
13411350

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.5.11",
3+
"version": "1.5.12",
44
"description": "DynamicsWebApi is a Microsoft Dynamics CRM Web API helper library",
55
"keywords": [
66
"crm",

0 commit comments

Comments
 (0)