From: Ardis Lu Date: Wed, 20 Dec 2023 06:05:50 +0000 (-0800) Subject: Add integrity check to dependencies X-Git-Tag: v0.2.0~2 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=2d67c14dd2a440f7ecbda2f228704577b88f6a84;p=random-word-generator Add integrity check to dependencies --- diff --git a/README.md b/README.md index 3039dc5..06f6f61 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A [Deno](https://deno.land/) CLI which returns a string of random words from a given word list. ``` -> deno run --allow-read ./main.ts +> deno run --lock --allow-read ./main.ts > cheeking-signs-riches ``` diff --git a/deno.lock b/deno.lock new file mode 100644 index 0000000..ec9a734 --- /dev/null +++ b/deno.lock @@ -0,0 +1,10 @@ +{ + "version": "3", + "remote": { + "https://deno.land/std@0.209.0/assert/assert.ts": "e265ad50a9341f3b40e51dd4cb41ab253d976943ba78a977106950e52e0302ab", + "https://deno.land/std@0.209.0/assert/assertion_error.ts": "26ed1863d905005f00785c89750c001c3522c5417e4f58f95044b8143cfc1593", + "https://deno.land/std@0.209.0/cli/mod.ts": "b16b72d58df78767cedfff715742b5163652e3a7c6a3274ed7eb02f72a27ba2a", + "https://deno.land/std@0.209.0/cli/parse_args.ts": "9bea02050b3f302e706871ff87ecfa3ad82cc34249adbe0dcddfaac75bdb48ff", + "https://deno.land/std@0.209.0/cli/prompt_secret.ts": "1fb2a981c1061e130475e326b344397448ec5dd5158b31266fd44fa864165de7" + } +} diff --git a/main.ts b/main.ts index e761903..ca2e157 100644 --- a/main.ts +++ b/main.ts @@ -1,4 +1,4 @@ -import { parseArgs } from "https://deno.land/std@0.208.0/cli/mod.ts"; +import { parseArgs } from "https://deno.land/std@0.209.0/cli/mod.ts"; const { words, separator, length } = parseArgs(Deno.args, { default: {