New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

passkit-generator

Package Overview
Dependencies
Maintainers
1
Versions
55
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.0 to 3.1.1

3

lib/getModelFolderContents.js

@@ -38,3 +38,4 @@ "use strict";

}
catch (err) {
catch (_err) {
const err = _err;
if ((err === null || err === void 0 ? void 0 : err.code) === "ENOENT") {

@@ -41,0 +42,0 @@ if (err.syscall === "open") {

@@ -64,5 +64,7 @@ /// <reference types="node" />

* Allows setting a transitType property
* for a boardingPass. Throws an error if
* the current type is not a boardingPass.
* for a boardingPass.
*
* It will (automatically) throw an exception
* if current type is not "boardingPass".
*
* @param value

@@ -73,3 +75,6 @@ */

* Allows getting the current transitType
* from pass props
* from pass props.
*
* It will (automatically) throw an exception
* if current type is not "boardingPass".
*/

@@ -80,5 +85,5 @@ get transitType(): Schemas.TransitType;

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if it has not a valid type.
*/

@@ -89,5 +94,6 @@ get primaryFields(): Schemas.Field[];

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -98,5 +104,6 @@ get secondaryFields(): Schemas.Field[];

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -107,5 +114,6 @@ get auxiliaryFields(): Schemas.Field[];

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -116,5 +124,6 @@ get headerFields(): Schemas.Field[];

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -130,3 +139,3 @@ get backFields(): Schemas.Field[];

*/
set type(type: Schemas.PassTypesProps);
set type(nextType: Schemas.PassTypesProps | undefined);
get type(): Schemas.PassTypesProps | undefined;

@@ -133,0 +142,0 @@ /**

@@ -144,5 +144,7 @@ "use strict";

* Allows setting a transitType property
* for a boardingPass. Throws an error if
* the current type is not a boardingPass.
* for a boardingPass.
*
* It will (automatically) throw an exception
* if current type is not "boardingPass".
*
* @param value

@@ -160,3 +162,6 @@ */

* Allows getting the current transitType
* from pass props
* from pass props.
*
* It will (automatically) throw an exception
* if current type is not "boardingPass".
*/

@@ -169,5 +174,5 @@ get transitType() {

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if it has not a valid type.
*/

@@ -180,5 +185,6 @@ get primaryFields() {

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -191,5 +197,6 @@ get secondaryFields() {

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -202,5 +209,6 @@ get auxiliaryFields() {

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -213,5 +221,6 @@ get headerFields() {

*
* It will (automatically) throw an error if
* no valid pass.json has been parsed yet or,
* anyway, if it has not a valid type.
* It will (automatically) throw an exception
* if no valid pass.json has been parsed yet
* or, anyway, if a valid type has not been
* set yet.
*/

@@ -229,5 +238,7 @@ get backFields() {

*/
set type(type) {
set type(nextType) {
Utils.assertUnfrozen(this);
Schemas.assertValidity(Schemas.PassType, type, Messages.PASS_TYPE.INVALID);
Schemas.assertValidity(Schemas.PassType, nextType, Messages.PASS_TYPE.INVALID);
/** Shut up, typescript strict mode! */
const type = nextType;
if (this.type) {

@@ -372,3 +383,3 @@ /**

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

@@ -375,0 +386,0 @@ this.primaryFields.push(...primaryFields);

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

const section = fileAsString.substring(blockStartPoint, blockEndPoint + 1);
if ((match = section.match(translationRowRegex))) {
if ((match = section.match(translationRowRegex)) && match.groups) {
const { groups: { key, value }, } = match;

@@ -34,0 +34,0 @@ translations.push([key, value]);

@@ -7,3 +7,3 @@ import type Bundle from "./Bundle";

*/
export declare function processDate(date: Date): string | null;
export declare function processDate(date: Date): string | undefined;
/**

@@ -22,3 +22,3 @@ * Removes hidden files from a list (those starting with dot)

*/
export declare function cloneRecursive(object: Object): {};
export declare function cloneRecursive<T extends Object>(object: T): Record<keyof T, any>;
export declare function assertUnfrozen(instance: InstanceType<typeof Bundle>): void;
{
"name": "passkit-generator",
"version": "3.1.0",
"version": "3.1.1",
"description": "The easiest way to generate custom Apple Wallet passes in Node.js",

@@ -34,10 +34,10 @@ "main": "lib/index.js",

"devDependencies": {
"@types/do-not-zip": "^1.0.0",
"@types/jasmine": "^3.10.1",
"@types/node": "^16.11.4",
"@types/node-forge": "^0.10.8",
"@types/do-not-zip": "^1.0.0",
"jasmine": "^3.10.0",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.4"
"typescript": "^4.5.4"
},

@@ -44,0 +44,0 @@ "files": [

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