From 59dd7b8824eacc4d60de7c25a5764939b2762357 Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Sun, 9 Oct 2022 14:53:44 -0500 Subject: [PATCH] fix/deno ~ specify deno::std deps - best practice and strongly needed b/c Deno does *not* use semantic versioning - avoids Deno warnings - also avoids Deno prompts # refs - [fix(deno): specify deps (avoids Deno warnings)](https://github.com/yargs/yargs-parser/pull/464) - closed for non-participation at 1 yr open - [fix(deno): refactor to avoid prompts during module import](https://github.com/yargs/yargs/pull/2217#issuecomment-1322970494) ## related discussion/issues [refactor ~ implement *no-panic*/*no-prompt* changes](https://github.com/rivy/deno.dxx/commit/a53375dbc359cb86c9a9d40787a37b4d64dac6f6) @@ [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.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deno.ts b/deno.ts index ea42bced..f140bffd 100644 --- a/deno.ts +++ b/deno.ts @@ -2,7 +2,7 @@ // Main entrypoint for Deno. // // TODO: find reasonable replacement for require logic. -import * as path from 'https://deno.land/std/path/mod.ts' +import * as path from 'https://deno.land/std@0.134.0/path/mod.ts' import { camelCase, decamelize, looksLikeNumber } from './build/lib/string-utils.js' import { YargsParser } from './build/lib/yargs-parser.js' import type { Arguments, ArgsInput, Parser, Options, DetailedArguments } from './build/lib/yargs-parser-types.d.ts'