dynamics-web-api
Advanced tools
Comparing version 1.7.11 to 1.7.12
@@ -390,5 +390,4 @@ var Utility = require('../utilities/Utility'); | ||
function _checkCollectionName(entityName, config, successCallback, errorCallback) { | ||
if (_isEntityNameException(entityName) || Utility.isNull(entityName)) { | ||
function _checkCollectionName(entityName, config, skipNameCheck, successCallback, errorCallback) { | ||
if (!!skipNameCheck || _isEntityNameException(entityName) || Utility.isNull(entityName)) { | ||
successCallback(entityName); | ||
@@ -431,3 +430,3 @@ return; | ||
else { | ||
_checkCollectionName(request.collection, config, function (collectionName) { | ||
_checkCollectionName(request.collection, config, request.skipNameCheck, function (collectionName) { | ||
request.collection = collectionName; | ||
@@ -434,0 +433,0 @@ var result = RequestConverter.convertRequest(request, functionName, config); |
@@ -277,2 +277,3 @@ "use strict"; | ||
var result; | ||
if (!request.url) { | ||
@@ -332,2 +333,3 @@ if (!request._unboundRequest && !request.collection) { | ||
return { url: result.url, headers: result.headers, async: result.async }; | ||
@@ -334,0 +336,0 @@ } |
{ | ||
"name": "dynamics-web-api", | ||
"version": "1.7.11", | ||
"version": "1.7.12", | ||
"description": "DynamicsWebApi is a Microsoft Dynamics CRM Web API helper library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
// Type definitions for dynamics-web-api v1.7.11 | ||
// Type definitions for dynamics-web-api v1.7.12 | ||
// Project: https://github.com/AleksandrRogov/DynamicsWebApi/ | ||
@@ -567,2 +567,4 @@ // Definitions by: Aleksandr Rogov https://github.com/AleksandrRogov/ | ||
collection?: string; | ||
/**Skips the collection name check in DynamicsWebApi */ | ||
skipNameCheck?: boolean; | ||
} | ||
@@ -569,0 +571,0 @@ |
297802
5552