From 83fe0b828298b9940197ff57850379d0ff0c1e4a Mon Sep 17 00:00:00 2001 From: Opliko Date: Tue, 5 Oct 2021 20:23:20 +0000 Subject: [PATCH] chore: bump std dependencies --- .vscode/settings.json | 4 +++- lib/_wasm/build.ts | 2 +- lib/helpers.ts | 4 ++-- lib/helpers_test.ts | 2 +- lib/scrypt.ts | 4 ++-- lib/scrypt_bench.ts | 2 +- lib/scrypt_test.ts | 2 +- mod_test.ts | 2 +- 8 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index d07f4a7..d2d6827 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,7 @@ "deno.enable": true, "deno.suggest.imports.hosts": { "https://deno.land": false - } + }, + "deno.lint": true, + "deno.unstable": false } \ No newline at end of file diff --git a/lib/_wasm/build.ts b/lib/_wasm/build.ts index c12e1d2..148ff65 100644 --- a/lib/_wasm/build.ts +++ b/lib/_wasm/build.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. // adopted from https://deno.land/std@0.103.0/hash/_wasm/build.ts -import { encode as base64Encode } from "https://deno.land/std@0.103.0/encoding/base64.ts"; +import { encode as base64Encode } from "https://deno.land/std@0.110.0/encoding/base64.ts"; // 1. build wasm async function buildWasm(path: string): Promise { diff --git a/lib/helpers.ts b/lib/helpers.ts index 84826fe..40f118b 100644 --- a/lib/helpers.ts +++ b/lib/helpers.ts @@ -1,11 +1,11 @@ /** * @todo document this module */ -import { Sha256, HmacSha256 } from "https://deno.land/std@0.103.0/hash/sha256.ts"; +import { Sha256, HmacSha256 } from "https://deno.land/std@0.110.0/hash/sha256.ts"; import { encode, decode, -} from "https://deno.land/std@0.103.0/encoding/base64.ts"; +} from "https://deno.land/std@0.110.0/encoding/base64.ts"; // deno-fmt-ignore export type logN = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | diff --git a/lib/helpers_test.ts b/lib/helpers_test.ts index 6c10076..725187f 100644 --- a/lib/helpers_test.ts +++ b/lib/helpers_test.ts @@ -1,6 +1,6 @@ import { assertEquals, -} from "https://deno.land/std@0.103.0/testing/asserts.ts"; +} from "https://deno.land/std@0.110.0/testing/asserts.ts"; import { decomposeFormat } from "./helpers.ts"; diff --git a/lib/scrypt.ts b/lib/scrypt.ts index d2a0d92..30c81c9 100644 --- a/lib/scrypt.ts +++ b/lib/scrypt.ts @@ -1,6 +1,6 @@ import init, { source, scrypt as scryptWASM } from "./_wasm/wasm.js"; -import { encode as base64encode } from "https://deno.land/std@0.103.0/encoding/base64.ts"; -import { encode as hexencode } from "https://deno.land/std@0.103.0/encoding/hex.ts"; +import { encode as base64encode } from "https://deno.land/std@0.110.0/encoding/base64.ts"; +import { encode as hexencode } from "https://deno.land/std@0.110.0/encoding/hex.ts"; const encoder: TextEncoder = new TextEncoder(); const decoder: TextDecoder = new TextDecoder("utf-8"); await init(source); diff --git a/lib/scrypt_bench.ts b/lib/scrypt_bench.ts index 7e03a6d..670f78e 100644 --- a/lib/scrypt_bench.ts +++ b/lib/scrypt_bench.ts @@ -5,7 +5,7 @@ import { runBenchmarks, bench, -} from "https://deno.land/std@0.103.0/testing/bench.ts"; +} from "https://deno.land/std@0.110.0/testing/bench.ts"; import { scrypt } from "./scrypt.ts"; const extremeSalt: string = `IkjpewCbNm4A7cuY1VL9KC3y92blEthtLf9Cet6uEoTxz5cyF660da2zeci42fYwVCVwsKogETMCXupSZZAUh6a80ZnnBTk17B3UTCSVQPpYfL8GktJ2BDokE7ox2hV8OwwUT1hFvCuJqwHZpRvZw1RNCO6HfukPdgMHhq9rWLTXXUNwrIjlmkeydKGFJz2mS1xFcvLQtle4olJVK0SXXXYHAigBfpYxxSC2acvoxuacWcXhzSSRZAMysU2J7zDfXdxnYoqz50rvmvi36g7t2WDSAdzZ44JpxVcc3bYD7xYI3UgfVMPOfeblzwJi455QIurHzDuXEUNS0tZX1kWwZ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PiSw1KUnZj2thKxWtnKcpwzbXdTuuZ9GVhZHIMcOXXrDR0rj539ZLAVyJmqwDOMjTsqPN7BY522PcJHoTElSRNRAsAsFx2m7h9brhcZXOgV1PZohJsdQS7RWhAl9EYBkgF8WCgGw9DXidVduIIHDlEd7mAVJfo9HYX85kFcwrLEpuPiFxfNhubeDpeBu2FAbAo6DNHFlqXUUnyKvMbzptcgisSr2V1pwykB6uLVrwx3AceRnyqg5flldmfsSKw0AFZ4PagGMJuFDMGrV29Vmqhv61SRL9in0ngZx0gJ2vKv26qS3jGN72UUsbkysuGNz6ul0D5jIapvIcCTncIiXSY24pPctxFsawcXvSNw4jEKccsHCTZF0gri6iFS7JqqQd87FNowbrug6sIWSwiWHYGN1VfSwuE5plQHVvNCHNZnMBBIoaMWh45lhtlfCWdUwVpjjK5dAUcOtKftJ2hcl4mIlxs7Fy8ASWhYvWAbpp3fRgmAeTRYAFEwMohN9b03iXyDSNFIeZtQoaL7HYFVWoXV4BfBVlR3CvNIwp6OPBAFFSDlSn9CZU06UziY1tSwqBzkCD`; diff --git a/lib/scrypt_test.ts b/lib/scrypt_test.ts index 55212ff..043ca0c 100644 --- a/lib/scrypt_test.ts +++ b/lib/scrypt_test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std@0.103.0/testing/asserts.ts"; +import { assertEquals } from "https://deno.land/std@0.110.0/testing/asserts.ts"; import { scrypt } from "./scrypt.ts"; Deno.test("scrypt #1", async (): Promise => { diff --git a/mod_test.ts b/mod_test.ts index 1b6d648..3478ef8 100644 --- a/mod_test.ts +++ b/mod_test.ts @@ -1,7 +1,7 @@ import { assertEquals, assert, -} from "https://deno.land/std@0.103.0/testing/asserts.ts "; +} from "https://deno.land/std@0.110.0/testing/asserts.ts "; import { hash, verify } from "./mod.ts"; Deno.test("basic hashing - scrypt format", async (): Promise => {