Showing the changes to apps/server/src/cloud (2 of 71 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | // @effect-diagnostics nodeBuiltinImport:off - The CLI loopback OAuth callback is a Node HTTP boundary. |
| 2 | −import { createServer } from "node:http"; | |
| 2 | +import * as NodeHttp from "node:http"; | |
| 3 | 3 | |
| 4 | 4 | import * as NodeHttpServer from "@effect/platform-node/NodeHttpServer"; |
| 5 | 5 | import * as Clock from "effect/Clock"; |
| @@ -206,7 +206,7 @@ export const make = Effect.gen(function* () { · 200 unmodified lines | ||
| 206 | 206 | disableLogger: true, |
| 207 | 207 | }).pipe( |
| 208 | 208 | Layer.provide( |
| 209 | − NodeHttpServer.layer(createServer, { | |
| 209 | + NodeHttpServer.layer(NodeHttp.createServer, { | |
| 210 | 210 | host: "127.0.0.1", |
| 211 | 211 | port: 34338, |
| 212 | 212 | disablePreemptiveShutdown: true, |
| @@ -1,4 +1,4 @@ | ||
| 1 | −import { createPublicKey } from "node:crypto"; | |
| 1 | +import * as NodeCrypto from "node:crypto"; | |
| 2 | 2 | import { |
| 3 | 3 | AuthRelayReadScope, |
| 4 | 4 | AuthRelayWriteScope, |
| @@ -152,7 +152,7 @@ function validateCloudMintPublicKey( · 147 unmodified lines | ||
| 152 | 152 | publicKey: string, |
| 153 | 153 | ): Effect.Effect<void, EnvironmentHttpBadRequestError> { |
| 154 | 154 | return Effect.try({ |
| 155 | − try: () => createPublicKey(publicKey.replace(/\\n/g, "\n")), | |
| 155 | + try: () => NodeCrypto.createPublicKey(publicKey.replace(/\\n/g, "\n")), | |
| 156 | 156 | catch: () => |
| 157 | 157 | new EnvironmentHttpBadRequestError({ |
| 158 | 158 | message: "Cloud mint public key must be a valid Ed25519 public key.", |