Socket
Socket
Sign inDemoInstall

@mongosh/service-provider-core

Package Overview
Dependencies
Maintainers
6
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongosh/service-provider-core - npm Package Compare versions

Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.9

1

lib/readable.d.ts

@@ -15,3 +15,4 @@ import Document from './document';

isCapped(database: string, collection: string): Promise<Result>;
getIndexes(database: string, collection: string, dbOptions?: Document): Promise<Result>;
}
export default Readable;

@@ -21,3 +21,5 @@ import Document from './document';

convertToCapped(database: string, collection: string, size: number): Promise<Result>;
createIndexes(database: string, collection: string, indexSpecs: Document[], options?: Document, dbOptions?: Document): Promise<Result>;
dropIndexes(database: string, collection: string, indexes: string | string[] | Document | Document[], options?: Document, dbOptions?: Document): Promise<Result>;
}
export default Writable;

13

package.json
{
"name": "@mongosh/service-provider-core",
"version": "0.0.1-alpha.6",
"version": "0.0.1-alpha.9",
"description": "MongoDB Shell Core Service Provider Package",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"config": {
"unsafe-perm": true
},
"repository": {
"type": "git",
"url": "git://github.com/mongodb-js/mongosh.git"
},
"scripts": {

@@ -11,3 +18,3 @@ "compile-ts": "tsc -p tsconfig.json",

},
"license": "SSPL",
"license": "Apache-2.0",
"publishConfig": {

@@ -31,3 +38,3 @@ "access": "public"

},
"gitHead": "280033fe0c406fc520db253d06688f36546692fd"
"gitHead": "586dc6c544bedf0bf652784afc2c4f6bb14bfa20"
}

@@ -154,4 +154,20 @@ import Document from './document';

collection: string): Promise<Result>;
/**
* Returns an array that holds a list of documents that identify and
* describe the existing indexes on the collection.
*
* @param {String} database - The db name.
* @param {String} collection - The collection name.
* @param {Object} dbOptions - The database options
* (i.e. readConcern, writeConcern. etc).
*
* @return {Promise}
*/
getIndexes(
database: string,
collection: string,
dbOptions?: Document): Promise<Result>;
}
export default Readable;

@@ -275,4 +275,39 @@ import Document from './document';

): Promise<Result>
/**
* Adds new indexes to a collection.
*
* @param {String} database - The db name.
* @param {String} collection - The collection name.
* @param {Object[]} indexSpecs the spec of the indexes to be created.
* @param {Object} options - The command options.
* @param {Object} dbOptions - The database options (i.e. readConcern, writeConcern. etc).
* @return {Promise}
*/
createIndexes(
database: string,
collection: string,
indexSpecs: Document[],
options?: Document,
dbOptions?: Document): Promise<Result>;
/**
* Drop indexes for a collection.
*
* @param {String} database - The db name.
* @param {String} collection - The collection name.
* @param {string|string[]|Object|Object[]} indexes the indexes to be removed.
* @param {Object} options - The command options.
* @param {Object} dbOptions - The database options (i.e. readConcern, writeConcern. etc).
* @return {Promise}
*/
dropIndexes(
database: string,
collection: string,
indexes: string|string[]|Document|Document[],
options?: Document,
dbOptions?: Document): Promise<Result>;
}
export default Writable;

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