From 072c9f5120d8e709a8f61173467b7b2bf6672177 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 7 Dec 2024 16:47:38 +0100 Subject: [PATCH] Update dependencies --- package.json | 22 +++++++++++----------- test/index.ts | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 2153c3c..cdc6a00 100644 --- a/package.json +++ b/package.json @@ -47,30 +47,30 @@ "cache" ], "dependencies": { - "ajv": "^8.16.0", + "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "atomically": "^2.0.3", "debounce-fn": "^6.0.0", "dot-prop": "^9.0.0", "env-paths": "^3.0.0", "json-schema-typed": "^8.0.1", - "semver": "^7.6.2", - "uint8array-extras": "^1.1.0" + "semver": "^7.6.3", + "uint8array-extras": "^1.4.0" }, "devDependencies": { - "@sindresorhus/tsconfig": "^5.0.0", - "@types/node": "^20.14.2", + "@sindresorhus/tsconfig": "^7.0.0", + "@types/node": "^22.10.1", "@types/semver": "^7.5.8", - "ava": "^6.1.3", - "del": "^7.1.0", - "del-cli": "^5.1.0", + "ava": "^6.2.0", + "del": "^8.0.0", + "del-cli": "^6.0.0", "delay": "^6.0.0", "p-event": "^6.0.1", "tempy": "^3.1.0", "ts-node": "^10.9.2", - "tsd": "^0.31.0", - "typescript": "^5.4.5", - "xo": "^0.58.0" + "tsd": "^0.31.2", + "typescript": "^5.7.2", + "xo": "^0.60.0" }, "ava": { "files": [ diff --git a/test/index.ts b/test/index.ts index 008f847..8c5dbc5 100644 --- a/test/index.ts +++ b/test/index.ts @@ -322,7 +322,7 @@ test('with `suffix` option set to empty string', t => { const config = new Conf({projectSuffix, projectName}); const configPathSegments = config.path.split(path.sep); const configRootIndex = configPathSegments.indexOf(projectName); - t.true(configRootIndex >= 0 && configRootIndex < configPathSegments.length); + t.true(configRootIndex !== -1 && configRootIndex < configPathSegments.length); }); test('with `projectSuffix` option set to non-empty string', t => { @@ -332,7 +332,7 @@ test('with `projectSuffix` option set to non-empty string', t => { const configPathSegments = config.path.split(path.sep); const expectedRootName = `${projectName}-${projectSuffix}`; const configRootIndex = configPathSegments.indexOf(expectedRootName); - t.true(configRootIndex >= 0 && configRootIndex < configPathSegments.length); + t.true(configRootIndex !== -1 && configRootIndex < configPathSegments.length); }); test('`fileExtension` option', t => {