@mongosh/service-provider-server
Advanced tools
Comparing version 0.0.1-alpha.15 to 0.0.1-alpha.17
import CliServiceProvider from './cli-service-provider'; | ||
import { MongoClient } from 'mongodb'; | ||
interface DataService { | ||
client: { | ||
client: MongoClient; | ||
}; | ||
} | ||
declare class CompassServiceProvider extends CliServiceProvider { | ||
static fromDataService(dataService: DataService): CompassServiceProvider; | ||
} | ||
export default CompassServiceProvider; |
@@ -20,2 +20,3 @@ "use strict"; | ||
var cli_service_provider_1 = __importDefault(require("./cli-service-provider")); | ||
var mongosh_transport_server_1 = require("mongosh-transport-server"); | ||
var CompassServiceProvider = (function (_super) { | ||
@@ -26,2 +27,7 @@ __extends(CompassServiceProvider, _super); | ||
} | ||
CompassServiceProvider.fromDataService = function (dataService) { | ||
var mongoClient = dataService.client.client; | ||
var nodeTransport = new mongosh_transport_server_1.NodeTransport(mongoClient); | ||
return new CompassServiceProvider(nodeTransport); | ||
}; | ||
return CompassServiceProvider; | ||
@@ -28,0 +34,0 @@ }(cli_service_provider_1.default)); |
{ | ||
"name": "@mongosh/service-provider-server", | ||
"version": "0.0.1-alpha.15", | ||
"version": "0.0.1-alpha.17", | ||
"description": "MongoDB Shell Server Service Provider Package", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"config": { | ||
@@ -42,4 +41,4 @@ "unsafe-perm": true | ||
"dependencies": { | ||
"@mongosh/errors": "^0.0.1-alpha.15", | ||
"@mongosh/service-provider-core": "^0.0.1-alpha.15", | ||
"@mongosh/errors": "^0.0.1-alpha.17", | ||
"@mongosh/service-provider-core": "^0.0.1-alpha.17", | ||
"@types/sinon": "^7.5.1", | ||
@@ -49,3 +48,3 @@ "@types/sinon-chai": "^3.2.3", | ||
}, | ||
"gitHead": "7a03e706a3ec26c8d93425b90feaadab6dcf3cdd" | ||
"gitHead": "10b9bc6848810960819cb863ffe6c6d7ca7f8027" | ||
} |
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
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
165774
3939