Skip to content

Commit f5a5150

Browse files
Release v1.7.2
1 parent 53c3b76 commit f5a5150

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed

dist/dynamics-web-api-callbacks.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api-callbacks v1.7.1 (c) 2021 Aleksandr Rogov */
1+
/*! dynamics-web-api-callbacks v1.7.2 (c) 2021 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -96,8 +96,6 @@ if (!String.prototype.endsWith || !String.prototype.startsWith) {
9696
__webpack_require__(200);
9797
}
9898

99-
/* webpack-strip-block:removed */
100-
10199
/**
102100
* Configuration object for DynamicsWebApi
103101
* @typedef {object} DWAConfig
@@ -109,6 +107,7 @@ if (!String.prototype.endsWith || !String.prototype.startsWith) {
109107
* @property {string} maxPageSize - Sets the odata.maxpagesize preference value to request the number of entities returned in the response.
110108
* @property {boolean} returnRepresentation - Sets Prefer header request with value "return=representation". Use this property to return just created or updated entity in a single request.
111109
* @property {boolean} useEntityNames - Indicates whether to use Entity Logical Names instead of Collection Logical Names.
110+
* @property {Object} proxy - Proxy configuration.
112111
*/
113112

114113
/**
@@ -166,7 +165,8 @@ function DynamicsWebApi(config) {
166165
onTokenRefresh: null,
167166
includeAnnotations: null,
168167
maxPageSize: null,
169-
returnRepresentation: null
168+
returnRepresentation: null,
169+
proxy: null
170170
};
171171

172172
var _isBatch = false;
@@ -232,7 +232,9 @@ function DynamicsWebApi(config) {
232232
if (config.useEntityNames) {
233233
ErrorHelper.boolParameterCheck(config.useEntityNames, 'DynamicsWebApi.setConfig', 'config.useEntityNames');
234234
_internalConfig.useEntityNames = config.useEntityNames;
235-
}
235+
}
236+
237+
/* webpack-strip-block:removed */
236238
};
237239

238240
this.setConfig(config);
@@ -2747,6 +2749,7 @@ function sendRequest(method, path, config, data, additionalHeaders, responsePara
27472749
errorCallback: errorCallback,
27482750
isAsync: isAsync,
27492751
timeout: timeout,
2752+
/* webpack-strip-block:removed */
27502753
requestId: requestId
27512754
});
27522755
};
@@ -2928,6 +2931,7 @@ let xhrWrapper = {
29282931
var errorParsed = parseResponse(request.responseText, headers, responseParams[requestId]);
29292932

29302933
if (Array.isArray(errorParsed)) {
2934+
delete responseParams[requestId];
29312935
errorCallback(errorParsed);
29322936
break;
29332937
}

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: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v1.7.1 (c) 2021 Aleksandr Rogov */
1+
/*! dynamics-web-api v1.7.2 (c) 2021 Aleksandr Rogov */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory();
@@ -98,8 +98,6 @@ if (!String.prototype.endsWith || !String.prototype.startsWith) {
9898
__webpack_require__(200);
9999
}
100100

101-
/* webpack-strip-block:removed */
102-
103101
/**
104102
* Configuration object for DynamicsWebApi
105103
* @typedef {object} DWAConfig
@@ -172,7 +170,8 @@ function DynamicsWebApi(config) {
172170
onTokenRefresh: null,
173171
includeAnnotations: null,
174172
maxPageSize: null,
175-
returnRepresentation: null
173+
returnRepresentation: null,
174+
proxy: null
176175
};
177176

178177
var _isBatch = false;
@@ -244,6 +243,8 @@ function DynamicsWebApi(config) {
244243
ErrorHelper.boolParameterCheck(config.useEntityNames, 'DynamicsWebApi.setConfig', 'config.useEntityNames');
245244
_internalConfig.useEntityNames = config.useEntityNames;
246245
}
246+
247+
/* webpack-strip-block:removed */
247248
};
248249

249250
this.setConfig(config);
@@ -670,7 +671,7 @@ function DynamicsWebApi(config) {
670671
request.downloadSize = "full";
671672

672673
return _makeRequest("GET", request, "downloadFile", { parse: true })
673-
.then(function(response) {
674+
.then(function (response) {
674675
request.url = response.data.location;
675676
data += response.data.value;
676677

@@ -2554,6 +2555,7 @@ function sendRequest(method, path, config, data, additionalHeaders, responsePara
25542555
errorCallback: errorCallback,
25552556
isAsync: isAsync,
25562557
timeout: timeout,
2558+
/* webpack-strip-block:removed */
25572559
requestId: requestId
25582560
});
25592561
};
@@ -2735,6 +2737,7 @@ let xhrWrapper = {
27352737
var errorParsed = parseResponse(request.responseText, headers, responseParams[requestId]);
27362738

27372739
if (Array.isArray(errorParsed)) {
2740+
delete responseParams[requestId];
27382741
errorCallback(errorParsed);
27392742
break;
27402743
}

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

0 commit comments

Comments
 (0)