@gedit/connection
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -22,3 +22,3 @@ "use strict"; | ||
exports.default = new inversify_1.ContainerModule(function (bind) { | ||
bind(ws_connection_provider_1.WebSocketConnectionProvider).toSelf().inSingletonScope(); | ||
bind(common_1.IConnectionProvider).to(ws_connection_provider_1.WebSocketConnectionProvider).inSingletonScope(); | ||
bind(common_1.MessageClient).toSelf().inSingletonScope(); | ||
@@ -29,3 +29,4 @@ bind(common_1.MessageService).toSelf().inSingletonScope() | ||
var client = container.get(common_1.MessageClient); | ||
ws_connection_provider_1.WebSocketConnectionProvider.createProxy(container, common_1.messageServicePath, client); | ||
var provider = container.get(common_1.IConnectionProvider); | ||
provider.createProxy(common_1.messageServicePath, client); | ||
return messages; | ||
@@ -32,0 +33,0 @@ }); |
@@ -19,3 +19,3 @@ /******************************************************************************** | ||
import { Emitter, Event } from '@gedit/utils'; | ||
import { ConnectionHandler, JsonRpcProxy, JsonRpcProxyFactory } from '../common'; | ||
import { ConnectionHandler, JsonRpcProxy, JsonRpcProxyFactory, IConnectionProvider } from '../common'; | ||
import { WebSocketChannel } from '../common/messaging/web-socket-channel'; | ||
@@ -29,3 +29,3 @@ import ReconnectingWebSocket from 'reconnecting-websocket'; | ||
} | ||
export declare class WebSocketConnectionProvider { | ||
export declare class WebSocketConnectionProvider implements IConnectionProvider { | ||
protected channelIdSeq: number; | ||
@@ -32,0 +32,0 @@ protected readonly socket: ReconnectingWebSocket; |
@@ -6,2 +6,3 @@ export * from './messaging'; | ||
export * from './progress-service-protocol'; | ||
export * from './connection-provider'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -18,2 +18,3 @@ "use strict"; | ||
__exportStar(require("./progress-service-protocol"), exports); | ||
__exportStar(require("./connection-provider"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@gedit/connection", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"license": "MIT", | ||
@@ -12,4 +12,4 @@ "main": "lib/common/index", | ||
"dependencies": { | ||
"@gedit/application-common": "^0.1.13", | ||
"@gedit/utils": "^0.1.13", | ||
"@gedit/application-common": "^0.1.14", | ||
"@gedit/utils": "^0.1.14", | ||
"@types/lodash.throttle": "^4.1.3", | ||
@@ -36,3 +36,3 @@ "lodash.throttle": "^4.1.1", | ||
}, | ||
"gitHead": "13de0f50548b14a82fe33a972956e9278bb97953" | ||
"gitHead": "df833a4712ccec3ce8a670a956fb5dfc9d32cdfc" | ||
} |
@@ -19,6 +19,6 @@ /******************************************************************************** | ||
import { WebSocketConnectionProvider } from './ws-connection-provider'; | ||
import { MessageClient, MessageService, messageServicePath } from '../common'; | ||
import { MessageClient, MessageService, messageServicePath, IConnectionProvider } from '../common'; | ||
export default new ContainerModule(bind => { | ||
bind(WebSocketConnectionProvider).toSelf().inSingletonScope(); | ||
bind(IConnectionProvider).to(WebSocketConnectionProvider).inSingletonScope(); | ||
bind(MessageClient).toSelf().inSingletonScope(); | ||
@@ -28,6 +28,6 @@ bind(MessageService).toSelf().inSingletonScope() | ||
const client = container.get(MessageClient); | ||
WebSocketConnectionProvider.createProxy(container, messageServicePath, client); | ||
const provider = container.get<IConnectionProvider>(IConnectionProvider); | ||
provider.createProxy(messageServicePath, client); | ||
return messages; | ||
}); | ||
}); |
@@ -20,3 +20,3 @@ /******************************************************************************** | ||
import { Emitter, Event } from '@gedit/utils'; | ||
import { ConnectionHandler, JsonRpcProxy, JsonRpcProxyFactory, } from '../common'; | ||
import { ConnectionHandler, JsonRpcProxy, JsonRpcProxyFactory, IConnectionProvider } from '../common'; | ||
import { WebSocketChannel } from '../common/messaging/web-socket-channel'; | ||
@@ -37,3 +37,3 @@ import { Endpoint } from '@gedit/utils/lib/browser'; | ||
@injectable() | ||
export class WebSocketConnectionProvider { | ||
export class WebSocketConnectionProvider implements IConnectionProvider { | ||
@@ -40,0 +40,0 @@ protected channelIdSeq = 0; |
@@ -6,1 +6,2 @@ export * from './messaging'; | ||
export * from './progress-service-protocol'; | ||
export * from './connection-provider'; |
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances 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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
166848
72
2958
Updated@gedit/utils@^0.1.14