Skip to content

Commit

Permalink
bump std and fix isTTY & actions deprecation warning (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lamando <[email protected]>
  • Loading branch information
greg6775 and danopia authored Sep 10, 2024
1 parent 1596ffa commit 3ec886d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -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/[email protected]/streams/text_line_stream.ts";
export { readableStreamFromReader } from "https://deno.land/[email protected]/streams/readable_stream_from_reader.ts";
export { TextLineStream } from "https://deno.land/[email protected]/streams/text_line_stream.ts";
2 changes: 1 addition & 1 deletion lib/stream-transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { JSONObject, WatchEvent } from './contract.ts';

function parseJsonLine(line: string, controller: TransformStreamDefaultController<JSONObject>) {
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));
}
Expand Down
2 changes: 1 addition & 1 deletion transports/via-kubeconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class KubeConfigRestClient implements RestClient {
await KubeConfig.getInClusterConfig());
}

static async forKubectlProxy(): Promise<RestClient> {
static forKubectlProxy(): Promise<RestClient> {
return this.forKubeConfig(
KubeConfig.getSimpleUrlConfig({
baseUrl: 'http://localhost:8001',
Expand Down
2 changes: 1 addition & 1 deletion transports/via-kubectl-raw.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 3ec886d

Please sign in to comment.