Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

documentdb

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documentdb - npm Package Compare versions

Comparing version 0.9.4 to 1.0.0

2

lib/auth.js

@@ -43,3 +43,3 @@ //----------------------------------------------------------------------------

var pathParts = path.split("/");
var resourceTypes = ["dbs", "colls", "docs", "sprocs", "udfs", "triggers", "users", "permissions", "attachments", "media", "conflicts"];
var resourceTypes = ["dbs", "colls", "docs", "sprocs", "udfs", "triggers", "users", "permissions", "attachments", "media", "conflicts", "offers"];
for (var i = pathParts.length - 1; i >= 0;i--) {

@@ -46,0 +46,0 @@ if (resourceTypes.indexOf(pathParts[i]) === -1) {

@@ -189,4 +189,7 @@ //----------------------------------------------------------------------------

}
if (options.offerType != null) {
headers[Constants.HttpHeaders.OfferType] = options.offerType;
}
if (options.maxItemCount) {

@@ -193,0 +196,0 @@ headers[Constants.HttpHeaders.PageSize] = options.maxItemCount;

@@ -114,13 +114,11 @@ //----------------------------------------------------------------------------

CurrentMediaStorageUsageInMB: "x-ms-media-storage-usage-mb",
DatabaseAccountCapacityUnitsConsumed: "x-ms-database-capacity-units-consumed",
DatabaseAccountCapacityUnitsProvisioned: "x-ms-database-capacity-units-provisioned",
DatabaseAccountConsumedDocumentStorageInMB: "x-ms-databaseaccount-consumed-mb",
DatabaseAccountReservedDocumentStorageInMB: "x-ms-databaseaccount-reserved-mb",
DatabaseAccountProvisionedDocumentStorageInMB: "x-ms-databaseaccount-provisioned-mb",
RequestCharge: "x-ms-request-charge"
RequestCharge: "x-ms-request-charge",
// Offer header
OfferType: "x-ms-offer-type"
},
CurrentVersion: "2014-08-21",
CurrentVersion: "2015-04-08",
UserAgent: "documentdb-nodejs-sdk-0.9.4"
UserAgent: "documentdb-nodejs-sdk-1.0.0"
}

@@ -132,2 +130,2 @@

module.exports = Constants;
}
}

@@ -20,12 +20,2 @@ //----------------------------------------------------------------------------

Value is returned from cached information updated periodically and is not guaranteed to be real time. </p>
* @property {number} CapacityUnitsConsumed - The number is capacity units database account is currently consuming. <br>
Value is returned from cached information updated periodically and is not guaranteed to be real time. </p>
* @property {number} CapacityUnitsProvisioned - <p> The number of provisioned capacity units for the database account. <br>
Value is returned from cached information updated periodically and is not guaranteed to be real time. </p>
* @property {number} ConsumedDocumentStorageInMB - <p> The cumulative sum of current sizes of created collection in MB. <br>
Value is returned from cached information updated periodically and is not guaranteed to be real time. </p>
* @property {number} ReservedDocumentStorageInMB - <p> The cumulative sum of maximum sizes of created collection in MB. <br>
Value is returned from cached information updated periodically and is not guaranteed to be real time. </p>
* @property {number} ProvisionedDocumentStorageInMB - <p> The provisioned documented storage capacity for the database account. <br>
Value is returned from cached information updated periodically and is not guaranteed to be real time. </p>
* @property {object} ConsistencyPolicy - Gets the UserConsistencyPolicy settings.

@@ -65,16 +55,2 @@ * @property {string} ConsistencyPolicy.defaultConsistencyLevel - The default consistency level and it's of type {@link ConsistencyLevel}.

Object.defineProperty(this, "CapacityUnitsConsumed", {
value: 0,
writable: true,
configurable: true,
enumerable: true
});
Object.defineProperty(this, "CapacityUnitsProvisioned", {
value: 0,
writable: true,
configurable: true,
enumerable: true
});
Object.defineProperty(this, "ConsumedDocumentStorageInMB", {

@@ -160,10 +136,4 @@ value: 0,

Protocol : Object.freeze({
Tcp: 1,
Https: 2,
}),
ConnectionMode : Object.freeze({
Direct: 0,
Gateway: 1,
Gateway: 0,
}),

@@ -256,16 +226,2 @@

ConnectionPolicy : Base.defineClass(function() {
Object.defineProperty(this, "_defaultMaxConnections", {
value: 20,
writable: true,
configurable: true,
enumerable: false // this is the default value, so it could be excluded during JSON.stringify
});
Object.defineProperty(this, "_defaultMaxConcurrentCallsPerConnection", {
value: 50,
writable: true,
configurable: true,
enumerable: false // this is the default value, so it could be excluded during JSON.stringify
});
Object.defineProperty(this, "_defaultRequestTimeout", {

@@ -287,8 +243,5 @@ value: 60000,

this.ConnectionMode = AzureDocuments.ConnectionMode.Gateway;
this.ConnectionProtocol = AzureDocuments.Protocol.Https;
this.MediaReadMode = AzureDocuments.MediaReadMode.Buffered;
this.MediaRequestTimeout = this._defaultMediaRequestTimeout;
this.RequestTimeout = this._defaultRequestTimeout;
this.MaxCallsPerConnections = this._defaultMaxConcurrentCallsPerConnection; // for direct connectivity
this.MaxConnections = this._defaultMaxConnections; // for direct connectivity
})

@@ -295,0 +248,0 @@ }

@@ -17,3 +17,4 @@ //----------------------------------------------------------------------------

https.globalAgent.options.secureProtocol = "TLSv1_client_method";
// Keeping the connection alive to reuse the sockets.
https.globalAgent.keepAlive = true;
//----------------------------------------------------------------------------

@@ -127,3 +128,3 @@ // Utility methods

requestOptions.headers = headers;
if(queryParams) {

@@ -130,0 +131,0 @@ requestOptions.path += "?" + querystring.stringify(queryParams);

@@ -12,3 +12,3 @@ {

],
"version": "0.9.4",
"version": "1.0.0",
"author": "Microsoft Corporation",

@@ -15,0 +15,0 @@ "main": "./index.js",

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

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