Converted all nodejs imports to node: prefix

This commit is contained in:
Alexander Cerutti
2024-10-12 00:23:07 +02:00
parent 2406414e40
commit 474662a1a8
16 changed files with 27 additions and 27 deletions

View File

@@ -7,8 +7,8 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import path from "path";
import { promises as fs } from "fs";
import path from "node:path";
import { promises as fs } from "node:fs";
import { PKPass } from "passkit-generator";
import * as Utils from "passkit-generator/lib/utils";

View File

@@ -31,8 +31,8 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import { promises as fs } from "fs";
import path from "path";
import { promises as fs } from "node:fs";
import path from "node:path";
import { PKPass } from "passkit-generator";
// *************************** //

View File

@@ -11,7 +11,7 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import path from "path";
import path from "node:path";
import { PKPass } from "passkit-generator";
app.route("/fields/:modelName").get(async (request, response) => {

View File

@@ -6,7 +6,7 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import path from "path";
import path from "node:path";
import { PKPass } from "passkit-generator";
app.route("/localize/:modelName").get(async (request, response) => {

View File

@@ -5,8 +5,8 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import path from "path";
import { promises as fs } from "fs";
import path from "node:path";
import { promises as fs } from "node:fs";
import { PKPass } from "passkit-generator";
function getRandomColorPart() {

View File

@@ -11,7 +11,7 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import { PKPass } from "passkit-generator";
import path from "path";
import path from "node:path";
app.route("/barcodes/:modelName").get(async (request, response) => {
const passName =

View File

@@ -9,7 +9,7 @@
import { app } from "./webserver";
import { getCertificates } from "./shared";
import path from "path";
import path from "node:path";
import { PKPass } from "passkit-generator";
app.route("/expirationDate/:modelName").get(async (request, response) => {

View File

@@ -1,5 +1,5 @@
import { promises as fs } from "fs";
import path from "path";
import fs from "node:fs/promises";
import path from "node:path";
interface Cache {
certificates: