-
Notifications
You must be signed in to change notification settings - Fork 2
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 #55 from eseiker/housekeeping
Changes: Merged web/deno.json with ~/deno.jsonc (to unify workspaces and entries) Aligned imports
- Loading branch information
Showing
47 changed files
with
251 additions
and
245 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
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,17 +1,15 @@ | ||
import { Status } from "https://deno.land/[email protected]/http/mod.ts"; | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { Status } from "std/http/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { oakCors } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { | ||
Application as OakApplication, | ||
Context, | ||
type Context, | ||
isHttpError, | ||
Router, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
} from "oak"; | ||
|
||
import { oakCors } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
import { Buffer } from "node:buffer"; | ||
|
||
|
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,14 +1,11 @@ | ||
import { parse } from "https://deno.land/[email protected]/flags/mod.ts"; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { parse } from "std/flags/mod.ts"; | ||
import * as path from "std/path/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { broker } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { parseOptions } from "amqp/src/amqp_connect_options.ts"; | ||
|
||
import { parseOptions } from "https://deno.land/x/[email protected]/src/amqp_connect_options.ts"; | ||
import { broker } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
import { api } from "./api.ts"; | ||
import { dataproxy, generateDataproxy } from "./dataproxy.ts"; | ||
|
@@ -29,7 +26,7 @@ import { observer } from "./observer.ts"; | |
import { getSchemaPath, shouldUseDataproxy } from "./prismaSchemaUtils.ts"; | ||
import { | ||
block, | ||
CleanupFunction, | ||
type CleanupFunction, | ||
runWithAmqp, | ||
runWithChainDefinition, | ||
runWithPrisma, | ||
|
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,17 +1,11 @@ | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { exists as fileExists } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import * as path from "std/path/mod.ts"; | ||
import { exists as fileExists } from "std/fs/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { Application as OakApplication, isHttpError, proxy } from "oak"; | ||
|
||
import { getFreePort } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { | ||
Application as OakApplication, | ||
isHttpError, | ||
proxy, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
import { | ||
combinedEnv, | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,31 @@ | |
"prisma": "deno run --allow-read --allow-sys --allow-run --allow-write scripts/prisma-wrapper.ts", | ||
"prisma-generate": "deno run --allow-read --allow-env --allow-sys --allow-run --allow-write scripts/prisma-generate.ts", | ||
"prisma-studio": "deno run --allow-read --allow-env --allow-run scripts/prisma-studio.ts", | ||
"serve": "deno run --allow-read --allow-write --allow-env generate-cert.ts && deno run --allow-read --allow-env --allow-run --allow-sys app.ts" | ||
"serve": "deno run --allow-read --allow-write --allow-env generate-cert.ts && deno run --allow-read --allow-env --allow-run --allow-sys app.ts", | ||
"serve-web": "deno run -A --unsafely-ignore-certificate-errors=localhost --watch=web/static/,web/routes/ web/dev.ts" | ||
}, | ||
"lock": false | ||
"lock": false, | ||
"compilerOptions": { | ||
"jsxImportSource": "preact", | ||
"jsx": "react-jsx" | ||
}, | ||
"imports": { | ||
"~/": "./", | ||
"web/": "./web/", | ||
"std/": "https://deno.land/[email protected]/", | ||
"abitype": "https://esm.sh/v130/[email protected]", | ||
"abitype/": "https://esm.sh/v130/[email protected]/", | ||
"amqp/": "https://deno.land/x/[email protected]/", | ||
"bencodex": "https://deno.land/x/[email protected]/mod.ts", | ||
"oak": "https://deno.land/x/[email protected]/mod.ts", | ||
"fresh/": "https://deno.land/x/[email protected]/", | ||
"fresh-session": "https://deno.land/x/[email protected]/mod.ts", | ||
"preact": "https://esm.sh/v130/[email protected]", | ||
"preact/": "https://esm.sh/v130/[email protected]/", | ||
"preact-render-to-string": "https://esm.sh/v130/*[email protected]", | ||
"@preact/signals": "https://esm.sh/v130/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/v130/*@preact/[email protected]", | ||
"twind": "https://esm.sh/v130/[email protected]", | ||
"twind/": "https://esm.sh/v130/[email protected]/" | ||
} | ||
} |
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,15 +1,12 @@ | ||
import { format as formatDate } from "https://deno.land/[email protected]/datetime/mod.ts"; | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { format as formatDate } from "std/datetime/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { AmqpConnection } from "https://deno.land/x/amqp@v0.23.1/mod.ts"; | ||
import type { AmqpConnection } from "amqp/mod.ts"; | ||
|
||
import { stringify as losslessJsonStringify } from "npm:lossless-json"; | ||
import { | ||
Chain, | ||
type Chain, | ||
createPublicClient, | ||
getAddress, | ||
http as httpViemTransport, | ||
|
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,10 +1,7 @@ | ||
import { exists } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
import * as path from "https://deno.land/[email protected]/path/mod.ts"; | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { exists } from "std/fs/mod.ts"; | ||
import * as path from "std/path/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { generate } from "https://deno.land/x/[email protected]/index.js"; | ||
|
||
|
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,13 +1,7 @@ | ||
import { format as formatDate } from "https://deno.land/[email protected]/datetime/mod.ts"; | ||
import { | ||
LoggerConfig, | ||
LogLevels, | ||
LogRecord, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { | ||
LevelName, | ||
LogLevelNames, | ||
} from "https://deno.land/[email protected]/log/levels.ts"; | ||
import { format as formatDate } from "std/datetime/mod.ts"; | ||
import { type LoggerConfig, LogLevels, type LogRecord } from "std/log/mod.ts"; | ||
import { type LevelName, LogLevelNames } from "std/log/levels.ts"; | ||
|
||
import { combinedEnv, LogLevelEnvKey } from "./envUtils.ts"; | ||
|
||
// outside facing component logger names | ||
|
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,19 +1,16 @@ | ||
import { format as formatDate } from "https://deno.land/[email protected]/datetime/mod.ts"; | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { format as formatDate } from "std/datetime/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { AmqpConnection } from "https://deno.land/x/[email protected]/mod.ts"; | ||
import type { AmqpConnection } from "amqp/mod.ts"; | ||
import type { AbiEvent } from "abitype"; | ||
|
||
import { Buffer } from "node:buffer"; | ||
import { AbiEvent } from "npm:abitype"; | ||
import { | ||
Chain, | ||
type Chain, | ||
createPublicClient, | ||
http as httpViemTransport, | ||
Log as LogGeneric, | ||
type Log as LogGeneric, | ||
toBytes, | ||
toHex, | ||
} from "npm:viem"; | ||
|
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,12 +1,11 @@ | ||
import { | ||
AmqpConnection, | ||
AmqpConnectOptions, | ||
type AmqpConnection, | ||
type AmqpConnectOptions, | ||
connect as connectAmqp, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
} from "amqp/mod.ts"; | ||
import { parseOptions } from "amqp/src/amqp_connect_options.ts"; | ||
|
||
import { parseOptions } from "https://deno.land/x/[email protected]/src/amqp_connect_options.ts"; | ||
|
||
import { Chain } from "npm:viem"; | ||
import type { Chain } from "npm:viem"; | ||
|
||
import type Prisma from "./prisma-shim.ts"; | ||
import { PrismaClient } from "./prisma-shim.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 { Chain } from "npm:viem"; | ||
import type { Chain } from "npm:viem"; | ||
|
||
export default { | ||
id: 5, | ||
|
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,8 @@ | ||
import Account from "https://deno.land/x/[email protected]/packages/web3-eth-accounts/src/index.js"; | ||
|
||
import { | ||
CallExecutionError, | ||
Chain, | ||
type Chain, | ||
createPublicClient, | ||
createWalletClient, | ||
formatEther, | ||
|
@@ -9,8 +11,6 @@ import { | |
} from "npm:viem"; | ||
import { privateKeyToAccount } from "npm:viem/accounts"; | ||
|
||
import Account from "https://deno.land/x/[email protected]/packages/web3-eth-accounts/src/index.js"; | ||
|
||
import { | ||
getRelativeScriptPath, | ||
importESOrJson, | ||
|
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
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,12 +1,7 @@ | ||
import { ConsoleHandler } from "https://deno.land/[email protected]/log/handlers.ts"; | ||
import { | ||
getLogger, | ||
setup as setupLog, | ||
} from "https://deno.land/[email protected]/log/mod.ts"; | ||
import { ConsoleHandler } from "std/log/handlers.ts"; | ||
import { getLogger, setup as setupLog } from "std/log/mod.ts"; | ||
|
||
import { | ||
Application as OakApplication, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
import { Application as OakApplication } from "oak"; | ||
|
||
import { parse } from "npm:lossless-json"; | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { | ||
type ArgonOptions, | ||
ArgonWorker, | ||
} from "https://deno.land/x/[email protected]/src/async.ts"; | ||
import { | ||
decode as decodeBase64, | ||
encode as encodeBase64, | ||
} from "std/encoding/base64.ts"; | ||
|
||
import { | ||
type ArgonOptions, | ||
ArgonWorker, | ||
} from "https://deno.land/x/[email protected]/src/async.ts"; | ||
|
||
const worker = new ArgonWorker(); | ||
const encoder = new TextEncoder(); | ||
|
||
|
Oops, something went wrong.