diff --git a/deps.ts b/deps.ts index c8a410a..6bc9301 100644 --- a/deps.ts +++ b/deps.ts @@ -1,6 +1,5 @@ -export { join as joinPath } from "https://deno.land/std@0.202.0/path/mod.ts"; +export { join as joinPath } from "https://deno.land/std@0.214.0/path/mod.ts"; -export { parse as parseYaml } from "https://deno.land/std@0.202.0/yaml/mod.ts"; +export { parse as parseYaml } from "https://deno.land/std@0.214.0/yaml/mod.ts"; -export { TextLineStream } from "https://deno.land/std@0.202.0/streams/text_line_stream.ts"; -export { readableStreamFromReader } from "https://deno.land/std@0.202.0/streams/readable_stream_from_reader.ts"; +export { TextLineStream } from "https://deno.land/std@0.214.0/streams/text_line_stream.ts"; \ No newline at end of file diff --git a/lib/stream-transformers.ts b/lib/stream-transformers.ts index bcf31dd..caf1700 100644 --- a/lib/stream-transformers.ts +++ b/lib/stream-transformers.ts @@ -2,7 +2,7 @@ import { JSONObject, WatchEvent } from './contract.ts'; function parseJsonLine(line: string, controller: TransformStreamDefaultController) { if (!line.startsWith('{')) { - throw new Error(`JSON line doesn't start with {: `+line.slice(0, 256)); + throw new Error(`JSON line doesn't start with {: ${line.slice(0, 256)}`); } controller.enqueue(JSON.parse(line)); } diff --git a/transports/via-kubeconfig.ts b/transports/via-kubeconfig.ts index 45f37db..ec9d570 100644 --- a/transports/via-kubeconfig.ts +++ b/transports/via-kubeconfig.ts @@ -50,7 +50,7 @@ export class KubeConfigRestClient implements RestClient { await KubeConfig.getInClusterConfig()); } - static async forKubectlProxy(): Promise { + static forKubectlProxy(): Promise { return this.forKubeConfig( KubeConfig.getSimpleUrlConfig({ baseUrl: 'http://localhost:8001', diff --git a/transports/via-kubectl-raw.ts b/transports/via-kubectl-raw.ts index 40876bd..96078f7 100644 --- a/transports/via-kubectl-raw.ts +++ b/transports/via-kubectl-raw.ts @@ -1,4 +1,4 @@ -import { readableStreamFromReader, TextLineStream } from '../deps.ts'; +import { TextLineStream } from '../deps.ts'; import { RestClient, RequestOptions, JSONValue, KubernetesTunnel } from '../lib/contract.ts'; import { JsonParsingTransformer } from '../lib/stream-transformers.ts';