@mongosh/service-provider-core
Advanced tools
Comparing version 0.0.1-alpha.6 to 0.0.1-alpha.9
@@ -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; |
{ | ||
"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
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
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
0
100
637
0
33800
1