mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 10:25:16 +00:00
Updated imports to have extensions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Readable, Stream } from "node:stream";
|
||||
import * as Messages from "./messages";
|
||||
import { toArray as zipToArray } from "do-not-zip";
|
||||
import { Buffer } from "node:buffer";
|
||||
import { toArray as zipToArray } from "do-not-zip";
|
||||
import * as Messages from "./messages.js";
|
||||
|
||||
export const filesSymbol = Symbol("bundleFiles");
|
||||
export const freezeSymbol = Symbol("bundleFreeze");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type PKPass from "./PKPass";
|
||||
import * as Schemas from "./schemas";
|
||||
import * as Utils from "./utils";
|
||||
import * as Messages from "./messages";
|
||||
import type PKPass from "./PKPass.js";
|
||||
import * as Schemas from "./schemas/index.js";
|
||||
import * as Utils from "./utils.js";
|
||||
import * as Messages from "./messages.js";
|
||||
|
||||
/**
|
||||
* Class to represent lower-level keys pass fields
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
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";
|
||||
import * as Schemas from "./schemas";
|
||||
import * as Signature from "./Signature";
|
||||
import * as Strings from "./StringsUtils";
|
||||
import * as Utils from "./utils";
|
||||
import * as Messages from "./messages";
|
||||
import FieldsArray from "./FieldsArray.js";
|
||||
import Bundle, { filesSymbol } from "./Bundle.js";
|
||||
import getModelFolderContents from "./getModelFolderContents.js";
|
||||
import * as Schemas from "./schemas/index.js";
|
||||
import * as Signature from "./Signature.js";
|
||||
import * as Strings from "./StringsUtils.js";
|
||||
import * as Utils from "./utils.js";
|
||||
import * as Messages from "./messages.js";
|
||||
|
||||
const propsSymbol = Symbol("props");
|
||||
const localizationSymbol = Symbol("pass.l10n");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import forge from "node-forge";
|
||||
import type * as Schemas from "./schemas";
|
||||
import type * as Schemas from "./schemas/index.js";
|
||||
import { Buffer } from "node:buffer";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as path from "node:path";
|
||||
import * as Utils from "./utils";
|
||||
import * as Messages from "./messages";
|
||||
import { promises as fs } from "node:fs";
|
||||
import type { Buffer } from "node:buffer";
|
||||
import * as Utils from "./utils.js";
|
||||
import * as Messages from "./messages.js";
|
||||
|
||||
/**
|
||||
* Reads the model folder contents
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export { default as PKPass } from "./PKPass";
|
||||
export { default as PKPass } from "./PKPass.js";
|
||||
|
||||
// ***************************************** //
|
||||
// *** Exporting only schemas interfaces *** //
|
||||
@@ -15,4 +15,4 @@ export type {
|
||||
TransitType,
|
||||
Personalize,
|
||||
OverridablePassProps,
|
||||
} from "./schemas";
|
||||
} from "./schemas/index.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Joi from "joi";
|
||||
import { Semantics } from "./Semantics";
|
||||
import { Semantics } from "./Semantics.js";
|
||||
|
||||
export type PKDataDetectorType =
|
||||
| "PKDataDetectorTypePhoneNumber"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Joi from "joi";
|
||||
import { Field, FieldWithRow } from "./Field";
|
||||
import { Field, FieldWithRow } from "./Field.js";
|
||||
|
||||
export type TransitType =
|
||||
| "PKTransitTypeAir"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Joi from "joi";
|
||||
import { RGB_HEX_COLOR_REGEX } from "./regexps";
|
||||
import { RGB_HEX_COLOR_REGEX } from "./regexps.js";
|
||||
|
||||
/**
|
||||
* These couple of structures are organized alphabetically,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Joi from "joi";
|
||||
import * as SemanticTagType from "./SemanticTagType";
|
||||
import * as SemanticTagType from "./SemanticTagType.js";
|
||||
|
||||
/**
|
||||
* For a better description of every single field,
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
export * from "./Barcode";
|
||||
export * from "./Beacon";
|
||||
export * from "./Location";
|
||||
export * from "./Field";
|
||||
export * from "./NFC";
|
||||
export * from "./Semantics";
|
||||
export * from "./PassFields";
|
||||
export * from "./Personalize";
|
||||
export * from "./Certificates";
|
||||
export * from "./Barcode.js";
|
||||
export * from "./Beacon.js";
|
||||
export * from "./Location.js";
|
||||
export * from "./Field.js";
|
||||
export * from "./NFC.js";
|
||||
export * from "./Semantics.js";
|
||||
export * from "./PassFields.js";
|
||||
export * from "./Personalize.js";
|
||||
export * from "./Certificates.js";
|
||||
|
||||
import Joi from "joi";
|
||||
import type { Buffer } from "node:buffer";
|
||||
|
||||
import { Barcode } from "./Barcode";
|
||||
import { Location } from "./Location";
|
||||
import { Beacon } from "./Beacon";
|
||||
import { NFC } from "./NFC";
|
||||
import { PassFields, TransitType } from "./PassFields";
|
||||
import { Semantics } from "./Semantics";
|
||||
import { CertificatesSchema } from "./Certificates";
|
||||
import { Barcode } from "./Barcode.js";
|
||||
import { Location } from "./Location.js";
|
||||
import { Beacon } from "./Beacon.js";
|
||||
import { NFC } from "./NFC.js";
|
||||
import { PassFields, TransitType } from "./PassFields.js";
|
||||
import { Semantics } from "./Semantics.js";
|
||||
import { CertificatesSchema } from "./Certificates.js";
|
||||
|
||||
import * as Messages from "../messages";
|
||||
import { RGB_HEX_COLOR_REGEX, URL_REGEX } from "./regexps";
|
||||
import * as Messages from "../messages.js";
|
||||
import { RGB_HEX_COLOR_REGEX, URL_REGEX } from "./regexps.js";
|
||||
|
||||
export type PreferredStyleSchemes = ("posterEventTicket" | "eventTicket")[];
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as Messages from "./messages";
|
||||
import type Bundle from "./Bundle";
|
||||
import * as Messages from "./messages.js";
|
||||
import type Bundle from "./Bundle.js";
|
||||
|
||||
/**
|
||||
* Converts a date to W3C / UTC string
|
||||
|
||||
Reference in New Issue
Block a user