From cedd42d1f0ee9f96be2eba07a39a13d81ea3be5b Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 9 Oct 2022 14:37:13 -0500 Subject: [PATCH] fix(deno): specify deno::std import versions - specify import versions per best practice and to avoid Deno warnings - pin to std@0.134.0 to avoid Deno prompts # refs - ref: [fix(deno): specify import versions (avoids Deno warnings)](https://github.com/lukeed/escalade/pull/8) - closed as dead after being ghosted by @lukeed - ref: [fix(deno): refactor to avoid prompts during module import](https://github.com/yargs/yargs/pull/2217) ## related discussion/issues [fix(node): Make global.ts evaluate synchronously](denoland/deno_std#2098) [Execution order of imports in deno is unclear/unexpected](denoland/deno#14243) [std/node should avoid TLA](denoland/deno_std#2097) [HowTO test that a module is *no-panic* and *no-prompt* when statically imported?](denoland/deno/issues/#15356) [Discussion ~ Bring back permission prompt behind a flag](denoland/deno/issues/#3811) [Security prompt by default (instead of throw)](denoland/deno/issues/#10183) [Seeking a better UX for permissions](denoland/deno/issues/#11061) [Design Meeting 2021-07-29 ~ `Prompt by default`](denoland/deno/issues/#11767) [permission prompt problems](denoland/deno/issues/#11936) [`deno repl` has permissions by default?](denoland/deno/issues/#12665) [Bad UX with prompt by default](denoland/deno/issues/#13730) [DENO_NO_PROMPT env var support](denoland/deno/issues/#14208) [feat: Add DENO_NO_PROMPT variable](denoland/deno/issues/#14209) --- deno/async.ts | 2 +- deno/sync.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno/async.ts b/deno/async.ts index 78046cb..b619580 100644 --- a/deno/async.ts +++ b/deno/async.ts @@ -1,4 +1,4 @@ -import { dirname, resolve } from 'https://deno.land/std/path/mod.ts' +import { dirname, resolve } from 'https://deno.land/std@0.134.0/path/mod.ts' type Promisable = T | Promise; export type Callback = (directory: string, files: string[]) => Promisable diff --git a/deno/sync.ts b/deno/sync.ts index 4e1190b..646bd7e 100644 --- a/deno/sync.ts +++ b/deno/sync.ts @@ -1,4 +1,4 @@ -import { dirname, resolve } from 'https://deno.land/std/path/mod.ts' +import { dirname, resolve } from 'https://deno.land/std@0.134.0/path/mod.ts' export type Callback = (directory: string, files: string[]) => string | false | void;