From 5c61d33e9af8a6caa06cc15ad7210053ce078aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kl=C3=ADma?= Date: Mon, 4 Dec 2023 15:34:50 +0100 Subject: [PATCH] Updated dependencies --- _npm.ts | 16 ++++++++-------- deps.ts | 4 ++-- src/document.ts | 2 +- tests/test_deps.ts | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/_npm.ts b/_npm.ts index 1899a6f..2694b80 100644 --- a/_npm.ts +++ b/_npm.ts @@ -1,7 +1,7 @@ /** * This script builds the NPM package from Deno source */ -import { build, emptyDir } from "https://deno.land/x/dnt@0.35.0/mod.ts"; +import { build, emptyDir } from "https://deno.land/x/dnt@0.39.0/mod.ts"; await emptyDir("./npm"); @@ -27,13 +27,13 @@ await build({ }, bugs: { url: "https://github.com/karelklima/workflowy/issues", - }, - mappings: { - "https://deno.land/x/zod@v3.21.4/mod.ts": { - package: "zod", - version: "^3.21.4", - }, - }, + } + }, + mappings: { + "https://deno.land/x/zod@v3.22.4/mod.ts": { + name: "zod", + version: "^3.22.4", + } }, postBuild() { // steps to run after building and before running the tests diff --git a/deps.ts b/deps.ts index 4a5026f..21ffd7f 100644 --- a/deps.ts +++ b/deps.ts @@ -1,6 +1,6 @@ export { getSetCookies, setCookie, -} from "https://deno.land/std@0.184.0/http/cookie.ts"; +} from "https://deno.land/std@0.208.0/http/cookie.ts"; -export { z } from "https://deno.land/x/zod@v3.21.4/mod.ts"; +export { z } from "https://deno.land/x/zod@v3.22.4/mod.ts"; diff --git a/src/document.ts b/src/document.ts index e271611..d1397dc 100644 --- a/src/document.ts +++ b/src/document.ts @@ -415,7 +415,7 @@ export class List { * * @returns list in OPML format */ - public toOpml(top: boolean = true): string { + public toOpml(top = true): string { const escapeQuotes = (text: string) => text.replace(/"/g, '"'); const content = `${this.items.map((list) => list.toOpml(false)).join('')}`; return top diff --git a/tests/test_deps.ts b/tests/test_deps.ts index 2853f30..4e8df62 100644 --- a/tests/test_deps.ts +++ b/tests/test_deps.ts @@ -1,4 +1,4 @@ export { assertEquals, assertObjectMatch, -} from "https://deno.land/std@0.184.0/testing/asserts.ts"; +} from "https://deno.land/std@0.208.0/assert/mod.ts";