diff --git a/packages/etcd/package.json b/packages/etcd/package.json index 2af00648c..40575cb51 100644 --- a/packages/etcd/package.json +++ b/packages/etcd/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "tsc --project tsconfig.dist.json", "prepare": "yarn build", - "test": "xo && c8 ava --serial", + "test": "xo --fix && c8 ava --serial", "test:ci": "xo && ava --serial", "clean": "rm -rf node_modules && rm -rf ./coverage" }, @@ -68,7 +68,7 @@ "tsd": "^0.29.0", "typescript": "^5.2.2", "webpack": "^5.89.0", - "xo": "^0.56.0" + "xo": "^0.58.0" }, "tsd": { "directory": "test" diff --git a/packages/etcd/src/index.ts b/packages/etcd/src/index.ts index 98152f25c..255c43a27 100644 --- a/packages/etcd/src/index.ts +++ b/packages/etcd/src/index.ts @@ -1,7 +1,9 @@ import {EventEmitter} from 'events'; import {Etcd3, type Lease} from 'etcd3'; import type {StoredData} from 'keyv'; -import type {ClearOutput, DeleteManyOutput, DeleteOutput, GetOutput, HasOutput, SetOutput} from './types'; +import type { + ClearOutput, DeleteManyOutput, DeleteOutput, GetOutput, HasOutput, SetOutput, +} from './types'; type KeyvEtcdOptions = { url?: string; @@ -22,7 +24,7 @@ class KeyvEtcd extends EventEmitter { this.ttlSupport = typeof options?.ttl === 'number'; - url = url ?? {}; + url ??= {}; if (typeof url === 'string') { url = {url};