Apple Wallet Passes generating library for Node.JS
Rebuld using Typescript 3.7 and new optional chaining feature. No functional changes.
Fixed NFC datatype mismatch (#235)
[FEATURE] Added support for sharingProhibited
flag [#148]. Thanks to @krivochenko !
Do not normalize valid URL passed to webServiceURL
as string. Closes #127
Added CRC32 check while unzipping at Template.fromBuffer
Fixes #108
Re-parse dates specified as string to allow invalid dates in resulted pass.json
. See #85
Fixed bug with non-Unicode strings in pass.json
. Thank you @Asp3ctus !
Template.fromBuffer
method that much like Template.load
allows to load everything but from a Buffer with ZIP file content. For example:
const s3 = new AWS.S3({ apiVersion: "2006-03-01", region: "us-west-2" });
const s3file = await s3
.getObject({
Bucket: "bucket",
Key: "pass-template.zip"
})
.promise();
const template = await Template.fromBuffer(s3file.Body);
README
, thank you @nickasdcolor-string
() with color-name
and custom function ()event-iterator
and yauzl
for Template.fromBuffer
implementation