diff --git a/site/scripts/process/output.ts b/site/scripts/process/output.ts index f34dc3b..2394d3a 100644 --- a/site/scripts/process/output.ts +++ b/site/scripts/process/output.ts @@ -1,4 +1,4 @@ -import { run } from "https://deno.land/x/proc@0.21.6/mod.ts"; +import { run } from "https://deno.land/x/proc@0.21.7/mod.ts"; await run("echo", "Hello, world.").forEach((it) => console.dir(it)); diff --git a/src/utility.ts b/src/utility.ts index da9bdd1..d3b68be 100644 --- a/src/utility.ts +++ b/src/utility.ts @@ -159,7 +159,8 @@ export async function sleep(delayms: number): Promise { * @returns `true` if the thing is a string. */ export function isString(s: unknown): s is string { - return Object.prototype.toString.call(s) === "[object String]"; + return typeof s === "string" || s instanceof String || + Object.prototype.toString.call(s) === "[object String]"; } /** diff --git a/version.json b/version.json index 1232eaa..fa621de 100644 --- a/version.json +++ b/version.json @@ -1 +1 @@ -{"version":"0.21.7"} +{"version":"0.21.8"}