Skip to content

Commit

Permalink
chore(upgrade): deno/std v0.93.0 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar authored Apr 14, 2021
1 parent 3aa3fd7 commit 0f9ad63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { blue, bold, red } from "https://deno.land/[email protected]/fmt/colors.ts";
export { deferred } from "https://deno.land/[email protected]/async/deferred.ts";
export type { Deferred } from "https://deno.land/[email protected]/async/deferred.ts";
export { blue, bold, red } from "https://deno.land/[email protected]/fmt/colors.ts";
export { deferred } from "https://deno.land/[email protected]/async/deferred.ts";
export { iter } from "https://deno.land/[email protected]/io/util.ts";
export type { Deferred } from "https://deno.land/[email protected]/async/deferred.ts";
12 changes: 6 additions & 6 deletions dev_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ export {
assertNotEquals,
assertThrows,
assertThrowsAsync,
} from "https://deno.land/std@0.91.0/testing/asserts.ts";
} from "https://deno.land/std@0.93.0/testing/asserts.ts";

export { exists } from "https://deno.land/std@0.91.0/fs/exists.ts";
export { exists } from "https://deno.land/std@0.93.0/fs/exists.ts";

export { ensureDir } from "https://deno.land/std@0.91.0/fs/ensure_dir.ts";
export { ensureDir } from "https://deno.land/std@0.93.0/fs/ensure_dir.ts";

export { dirname, fromFileUrl } from "https://deno.land/std@0.91.0/path/mod.ts";
export { dirname, fromFileUrl } from "https://deno.land/std@0.93.0/path/mod.ts";

export {
MuxAsyncIterator,
} from "https://deno.land/std@0.91.0/async/mux_async_iterator.ts";
} from "https://deno.land/std@0.93.0/async/mux_async_iterator.ts";

export { stripColor } from "https://deno.land/std@0.91.0/fmt/colors.ts";
export { stripColor } from "https://deno.land/std@0.93.0/fmt/colors.ts";
4 changes: 2 additions & 2 deletions encoding_process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import { FFmpegCommand } from "./ffmpeg_command.ts";
import { ffprobe } from "./ffprobe.ts";
import type { MediaInfo, MediaStream, VideoStream } from "./media_info.ts";
import { Deferred, deferred } from "./deps.ts";
import { Deferred, deferred, iter } from "./deps.ts";

export type EncodingStatus = Deno.ProcessStatus;

Expand Down Expand Up @@ -221,7 +221,7 @@ export class EncodingProcess {
) as VideoStream;
const totalFrames = Number(videoStream.nb_frames);

for await (const chunk of Deno.iter(this.process.stdout)) {
for await (const chunk of iter(this.process.stdout)) {
const progressInfo: ProgressInfo = parseProgressOutput(chunk);
const frames = Number(progressInfo.frame);
const progress: number = Math.trunc(100 / (totalFrames / frames));
Expand Down

0 comments on commit 0f9ad63

Please sign in to comment.