Skip to content

Commit

Permalink
Add scheme to node imports
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed Feb 10, 2024
1 parent c3e3c9d commit 10028be
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/deliver/deliver.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import assert from "assert";
import assert from "node:assert";
import createDebug from "debug";
import postgres from "pg";

Expand Down
2 changes: 1 addition & 1 deletion src/front/challengeBoard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import assert from "assert";
import assert from "node:assert";

import q from "../util/q.js";
import { CONFIRMATIONS } from "../util/consts.js";
Expand Down
4 changes: 2 additions & 2 deletions src/front/draw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Router from "@koa/router";
import assert from "assert";
import crypto from "crypto";
import assert from "node:assert";
import crypto from "node:crypto";
import { Context } from "koa";
import { Image, createCanvas, loadImage, registerFont } from "canvas";

Expand Down
2 changes: 1 addition & 1 deletion src/front/game.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Router from "@koa/router";
import assert from "assert";
import assert from "node:assert";
import createDebug from "debug";
import leven from "leven";
import { Context } from "koa";
Expand Down
2 changes: 1 addition & 1 deletion src/front/inbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Router from "@koa/router";
import coBody from "co-body";
import createDebug from "debug";
import createError from "http-errors";
import { EventEmitter } from "events";
import { EventEmitter } from "node:events";

import { AS } from "../util/consts.js";
import { JsonLdService } from "../shared/jsonld.js";
Expand Down
2 changes: 1 addition & 1 deletion src/front/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Koa from "koa";
import Router from "@koa/router";
import { Server } from "http";
import { Server } from "node:http";

import createApp, { AppConfig, BaseApp } from "../shared/createApp.js";
import { DEFAULT_CACHE_SEC } from "../util/consts.js";
Expand Down
2 changes: 1 addition & 1 deletion src/front/outbox.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Router from "@koa/router";
import assert from "assert";
import assert from "node:assert";
import createDebug from "debug";
import { Context } from "koa";
import { v4 as uuid } from "uuid";
Expand Down
2 changes: 1 addition & 1 deletion src/migrate.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// A simple PostgreSQL migration runner.

import dotenv from "dotenv";
import fs from "fs/promises";
import fs from "node:fs/promises";
import pg from "pg";

export type MigrationDirection = "up" | "down";
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dotenv from "dotenv";
import fs from "fs";
import fs from "node:fs";

import deliver from "./deliver/index.js";
import front from "./front/index.js";
Expand Down
2 changes: 1 addition & 1 deletion src/shared/signing.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import createError from "http-errors";
import crypto from "crypto";
import crypto from "node:crypto";
import { Context } from "koa";

import { TripleStore } from "./jsonld.js";
Expand Down
2 changes: 1 addition & 1 deletion src/test-draw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Calls the draw code and writes `test.png`.

import fs from "fs";
import fs from "node:fs";

import draw from "./front/draw.js";

Expand Down
2 changes: 1 addition & 1 deletion src/util/fs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ejs from "ejs";
import fs from "fs/promises";
import fs from "node:fs/promises";

import { ASSETS_BASE } from "./consts.js";

Expand Down
2 changes: 1 addition & 1 deletion src/util/misc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isIPv4 } from "net";
import { isIPv4 } from "node:net";

// Get the arguments array type of a functino.
type ArgumentsOf<T> = T extends (...args: infer A) => any ? A : never;
Expand Down

0 comments on commit 10028be

Please sign in to comment.