From 8be9e4b83bf3348f9fcc5efce7c043e2dacd049c Mon Sep 17 00:00:00 2001 From: Hexagon Date: Mon, 20 May 2024 21:51:48 +0200 Subject: [PATCH] Update @cross/kv --- deno.json | 2 +- lib/core/logger.ts | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index 1cb9658..ea83845 100644 --- a/deno.json +++ b/deno.json @@ -38,7 +38,7 @@ "@cross/env": "jsr:@cross/env@^1.0.2", "@cross/fs": "jsr:@cross/fs@^0.1.11", "@cross/jwt": "jsr:@cross/jwt@^0.4.7", - "@cross/kv": "jsr:@cross/kv@^0.0.13", + "@cross/kv": "jsr:@cross/kv@^0.11.0", "@cross/runtime": "jsr:@cross/runtime@^1.0.0", "@cross/service": "jsr:@cross/service@^1.0.3", "@cross/test": "jsr:@cross/test@^0.0.9", diff --git a/lib/core/logger.ts b/lib/core/logger.ts index 073133c..0165db0 100644 --- a/lib/core/logger.ts +++ b/lib/core/logger.ts @@ -8,7 +8,7 @@ import { stripAnsi } from "@cross/utils" import { type GlobalLoggerConfiguration, KV_LIMIT_STRING_LENGTH_BYTES, type ProcessConfiguration } from "./configuration.ts" -import { KV, KVKeyRange, KVQuery } from "@cross/kv" +import { KV, KVQuery, KVQueryRange } from "@cross/kv" import { writeFile } from "@cross/fs" export interface LogEvent { @@ -53,7 +53,7 @@ class Logger { private prepareSelector(processId?: string, startTimeStamp?: number, endTimeStamp?: number): KVQuery { const key: KVQuery = processId ? ["logs_by_time", {}, processId] : ["logs_by_time"] if (startTimeStamp || endTimeStamp) { - const rangeSelector: KVKeyRange = {} + const rangeSelector: KVQueryRange = {} if (startTimeStamp) { rangeSelector.from = startTimeStamp } diff --git a/package.json b/package.json index 8a9490d..ba5054a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "@cross/env": "npm:@jsr/cross__env@^1.0.2", "@cross/fs": "npm:@jsr/cross__fs@^0.1.11", "@cross/jwt": "npm:@jsr/cross__jwt@^0.4.7", - "@cross/kv": "npm:@jsr/cross__kv@^0.9.0", + "@cross/kv": "npm:@jsr/cross__kv@^0.11.0", "@cross/runtime": "npm:@jsr/cross__runtime@^1.0.0", "@cross/service": "npm:@jsr/cross__service@^1.0.3", "@cross/test": "npm:@jsr/cross__test@^0.0.9",