@keyv/etcd 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +6 -7
  2. package/src/index.d.ts +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyv/etcd",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Etcd storage adapter for Keyv",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -58,22 +58,21 @@
58
58
  "homepage": "https://github.com/jaredwray/keyv",
59
59
  "dependencies": {
60
60
  "cockatiel": "^3.0.0",
61
- "etcd3": "^1.1.0",
62
- "pify": "^5.0.0"
61
+ "etcd3": "^1.1.0"
63
62
  },
64
63
  "devDependencies": {
65
64
  "@keyv/test-suite": "*",
66
65
  "@types/keyv": "^3.1.4",
67
- "ava": "^4.3.1",
66
+ "ava": "^4.3.3",
68
67
  "keyv": "*",
69
68
  "nyc": "^15.1.0",
70
69
  "requirable": "^1.0.5",
71
70
  "this": "^1.1.0",
72
71
  "ts-node": "^10.9.1",
73
- "tsd": "^0.22.0",
74
- "typescript": "^4.7.4",
72
+ "tsd": "^0.24.1",
73
+ "typescript": "^4.8.4",
75
74
  "webpack": "^5.74.0",
76
- "xo": "^0.51.0"
75
+ "xo": "^0.52.4"
77
76
  },
78
77
  "tsd": {
79
78
  "directory": "test"
package/src/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import {EventEmitter} from 'events';
2
- import Etcd3 from 'etcd3';
3
- import {Store, StoredData} from 'keyv';
2
+ import type Etcd3 from 'etcd3';
3
+ import type {Store, StoredData} from 'keyv';
4
4
 
5
- declare class KeyvEtcd extends EventEmitter implements Store<Value> {
5
+ declare class KeyvEtcd<Value=any> extends EventEmitter implements Store<Value> {
6
6
  ttlSupport: any;
7
7
  opts: any;
8
8
  client: Etcd3;
9
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
9
10
  lease: import('etcd3').Lease;
10
11
  constructor(options?: string | KeyvEtcd.Options);
11
12
  get(key: string): Promise<Value>;
@@ -21,6 +22,7 @@ declare class KeyvEtcd extends EventEmitter implements Store<Value> {
21
22
  }
22
23
 
23
24
  declare namespace KeyvEtcd {
25
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
24
26
  interface Options {
25
27
  url?: string | undefined;
26
28
  uri?: string | undefined;