@mongosh/service-provider-core
Advanced tools
Comparing version 0.0.1-alpha.9 to 0.0.1-alpha.10
@@ -16,3 +16,5 @@ import Document from './document'; | ||
getIndexes(database: string, collection: string, dbOptions?: Document): Promise<Result>; | ||
listCollections(database: string, filter?: Document, options?: Document, dbOptions?: Document): Promise<Result>; | ||
stats(database: string, collection: string, options?: Document, dbOptions?: Document): Promise<Result>; | ||
} | ||
export default Readable; |
@@ -23,3 +23,4 @@ import Document from './document'; | ||
dropIndexes(database: string, collection: string, indexes: string | string[] | Document | Document[], options?: Document, dbOptions?: Document): Promise<Result>; | ||
reIndex(database: string, collection: string, options?: Document, dbOptions?: Document): Promise<Result>; | ||
} | ||
export default Writable; |
{ | ||
"name": "@mongosh/service-provider-core", | ||
"version": "0.0.1-alpha.9", | ||
"version": "0.0.1-alpha.10", | ||
"description": "MongoDB Shell Core Service Provider Package", | ||
@@ -37,3 +37,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "586dc6c544bedf0bf652784afc2c4f6bb14bfa20" | ||
"gitHead": "72e9d284d6e622e9844b063ab5a11df66fa08aee" | ||
} |
@@ -170,4 +170,37 @@ import Document from './document'; | ||
dbOptions?: Document): Promise<Result>; | ||
/** | ||
* Returns an array of collection infos | ||
* | ||
* @param {String} database - The db name. | ||
* @param {Document} filter - The filter. | ||
* @param {Document} options - The command options. | ||
* @param {Object} dbOptions - The database options | ||
* (i.e. readConcern, writeConcern. etc). | ||
* | ||
* @return {Promise} | ||
*/ | ||
listCollections( | ||
database: string, | ||
filter?: Document, | ||
options?: Document, | ||
dbOptions?: Document): Promise<Result>; | ||
/* | ||
* Get all the collection statistics. | ||
* | ||
* @param {String} database - The db name. | ||
* @param {String} collection - The collection name. | ||
* @param {Object} options - The count options. | ||
* @param {Object} dbOptions - The database options | ||
* @return {Promise} returns Promise | ||
*/ | ||
stats( | ||
database: string, | ||
collection: string, | ||
options?: Document, | ||
dbOptions?: Document | ||
): Promise<Result> | ||
} | ||
export default Readable; |
@@ -310,4 +310,19 @@ import Document from './document'; | ||
dbOptions?: Document): Promise<Result>; | ||
/** | ||
* Reindex all indexes on the collection. | ||
* | ||
* @param {String} database - The db name. | ||
* @param {String} collection - The collection name. | ||
* @param {Object} options - The command options. | ||
* @param {Object} dbOptions - The database options (i.e. readConcern, writeConcern. etc). | ||
* @return {Promise} | ||
*/ | ||
reIndex( | ||
database: string, | ||
collection: string, | ||
options?: Document, | ||
dbOptions?: Document): Promise<Result>; | ||
} | ||
export default Writable; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
35478
685
0