Socket
Socket
Sign inDemoInstall

documentdb-typescript

Package Overview
Dependencies
10
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

4

package.json
{
"name": "documentdb-typescript",
"version": "1.0.4",
"version": "1.0.5",
"description": "TypeScript API for Microsoft Azure DocumentDB",

@@ -28,3 +28,3 @@ "keywords": [

"dependencies": {
"documentdb": "^1.10.0"
"documentdb": "^1.12.0"
},

@@ -31,0 +31,0 @@ "devDependencies": {

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

# Azure DocumentDB TypeScript API
# Azure Cosmos DB (DocumentDB API) TypeScript interface
This Node.js module provides the 'missing' TypeScript 2 API for Microsoft's awesome SQL-queried schema-free NoSQL database in the Azure cloud, DocumentDB.
This Node.js module provides a TypeScript-based wrapper around the Node.js APIs for Microsoft's awesome SQL-queried schema-free NoSQL database in the Azure cloud, ~~DocumentDB~~ Cosmos DB.
Refer to the DocumentDB documentation here: https://docs.microsoft.com/en-us/azure/documentdb/
Refer to the DocumentDB API documentation here: https://docs.microsoft.com/en-us/azure/documentdb/documentdb-sdk-node
**No TypeScript required** — you can use this module with plain JavaScript too (ES3, ES5, or ES6 aka ES2015 and whatever comes after), and enjoy enhanced Intellisense in an editor that supports TypeScript 2 definition files, such as VS Code.
**No TypeScript required** — you can use this module with plain JavaScript too (ES3, ES5, or ES6 aka ES2015, ES7 and whatever comes after), and enjoy enhanced Intellisense in an editor that supports TypeScript 2 definition files, such as VS Code.
> **NOTE:** The author of this module is _not_ affiliated with Microsoft, Azure, or Document DB.
> **NOTE:** The author of this module is _not_ affiliated with Microsoft, Azure, or Cosmos DB / Document DB.

@@ -41,3 +41,3 @@ ### Goals

At this point parts of the DocumentDB feature set are still missing. If your app needs stored procedures, or users and permissions, for example, then please add to this code (preferably as new classes). Pull requests are greatly appreciated!
At this point parts of the DocumentDB API feature set are still missing. If your app needs stored procedures, or users and permissions, for example, then please add to this code (preferably as new classes). Pull requests are greatly appreciated!

@@ -71,3 +71,3 @@ Tests are sorely needed as well. Perhaps some of the tests can be ported over from DocumentDB itself.

This module exports only the following symbols:
- `Client` class: contains methods for dealing with the connection to DocumentDB account.
- `Client` class: contains methods for dealing with the connection to ~~DocumentDB~~ Cosmos DB account.
- `Database` class: represents a database.

@@ -294,5 +294,5 @@ - `Collection` class: represents a collection, and contains methods for dealing with documents.

while (true) {
var it = await stream.next();
if (it.done === true) break;
console.log(it.value.foo);
var { done, value } = await stream.next();
if (done) break;
console.log(value.foo);
}

@@ -299,0 +299,0 @@

@@ -185,3 +185,3 @@ /** Constructor for the DocumentClient instance */

/** Consistency level constants */
export declare type ConsistencyLevel = "Strong" | "BoundedStaleness" | "Session" | "Eventual";
export declare type ConsistencyLevel = "Strong" | "BoundedStaleness" | "Session" | "Eventual" | "ConsistentPrefix";
/** Query type: either a plain string or a structure with parameters */

@@ -252,2 +252,4 @@ export declare type SqlQuery = string | {

offerType?: string;
offerEnableRUPerMinuteThroughput?: boolean;
disableRUPerMinuteUsage?: boolean;
offerThroughput?: number;

@@ -254,0 +256,0 @@ partitionKey?: {};

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc