ferrum-db-client
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -9,2 +9,4 @@ import { FerrumDBRemote } from './db_remote'; | ||
export declare function ferrumConnect(ip: string, port: number): Promise<FerrumServerClient>; | ||
export { LogVerbosity } from '@grpc/grpc-js/build/src/constants'; | ||
export { setLogger, setLogVerbosity } from '@grpc/grpc-js'; | ||
export { CollectionType } from './proto/collection_pb'; | ||
@@ -25,3 +27,3 @@ export declare class FerrumServerClient { | ||
disconnectClient(ip: string, port: number): Promise<void>; | ||
private disconnect; | ||
disconnect(): void; | ||
static reconnectAll(): void; | ||
@@ -28,0 +30,0 @@ reconnect(): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FerrumServerClient = exports.CollectionType = exports.TimeSeriesRemote = exports.SetRemote = exports.IndexRemote = exports.FerrumDBRemote = void 0; | ||
exports.FerrumServerClient = exports.CollectionType = exports.setLogVerbosity = exports.setLogger = exports.LogVerbosity = exports.TimeSeriesRemote = exports.SetRemote = exports.IndexRemote = exports.FerrumDBRemote = void 0; | ||
exports.ferrumConnect = ferrumConnect; | ||
@@ -23,2 +23,7 @@ const grpc_js_1 = require("@grpc/grpc-js"); | ||
} | ||
var constants_1 = require("@grpc/grpc-js/build/src/constants"); | ||
Object.defineProperty(exports, "LogVerbosity", { enumerable: true, get: function () { return constants_1.LogVerbosity; } }); | ||
var grpc_js_2 = require("@grpc/grpc-js"); | ||
Object.defineProperty(exports, "setLogger", { enumerable: true, get: function () { return grpc_js_2.setLogger; } }); | ||
Object.defineProperty(exports, "setLogVerbosity", { enumerable: true, get: function () { return grpc_js_2.setLogVerbosity; } }); | ||
var collection_pb_1 = require("./proto/collection_pb"); | ||
@@ -25,0 +30,0 @@ Object.defineProperty(exports, "CollectionType", { enumerable: true, get: function () { return collection_pb_1.CollectionType; } }); |
@@ -59,2 +59,3 @@ "use strict"; | ||
observerConfig.timeoutNotifier.emit(printMessage(msg)); | ||
reject(new Error('Request timed out')); | ||
}, observerConfig.timeout); | ||
@@ -61,0 +62,0 @@ } |
{ | ||
"name": "ferrum-db-client", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
@@ -19,2 +19,4 @@ import { ChannelCredentials } from '@grpc/grpc-js'; | ||
export { LogVerbosity } from '@grpc/grpc-js/build/src/constants'; | ||
export { setLogger, setLogVerbosity } from '@grpc/grpc-js'; | ||
export { CollectionType } from './proto/collection_pb'; | ||
@@ -78,3 +80,3 @@ | ||
private disconnect(): void { | ||
public disconnect(): void { | ||
this.client.close(); | ||
@@ -81,0 +83,0 @@ } |
@@ -70,2 +70,3 @@ import { ServiceError } from '@grpc/grpc-js'; | ||
observerConfig.timeoutNotifier.emit(printMessage(msg)); | ||
reject(new Error('Request timed out')); | ||
}, observerConfig.timeout); | ||
@@ -72,0 +73,0 @@ } |
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
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
1222582
28197