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 2.0.1 to 2.0.3

12

CHANGELOG.md

@@ -6,2 +6,13 @@ # Changelog

## 2.0.3 - 06/12/19
Dependencies Updates;
More improvements;
## 2.0.2
Unlocked some other prohibited (until now) fields that were not editable due to design choice ( organizationName, passTypeIdentifier, teamIdentifier, appLaunchURL, associatedStoreIdentifiers);
Small improvements;
___
## 2.0.1

@@ -12,2 +23,3 @@

___
## 2.0.0

@@ -14,0 +26,0 @@

20

package.json
{
"name": "passkit-generator",
"version": "2.0.1",
"version": "2.0.3",
"description": "The easiest way to generate custom Apple Wallet passes in Node.js",

@@ -22,6 +22,6 @@ "main": "index.js",

"dependencies": {
"@hapi/joi": "^15.1.0",
"@hapi/joi": "^16.1.8",
"debug": "^4.1.1",
"moment": "^2.24.0",
"node-forge": "^0.8.5",
"node-forge": "^0.9.1",
"yazl": "^2.5.1"

@@ -33,11 +33,11 @@ },

"devDependencies": {
"@types/debug": "^4.1.4",
"@types/hapi__joi": "^15.0.2",
"@types/jasmine": "^3.3.13",
"@types/node": "^12.0.10",
"@types/node-forge": "^0.8.4",
"@types/yazl": "^2.4.1",
"jasmine": "^3.4.0",
"@types/debug": "^4.1.5",
"@types/hapi__joi": "^16.0.4",
"@types/jasmine": "^3.5.0",
"@types/node": "^12.12.14",
"@types/node-forge": "^0.9.0",
"@types/yazl": "^2.4.2",
"jasmine": "^3.5.0",
"typescript": "^3.7.2"
}
}

@@ -39,4 +39,4 @@ "use strict";

this.passCore = {};
this[_b] = "";
this.l10nTranslations = {};
this[_b] = "";
if (!schema.isValid(options, "instance")) {

@@ -335,3 +335,3 @@ throw new Error(messages_1.default("REQUIR_VALID_FAILED"));

barcode(chosenFormat) {
let { barcodes } = this[passProps];
const { barcodes } = this[passProps];
if (chosenFormat === null) {

@@ -453,3 +453,3 @@ delete this[passProps]["barcode"];

_patch(passCoreBuffer) {
let passFile = JSON.parse(passCoreBuffer.toString());
const passFile = JSON.parse(passCoreBuffer.toString());
if (Object.keys(this[passProps]).length) {

@@ -456,0 +456,0 @@ /*

@@ -28,2 +28,7 @@ "use strict";

description: joi_1.default.string(),
organizationName: joi_1.default.string(),
passTypeIdentifier: joi_1.default.string(),
teamIdentifier: joi_1.default.string(),
appLaunchURL: joi_1.default.string(),
associatedStoreIdentifiers: joi_1.default.array().items(joi_1.default.number()),
userInfo: joi_1.default.alternatives(joi_1.default.object().unknown(), joi_1.default.array()),

@@ -167,3 +172,3 @@ // parsing url as set of words and nums followed by dots, optional port and any possible path after

major: joi_1.default.number().integer().positive().max(65535).greater(joi_1.default.ref("minor")),
minor: joi_1.default.number().integer().min(0).max(65535).less(joi_1.default.ref("major")),
minor: joi_1.default.number().integer().min(0).max(65535),
proximityUUID: joi_1.default.string().required(),

@@ -199,2 +204,3 @@ relevantText: joi_1.default.string()

});
// --------- UTILITIES ---------- //
const schemas = {

@@ -228,3 +234,3 @@ instance,

}
const validation = joi_1.default.validate(opts, resolvedSchema);
const validation = resolvedSchema.validate(opts);
if (validation.error) {

@@ -243,4 +249,8 @@ schemaDebug(`validation failed due to error: ${validation.error.message}`);

function getValidated(opts, schemaName) {
let resolvedSchema = resolveSchemaName(schemaName);
let validation = joi_1.default.validate(opts, resolvedSchema, { stripUnknown: true });
const resolvedSchema = resolveSchemaName(schemaName);
if (!resolvedSchema) {
schemaDebug(`validation failed due to missing or mispelled schema name`);
return null;
}
const validation = resolvedSchema.validate(opts, { stripUnknown: true });
if (validation.error) {

@@ -247,0 +257,0 @@ schemaDebug(`Validation failed in getValidated due to error: ${validation.error.message}`);

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