-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from oliver-oloughlin/patch/update-imports
Patch/update imports
- Loading branch information
Showing
143 changed files
with
649 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,17 @@ | |
".": "./mod.ts", | ||
"./ext/zod": "./ext/zod.ts" | ||
}, | ||
"imports": { | ||
"assert": "jsr:@std/[email protected]/assert", | ||
"assert_equals": "jsr:@std/[email protected]/assert_equals", | ||
"assert_not_equals": "jsr:@std/[email protected]/assert_not_equals", | ||
"assert_throws": "jsr:@std/[email protected]/assert_throws", | ||
"ulid": "jsr:@std/[email protected]", | ||
"concat": "jsr:@std/[email protected]/concat", | ||
"deep_merge": "jsr:@std/[email protected]/deep_merge", | ||
"zlib": "node:zlib", | ||
"zod": "npm:zod@3" | ||
}, | ||
"tasks": { | ||
"check": "deno check mod.ts src/*.ts ext/*.ts tests/*.ts tests/**/*.ts benchmarks/**/*ts", | ||
"test": "deno test --allow-write --allow-read --unstable-kv --trace-ops", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1, mockUserInvalid } from "../mocks.ts" | ||
import { useDb } from "../utils.ts" | ||
|
||
|
@@ -22,6 +22,7 @@ Deno.test("collection - add", async (t) => { | |
assert(cr.ok) | ||
|
||
const doc = await db.z_users.find(cr.id) | ||
|
||
assert(doc !== null) | ||
assert(doc.value.username === mockUser1.username) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { generateInvalidUsers, generateUsers, useDb } from "../utils.ts" | ||
|
||
Deno.test("collection - addMany", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { generateUsers } from "../utils.ts" | ||
import { useDb } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1 } from "../mocks.ts" | ||
import { generateUsers, useDb } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { generateUsers, useDb } from "../utils.ts" | ||
|
||
Deno.test("collection - deleteMany", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { collection, kvdex, KvValue, model, QueueMessage } from "../../mod.ts" | ||
import { createHandlerId } from "../../src/utils.ts" | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { createResolver, useDb, useKv } from "../utils.ts" | ||
|
||
Deno.test("collection - enqueue", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1 } from "../mocks.ts" | ||
import { useDb } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { generateUsers, useDb } from "../utils.ts" | ||
|
||
Deno.test("collection - findMany", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Document } from "../../mod.ts" | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { User } from "../models.ts" | ||
import { generateUsers } from "../utils.ts" | ||
import { useDb } from "../utils.ts" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { generateUsers } from "../utils.ts" | ||
import { useDb } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { sleep, useDb } from "../utils.ts" | ||
import { mockUser1, mockUser2 } from "../mocks.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { collection, kvdex, model } from "../../mod.ts" | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { sleep, useKv } from "../utils.ts" | ||
import { mockUser1, mockUser2, mockUser3 } from "../mocks.ts" | ||
import type { User } from "../models.ts" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import { | |
UNDELIVERED_KEY_PREFIX, | ||
} from "../../src/constants.ts" | ||
import { createHandlerId, extendKey } from "../../src/utils.ts" | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { createResolver, sleep, useKv } from "../utils.ts" | ||
|
||
Deno.test("collection - listenQueue", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { generateUsers } from "../utils.ts" | ||
import { useDb } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { collection, Document, kvdex, model } from "../../mod.ts" | ||
import { ID_KEY_PREFIX, KVDEX_KEY_PREFIX } from "../../src/constants.ts" | ||
import { extendKey, keyEq } from "../../src/utils.ts" | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1 } from "../mocks.ts" | ||
import { User } from "../models.ts" | ||
import { generateUsers, useDb, useKv } from "../utils.ts" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1, mockUser2, mockUserInvalid } from "../mocks.ts" | ||
import { useDb } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { collection, kvdex, model } from "../../mod.ts" | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { useKv } from "../utils.ts" | ||
|
||
Deno.test("collection - types", async (t) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { collection, kvdex, model } from "../../mod.ts" | ||
import { assert, assertEquals } from "../deps.ts" | ||
import { assertEquals } from "assert_equals" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1, mockUser2, mockUserInvalid } from "../mocks.ts" | ||
import { useDb, useKv } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import { collection, kvdex, model } from "../../mod.ts" | ||
import { assert, assertEquals } from "../deps.ts" | ||
import { assertEquals } from "assert_equals" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1, mockUserInvalid } from "../mocks.ts" | ||
import { generateNumbers, generateUsers, useDb, useKv } from "../utils.ts" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { collection, kvdex, model } from "../../mod.ts" | ||
import { assert, assertEquals, assertNotEquals } from "../deps.ts" | ||
import { assertEquals } from "assert_equals" | ||
import { assertNotEquals } from "assert_not_equals" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser3 } from "../mocks.ts" | ||
import { mockUser2 } from "../mocks.ts" | ||
import { mockUser1, mockUserInvalid } from "../mocks.ts" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { assert } from "../deps.ts" | ||
import { assert } from "jsr:@std/[email protected]/assert" | ||
import { mockUser1, mockUser2, mockUser3 } from "../mocks.ts" | ||
import { User } from "../models.ts" | ||
import { useDb } from "../utils.ts" | ||
|
Oops, something went wrong.