mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Converted all nodejs imports to node: prefix
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
// *************************** //
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ALBEvent, ALBResult } from "aws-lambda";
|
||||
import AWS from "aws-sdk";
|
||||
import { promises as fs } from "fs";
|
||||
import path from "path";
|
||||
import { Buffer } from "buffer";
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { Buffer } from "node:buffer";
|
||||
import config from "../config.json";
|
||||
import { PKPass } from "passkit-generator";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Readable, Stream } from "stream";
|
||||
import { Readable, Stream } from "node:stream";
|
||||
import * as Messages from "./messages";
|
||||
import * as zip from "do-not-zip";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Stream } from "stream";
|
||||
import { Buffer } from "buffer";
|
||||
import path from "path";
|
||||
import { Stream } from "node:stream";
|
||||
import { Buffer } from "node:buffer";
|
||||
import path from "node:path";
|
||||
import FieldsArray from "./FieldsArray";
|
||||
import Bundle, { filesSymbol } from "./Bundle";
|
||||
import getModelFolderContents from "./getModelFolderContents";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import forge from "node-forge";
|
||||
import type * as Schemas from "./schemas";
|
||||
import { Buffer } from "buffer";
|
||||
import { Buffer } from "node:buffer";
|
||||
|
||||
/**
|
||||
* Creates an hash for a buffer. Used by manifest
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EOL } from "os";
|
||||
import { Buffer } from "buffer";
|
||||
import { EOL } from "node:os";
|
||||
import { Buffer } from "node:buffer";
|
||||
|
||||
// ************************************ //
|
||||
// *** UTILS FOR PASS.STRINGS FILES *** //
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as path from "path";
|
||||
import * as path from "node:path";
|
||||
import * as Utils from "./utils";
|
||||
import * as Messages from "./messages";
|
||||
import { promises as fs } from "fs";
|
||||
import type { Buffer } from "buffer";
|
||||
import { promises as fs } from "node:fs";
|
||||
import type { Buffer } from "node:buffer";
|
||||
|
||||
/**
|
||||
* Reads the model folder contents
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Buffer } from "buffer";
|
||||
import { Buffer } from "node:buffer";
|
||||
import Joi from "joi";
|
||||
|
||||
export interface CertificatesSchema {
|
||||
|
||||
@@ -9,7 +9,7 @@ export * from "./Personalize";
|
||||
export * from "./Certificates";
|
||||
|
||||
import Joi from "joi";
|
||||
import { Buffer } from "buffer";
|
||||
import type { Buffer } from "node:buffer";
|
||||
|
||||
import { Barcode } from "./Barcode";
|
||||
import { Location } from "./Location";
|
||||
|
||||
Reference in New Issue
Block a user