Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

passkit-generator

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passkit-generator - npm Package Compare versions

Comparing version 3.1.8 to 3.1.9

5

lib/PKPass.js

@@ -396,3 +396,3 @@ "use strict";

this.type = type;
const { headerFields = [], primaryFields = [], secondaryFields = [], auxiliaryFields = [], backFields = [], } = data[type] || {};
const { headerFields = [], primaryFields = [], secondaryFields = [], auxiliaryFields = [], backFields = [], transitType, } = data[type] || {};
this.headerFields.push(...headerFields);

@@ -403,2 +403,5 @@ this.primaryFields.push(...primaryFields);

this.backFields.push(...backFields);
if (this.type === "boardingPass") {
this.transitType = transitType;
}
}

@@ -405,0 +408,0 @@ }

12

lib/schemas/Field.d.ts
import Joi from "joi";
import { Semantics } from "./Semantics";
export declare type PKDataDetectorType = "PKDataDetectorTypePhoneNumber" | "PKDataDetectorTypeLink" | "PKDataDetectorTypeAddress" | "PKDataDetectorTypeCalendarEvent";
export declare type PKTextAlignmentType = "PKTextAlignmentLeft" | "PKTextAlignmentCenter" | "PKTextAlignmentRight" | "PKTextAlignmentNatural";
export declare type PKDateStyleType = "PKDateStyleNone" | "PKDateStyleShort" | "PKDateStyleMedium" | "PKDateStyleLong" | "PKDateStyleFull";
export declare type PKNumberStyleType = "PKNumberStyleDecimal" | "PKNumberStylePercent" | "PKNumberStyleScientific" | "PKNumberStyleSpellOut";
/**

@@ -9,9 +13,9 @@ * @see https://developer.apple.com/documentation/walletpasses/passfieldcontent

changeMessage?: string;
dataDetectorTypes?: string[];
dataDetectorTypes?: PKDataDetectorType[];
label?: string;
textAlignment?: string;
textAlignment?: PKTextAlignmentType;
key: string;
value: string | number | Date;
semantics?: Semantics;
dateStyle?: string;
dateStyle?: PKDateStyleType;
ignoresTimeZone?: boolean;

@@ -21,3 +25,3 @@ isRelative?: boolean;

currencyCode?: string;
numberStyle?: string;
numberStyle?: PKNumberStyleType;
}

@@ -24,0 +28,0 @@ export interface FieldWithRow extends Field {

{
"name": "passkit-generator",
"version": "3.1.8",
"version": "3.1.9",
"description": "The easiest way to generate custom Apple Wallet passes in Node.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc