Skip to content

Commit daa37d1

Browse files
Release v1.6.14
1 parent 0edcfc4 commit daa37d1

File tree

6 files changed

+30
-18
lines changed

6 files changed

+30
-18
lines changed

dist/dynamics-web-api-callbacks.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api-callbacks v1.6.13 (c) 2020 Aleksandr Rogov */
1+
/*! dynamics-web-api-callbacks v1.6.14 (c) 2020 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -3225,7 +3225,11 @@ var xhrRequest = function (options) {
32253225
status: request.status
32263226
};
32273227

3228+
responseParams.length = 0;
3229+
request = null;
3230+
32283231
successCallback(response);
3232+
32293233
break;
32303234
}
32313235
default: // All other statuses are error cases.
@@ -3249,17 +3253,19 @@ var xhrRequest = function (options) {
32493253
}
32503254
}
32513255

3252-
errorCallback(ErrorHelper.handleHttpError(error, {
3256+
var errorResponse = {
32533257
status: request.status,
32543258
statusText: request.statusText,
32553259
headers: headers
3256-
}));
3260+
}
3261+
3262+
responseParams.length = 0;
3263+
request = null;
3264+
3265+
errorCallback(ErrorHelper.handleHttpError(error, errorResponse));
32573266

32583267
break;
32593268
}
3260-
3261-
request = null;
3262-
responseParams.length = 0;
32633269
}
32643270
};
32653271

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: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v1.6.13 (c) 2020 Aleksandr Rogov */
1+
/*! dynamics-web-api v1.6.14 (c) 2020 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -2745,7 +2745,11 @@ var xhrRequest = function (options) {
27452745
status: request.status
27462746
};
27472747

2748+
responseParams.length = 0;
2749+
request = null;
2750+
27482751
successCallback(response);
2752+
27492753
break;
27502754
}
27512755
default: // All other statuses are error cases.
@@ -2769,17 +2773,19 @@ var xhrRequest = function (options) {
27692773
}
27702774
}
27712775

2772-
errorCallback(ErrorHelper.handleHttpError(error, {
2776+
var errorResponse = {
27732777
status: request.status,
27742778
statusText: request.statusText,
27752779
headers: headers
2776-
}));
2780+
}
2781+
2782+
responseParams.length = 0;
2783+
request = null;
2784+
2785+
errorCallback(ErrorHelper.handleHttpError(error, errorResponse));
27772786

27782787
break;
27792788
}
2780-
2781-
request = null;
2782-
responseParams.length = 0;
27832789
}
27842790
};
27852791

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

0 commit comments

Comments
 (0)