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

@datastax/astra-db-ts

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datastax/astra-db-ts - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

dist/collections/client.d.ts
import { Db } from './db';
import { HTTPClient } from '../client';
import { Collection } from "./collection";
import { CreateCollectionOptions } from "./options";
export interface ClientOptions {

@@ -28,2 +29,4 @@ applicationToken?: string;

collection(name: string): Promise<Collection>;
createCollection(collectionName: string, options?: CreateCollectionOptions): Promise<any>;
dropCollection(collectionName: string): Promise<import("../client/httpClient").APIResponse>;
/**

@@ -30,0 +33,0 @@ * Connect the MongoClient instance to JSON API (create Namespace automatically when the 'createNamespaceOnConnect' flag is set to true)

@@ -68,2 +68,8 @@ "use strict";

}
async createCollection(collectionName, options) {
return await this.db().createCollection(collectionName, options);
}
async dropCollection(collectionName) {
return await this.db().dropCollection(collectionName);
}
/**

@@ -70,0 +76,0 @@ * Connect the MongoClient instance to JSON API (create Namespace automatically when the 'createNamespaceOnConnect' flag is set to true)

2

dist/index.js

@@ -23,4 +23,2 @@ "use strict";

// export * as logger from './logger';
// import { createStargateUri, createAstraUri } from './collections';
// export { createStargateUri, createAstraUri };
//# sourceMappingURL=index.js.map
export declare const LIB_NAME = "@datastax/astra-db-ts";
export declare const LIB_VERSION = "0.0.1";
export declare const LIB_VERSION = "0.0.2";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LIB_VERSION = exports.LIB_NAME = void 0;
exports.LIB_NAME = "@datastax/astra-ts-client";
exports.LIB_VERSION = "0.0.1";
exports.LIB_NAME = "@datastax/astra-db-ts";
exports.LIB_VERSION = "0.0.2";
//# sourceMappingURL=version.js.map
{
"name": "@datastax/astra-db-ts",
"version": "0.0.1",
"version": "0.0.2",
"description": "Astra DB TS Client",

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

@@ -20,2 +20,3 @@ // Copyright DataStax, Inc.

import {Collection} from "./collection";
import {CreateCollectionOptions} from "./options";

@@ -88,2 +89,10 @@ export interface ClientOptions {

async createCollection(collectionName: string, options?: CreateCollectionOptions) {
return await this.db().createCollection(collectionName, options);
}
async dropCollection(collectionName: string,) {
return await this.db().dropCollection(collectionName);
}
/**

@@ -90,0 +99,0 @@ * Connect the MongoClient instance to JSON API (create Namespace automatically when the 'createNamespaceOnConnect' flag is set to true)

@@ -19,4 +19,1 @@ // Copyright DataStax, Inc.

// export * as logger from './logger';
// import { createStargateUri, createAstraUri } from './collections';
// export { createStargateUri, createAstraUri };
export const LIB_NAME = "@datastax/astra-db-ts";
export const LIB_VERSION = "0.0.1";
export const LIB_VERSION = "0.0.2";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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