New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dynamics-web-api

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamics-web-api - npm Package Compare versions

Comparing version 1.7.9 to 1.7.10

.github/README.md

35

lib/utilities/buildPreferHeader.js

@@ -1,3 +0,3 @@

var DWA = require('../dwa');
var ErrorHelper = require('../helpers/ErrorHelper');
var DWA = require("../dwa");
var ErrorHelper = require("../helpers/ErrorHelper");

@@ -16,2 +16,3 @@ /**

var trackChanges = request.trackChanges;
var continueOnError = request.continueOnError;

@@ -24,3 +25,3 @@ var prefer;

if (typeof prefer === "string") {
prefer = prefer.split(',');
prefer = prefer.split(",");
}

@@ -31,11 +32,10 @@ for (var i in prefer) {

returnRepresentation = true;
}
else if (item.indexOf("odata.include-annotations=") > -1) {
includeAnnotations = item.replace('odata.include-annotations=', '').replace(/"/g, '');
}
else if (item.startsWith("odata.maxpagesize=")) {
maxPageSize = item.replace('odata.maxpagesize=', '').replace(/"/g, '');
}
else if (item.indexOf("odata.track-changes") > -1) {
} else if (item.indexOf("odata.include-annotations=") > -1) {
includeAnnotations = item.replace("odata.include-annotations=", "").replace(/"/g, "");
} else if (item.startsWith("odata.maxpagesize=")) {
maxPageSize = item.replace("odata.maxpagesize=", "").replace(/"/g, "");
} else if (item.indexOf("odata.track-changes") > -1) {
trackChanges = true;
} else if (item.includes("odata.continue-on-error")) {
continueOnError = true;
}

@@ -67,3 +67,3 @@ }

ErrorHelper.numberParameterCheck(maxPageSize, "DynamicsWebApi." + functionName, "request.maxPageSize");
prefer.push('odata.maxpagesize=' + maxPageSize);
prefer.push("odata.maxpagesize=" + maxPageSize);
}

@@ -73,6 +73,11 @@

ErrorHelper.boolParameterCheck(trackChanges, "DynamicsWebApi." + functionName, "request.trackChanges");
prefer.push('odata.track-changes');
prefer.push("odata.track-changes");
}
return prefer.join(',');
}
if (continueOnError) {
ErrorHelper.boolParameterCheck(continueOnError, "DynamicsWebApi." + functionName, "request.continueOnError");
prefer.push("odata.continue-on-error");
}
return prefer.join(",");
};
{
"name": "dynamics-web-api",
"version": "1.7.9",
"version": "1.7.10",
"description": "DynamicsWebApi is a Microsoft Dynamics CRM Web API helper library",

@@ -5,0 +5,0 @@ "keywords": [

@@ -510,3 +510,3 @@ // Type definitions for dynamics-web-api v1.7.8

*/
executeBatch(request?: DynamicsWebApi.RequestBase): Promise<any[]>;
executeBatch(request?: DynamicsWebApi.BatchRequest): Promise<any[]>;
/**

@@ -560,2 +560,7 @@ * Creates a new instance of DynamicsWebApi

interface BatchRequest extends RequestBase{
//Sets Prefer header to "odata.continue-on-error" that allows more requests be processed when errors occur. The batch request will return '200 OK' and individual response errors will be returned in the batch response body.
continueOnError?: boolean;
}
interface Request extends RequestBase {

@@ -562,0 +567,0 @@ /**The name of the Entity Collection or Entity Logical name. */

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc