Socket
Socket
Sign inDemoInstall

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 1.10.0 to 1.10.1

Gruntfile.js

10

changelog.md

@@ -0,4 +1,10 @@

## Changes in 1.10.1 : ##
- Disabling SSL verification when using the SDK to target the emulator(hostname=localhost).
- Added support for enabling script logging during stored procedure execution.
## Changes in 1.10.0 : ##
- Added support for TOP/ORDERBY queries for partitioned collections.
- Added support for cross partition parallel queries.
- Added support for TOP/ORDER BY queries for partitioned collections.

@@ -41,3 +47,3 @@ ## Changes in 1.9.0 : ##

- Dedicated HTTPS Agent: Avoid modifying the global agent for DocumentDB purposes. Use a dedicated agent for all of the lib�s requests.
- Dedicated HTTPS Agent: Avoid modifying the global agent for DocumentDB purposes. Use a dedicated agent for all of the lib’s requests.

@@ -44,0 +50,0 @@ ## Changes in 1.5.3 : ##

4

lib/base.js

@@ -291,2 +291,6 @@ /*

if (options.enableScriptLogging ) {
headers[Constants.HttpHeaders.EnableScriptLogging] = options.enableScriptLogging;
}
return headers;

@@ -293,0 +297,0 @@ },

@@ -153,3 +153,7 @@ /*

// Sub status of the error
SubStatus: "x-ms-substatus"
SubStatus: "x-ms-substatus",
// StoredProcedure related headers
EnableScriptLogging: "x-ms-documentdb-script-enable-logging",
ScriptLogResults: "x-ms-documentdb-script-log-results"
},

@@ -170,3 +174,3 @@

SDKName: "documentdb-nodejs-sdk",
SDKVersion: "1.10.0",
SDKVersion: "1.10.1",

@@ -173,0 +177,0 @@ DefaultPrecisions: {

@@ -33,3 +33,3 @@ /*

/**
* Represents a DatabaseAccount. A DatabaseAccount is the container for databases.
* Represents a DatabaseAccount in the Azure DocumentDB database service. A DatabaseAccount is the container for databases.
* @global

@@ -272,3 +272,3 @@ * @property {string} DatabasesLink - The self-link for Databases in the databaseAccount.

* @global
* Represents the Connection policy associated with a DocumentClient.
* Represents the Connection policy associated with a DocumentClient in the Azure DocumentDB database service.
* @property {string} MediaReadMode - Attachment content (aka media) download mode. Should be one of the values of {@link MediaReadMode}

@@ -275,0 +275,0 @@ * @property {number} MediaRequestTimeout - Time to wait for response from network peer for attachment content (aka media) operations. Represented in milliseconds.

@@ -32,3 +32,4 @@ /*

* HashPartitionResolver implements partitioning based on the value of a hash function,
* allowing you to evenly distribute requests and data across a number of partitions.
* allowing you to evenly distribute requests and data across a number of partitions for
* the Azure DocumentDB database service.
* @class HashPartitionResolver

@@ -35,0 +36,0 @@ * @param {string | function} partitionKeyExtractor - If partitionKeyExtractor is a string, it should be the name of the property in the document to execute the hashing on.

@@ -35,4 +35,4 @@ /*

/**
* Provides the PipelinedExecutionContext. It piplelines top and orderby execution context if necessary
* @constructor PipelinedExecutionContext
* Provides the PipelinedQueryExecutionContext. It piplelines top and orderby execution context if necessary
* @constructor PipelinedQueryExecutionContext
* @param {DocumentClient} documentclient - The service endpoint to use to create the client.

@@ -50,3 +50,3 @@ * @param {FeedOptions} [options] - Represents the feed options.

if (this.pageSize === undefined) {
this.pageSize = PipelinedExecutionContext.DEFAULT_PAGE_SIZE;
this.pageSize = PipelinedQueryExecutionContext.DEFAULT_PAGE_SIZE;
}

@@ -125,2 +125,2 @@ var orderBy = QueryExecutionInfoParser.parseOrderBy(partitionedQueryExecutionInfo);

module.exports = PipelinedQueryExecutionContext;
}
}

@@ -33,3 +33,4 @@ /*

/**
* Represents a QueryIterator Object, an implmenetation of feed or query response that enables traversal and iterating over the response.
* Represents a QueryIterator Object, an implmenetation of feed or query response that enables traversal and iterating over the response
* in the Azure DocumentDB database service.
* @class QueryIterator

@@ -36,0 +37,0 @@ * @param {object} documentclient - The documentclient object.

@@ -31,3 +31,3 @@ /*

/**
* Represents a range object used by the RangePartitionResolver
* Represents a range object used by the RangePartitionResolver in the Azure DocumentDB database service.
* @class Range

@@ -163,3 +163,3 @@ * @param {object} options - The Range constructor options.

/**
* RangePartitionResolver implements partitioning using a partition map of ranges of values to a collection link.
* RangePartitionResolver implements partitioning using a partition map of ranges of values to a collection link in the Azure DocumentDB database service.
* @class RangePartitionResolver

@@ -166,0 +166,0 @@ * @param {string | function} partitionKeyExtractor - If partitionKeyExtractor is a string, it should be the name of the property in the document to execute the hashing on.

@@ -173,3 +173,10 @@ /*

requestOptions.secureProtocol = "TLSv1_client_method";
// Disabling the SSL verification for local emulator(localhost) only, otherwise
// Node.js apps running against local emulator will fail with error code DEPTH_ZERO_SELF_SIGNED_CERT
// unless they have set process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; explicitly.
if (requestOptions.hostname === "localhost") {
requestOptions.rejectUnauthorized = false;
}
if (queryParams) {

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

@@ -30,3 +30,3 @@ /*

/**
* Represents the Retry policy assocated with throttled requests.
* Represents the Retry policy assocated with throttled requests in the Azure DocumentDB database service.
* @property {int} [MaxRetryAttemptCount] - Max number of retries to be performed for a request. Default value 9.

@@ -33,0 +33,0 @@ * @property {int} [FixedRetryIntervalInMilliseconds] - Fixed retry interval in milliseconds to wait between each retry ignoring the retryAfter returned as part of the response.

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

],
"version": "1.10.0",
"version": "1.10.1",
"author": "Microsoft Corporation",

@@ -29,6 +29,6 @@ "main": "./index.js",

"dependencies": {
"binary-search-bounds": "2.0.3",
"priorityqueuejs": "1.0.0",
"underscore": "1.8.3",
"binary-search-bounds": "2.0.3",
"semaphore": "1.0.5"
"semaphore": "1.0.5",
"underscore": "1.8.3"
},

@@ -35,0 +35,0 @@ "repository": {

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