feat: use @std from jsr.io

This commit is contained in:
2024-07-19 19:49:22 +02:00
parent 7cfd038851
commit 76dc821438
5 changed files with 36 additions and 5 deletions

View File

@@ -18,8 +18,8 @@
* ``` * ```
*/ */
import { delay } from "@std/async/delay";
import psql, { type Sql } from "postgres"; import psql, { type Sql } from "postgres";
import { delay } from "std/async/delay.ts";
import type { Container } from "../docker/libraries/container.ts"; import type { Container } from "../docker/libraries/container.ts";
import getPort from "../docker/libraries/port.ts"; import getPort from "../docker/libraries/port.ts";

View File

@@ -6,7 +6,9 @@
"./postgres": "./containers/postgres.ts" "./postgres": "./containers/postgres.ts"
}, },
"imports": { "imports": {
"std/": "https://deno.land/std@0.224.0/", "@std/assert": "jsr:@std/assert@^1.0.0",
"@std/async": "jsr:@std/async@1.0.0",
"@std/testing": "jsr:@std/testing@^0.225.3",
"postgres": "npm:postgres@3.4.4" "postgres": "npm:postgres@3.4.4"
}, },
"exclude": [ "exclude": [

29
deno.lock generated
View File

@@ -2,9 +2,35 @@
"version": "3", "version": "3",
"packages": { "packages": {
"specifiers": { "specifiers": {
"jsr:@std/assert@^1.0.0": "jsr:@std/assert@1.0.0",
"jsr:@std/async@1.0.0": "jsr:@std/async@1.0.0",
"jsr:@std/internal@^1.0.1": "jsr:@std/internal@1.0.1",
"jsr:@std/testing@^0.225.3": "jsr:@std/testing@0.225.3",
"npm:@types/node": "npm:@types/node@18.16.19",
"npm:postgres@3.4.4": "npm:postgres@3.4.4" "npm:postgres@3.4.4": "npm:postgres@3.4.4"
}, },
"jsr": {
"@std/assert@1.0.0": {
"integrity": "0e4f6d873f7f35e2a1e6194ceee39686c996b9e5d134948e644d35d4c4df2008",
"dependencies": [
"jsr:@std/internal@^1.0.1"
]
},
"@std/async@1.0.0": {
"integrity": "19891d4540cd3af5efd1d7b1f0e92f6ca365e51edc263fbc077334173878e528"
},
"@std/internal@1.0.1": {
"integrity": "6f8c7544d06a11dd256c8d6ba54b11ed870aac6c5aeafff499892662c57673e6"
},
"@std/testing@0.225.3": {
"integrity": "348c24d0479d44ab3dbb4f26170f242e19f24051b45935d4a9e7ca0ab7e37780"
}
},
"npm": { "npm": {
"@types/node@18.16.19": {
"integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==",
"dependencies": {}
},
"postgres@3.4.4": { "postgres@3.4.4": {
"integrity": "sha512-IbyN+9KslkqcXa8AO9fxpk97PA4pzewvpi2B3Dwy9u4zpV32QicaEdgmF3eSQUzdRk7ttDHQejNgAEr4XoeH4A==", "integrity": "sha512-IbyN+9KslkqcXa8AO9fxpk97PA4pzewvpi2B3Dwy9u4zpV32QicaEdgmF3eSQUzdRk7ttDHQejNgAEr4XoeH4A==",
"dependencies": {} "dependencies": {}
@@ -51,6 +77,9 @@
}, },
"workspace": { "workspace": {
"dependencies": [ "dependencies": [
"jsr:@std/assert@^1.0.0",
"jsr:@std/async@1.0.0",
"jsr:@std/testing@^0.225.3",
"npm:postgres@3.4.4" "npm:postgres@3.4.4"
] ]
} }

View File

@@ -1,4 +1,4 @@
import { delay } from "std/async/delay.ts"; import { delay } from "@std/async/delay";
import { modem } from "./modem.ts"; import { modem } from "./modem.ts";

View File

@@ -1,5 +1,5 @@
import { assertArrayIncludes } from "std/assert/mod.ts"; import { assertArrayIncludes } from "@std/assert";
import { afterAll, describe, it } from "std/testing/bdd.ts"; import { afterAll, describe, it } from "@std/testing/bdd";
import { PostgresTestContainer } from "../containers/postgres.ts"; import { PostgresTestContainer } from "../containers/postgres.ts";