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 { app } from "./webserver";
import { getCertificates } from "./shared"; import { getCertificates } from "./shared";
import path from "path"; import path from "node:path";
import { promises as fs } from "fs"; import { promises as fs } from "node:fs";
import { PKPass } from "passkit-generator"; import { PKPass } from "passkit-generator";
import * as Utils from "passkit-generator/lib/utils"; import * as Utils from "passkit-generator/lib/utils";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
import { ALBEvent, ALBResult } from "aws-lambda"; import { ALBEvent, ALBResult } from "aws-lambda";
import AWS from "aws-sdk"; import AWS from "aws-sdk";
import { promises as fs } from "fs"; import fs from "node:fs/promises";
import path from "path"; import path from "node:path";
import { Buffer } from "buffer"; import { Buffer } from "node:buffer";
import config from "../config.json"; import config from "../config.json";
import { PKPass } from "passkit-generator"; import { PKPass } from "passkit-generator";

View File

@@ -1,4 +1,4 @@
import { Readable, Stream } from "stream"; import { Readable, Stream } from "node:stream";
import * as Messages from "./messages"; import * as Messages from "./messages";
import * as zip from "do-not-zip"; import * as zip from "do-not-zip";

View File

@@ -1,6 +1,6 @@
import { Stream } from "stream"; import { Stream } from "node:stream";
import { Buffer } from "buffer"; import { Buffer } from "node:buffer";
import path from "path"; import path from "node:path";
import FieldsArray from "./FieldsArray"; import FieldsArray from "./FieldsArray";
import Bundle, { filesSymbol } from "./Bundle"; import Bundle, { filesSymbol } from "./Bundle";
import getModelFolderContents from "./getModelFolderContents"; import getModelFolderContents from "./getModelFolderContents";

View File

@@ -1,6 +1,6 @@
import forge from "node-forge"; import forge from "node-forge";
import type * as Schemas from "./schemas"; import type * as Schemas from "./schemas";
import { Buffer } from "buffer"; import { Buffer } from "node:buffer";
/** /**
* Creates an hash for a buffer. Used by manifest * Creates an hash for a buffer. Used by manifest

View File

@@ -1,5 +1,5 @@
import { EOL } from "os"; import { EOL } from "node:os";
import { Buffer } from "buffer"; import { Buffer } from "node:buffer";
// ************************************ // // ************************************ //
// *** UTILS FOR PASS.STRINGS FILES *** // // *** UTILS FOR PASS.STRINGS FILES *** //

View File

@@ -1,8 +1,8 @@
import * as path from "path"; import * as path from "node:path";
import * as Utils from "./utils"; import * as Utils from "./utils";
import * as Messages from "./messages"; import * as Messages from "./messages";
import { promises as fs } from "fs"; import { promises as fs } from "node:fs";
import type { Buffer } from "buffer"; import type { Buffer } from "node:buffer";
/** /**
* Reads the model folder contents * Reads the model folder contents

View File

@@ -1,4 +1,4 @@
import { Buffer } from "buffer"; import { Buffer } from "node:buffer";
import Joi from "joi"; import Joi from "joi";
export interface CertificatesSchema { export interface CertificatesSchema {

View File

@@ -9,7 +9,7 @@ export * from "./Personalize";
export * from "./Certificates"; export * from "./Certificates";
import Joi from "joi"; import Joi from "joi";
import { Buffer } from "buffer"; import type { Buffer } from "node:buffer";
import { Barcode } from "./Barcode"; import { Barcode } from "./Barcode";
import { Location } from "./Location"; import { Location } from "./Location";