Socket
Socket
Sign inDemoInstall

nestjs-etcd3

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-etcd3 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

dist/etcd.service.d.ts

@@ -1,6 +0,6 @@

import { Etcd3 } from "etcd3";
import { Etcd3, Namespace } from "etcd3";
export declare class EtcdService {
private readonly client;
constructor(client: Etcd3);
getClient(): Etcd3;
getClient(namespace?: string): Namespace;
}

@@ -22,4 +22,9 @@ "use strict";

}
getClient() {
return this.client;
getClient(namespace) {
if (namespace) {
return this.client.namespace(namespace);
}
else {
return this.client;
}
}

@@ -26,0 +31,0 @@ };

import { Injectable, Inject } from "@nestjs/common";
import { ETCD_CLIENT } from './etcd.constants';
import { Etcd3 } from "etcd3";
import { Etcd3, Namespace } from "etcd3";

@@ -8,5 +8,9 @@ @Injectable()

constructor(@Inject(ETCD_CLIENT) private readonly client: Etcd3) {}
getClient(): Etcd3 {
return this.client
getClient(namespace? :string): Namespace {
if (namespace) {
return this.client.namespace(namespace)
} else {
return this.client
}
}
}
{
"name": "nestjs-etcd3",
"version": "1.0.1",
"version": "1.0.2",
"description": "a nestjs etcd3 module",

@@ -5,0 +5,0 @@ "author": "zzy",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc