ferrum-db-client
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -6,4 +6,2 @@ import { CollectionType } from './proto/collection_pb'; | ||
readonly database: string; | ||
private ip; | ||
private port; | ||
protected collectionKey: string; | ||
@@ -10,0 +8,0 @@ private collectionClient; |
@@ -10,8 +10,6 @@ "use strict"; | ||
constructor(ip, port, type, database, collectionkey) { | ||
this.collectionClient = new collection_grpc_pb_1.CollectionClient(`${this.ip}:${this.port}`, grpc_js_1.ChannelCredentials.createSsl(), {}); | ||
this.collectionClient = new collection_grpc_pb_1.CollectionClient(`${ip}:${port}`, grpc_js_1.ChannelCredentials.createSsl(), {}); | ||
this.type = type; | ||
this.database = database; | ||
this.collectionKey = collectionkey; | ||
this.ip = ip; | ||
this.port = port; | ||
} | ||
@@ -18,0 +16,0 @@ get name() { |
{ | ||
"name": "ferrum-db-client", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
@@ -10,4 +10,2 @@ import { ChannelCredentials } from '@grpc/grpc-js'; | ||
private ip: string; | ||
private port: number; | ||
protected collectionKey: string; | ||
@@ -21,8 +19,6 @@ private collectionClient: CollectionClient; | ||
constructor(ip: string, port: number, type: CollectionType, database: string, collectionkey: string) { | ||
this.collectionClient = new CollectionClient(`${this.ip}:${this.port}`, ChannelCredentials.createSsl(), {}); | ||
this.collectionClient = new CollectionClient(`${ip}:${port}`, ChannelCredentials.createSsl(), {}); | ||
this.type = type; | ||
this.database = database; | ||
this.collectionKey = collectionkey; | ||
this.ip = ip; | ||
this.port = port; | ||
} | ||
@@ -29,0 +25,0 @@ |
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
1155233
26864