Alexander Cerutti
|
5651ce69a5
|
Added constructor check on certificates to avoid an error if a pass is created using PKPass.from, without specifying the certificates
|
2021-11-14 00:47:37 +01:00 |
|
Alexander Cerutti
|
964be0802c
|
Added constructor check for buffers
|
2021-11-14 00:42:14 +01:00 |
|
Alexander Cerutti
|
a0cdc218dd
|
Added languages getter
|
2021-10-31 20:54:31 +01:00 |
|
Alexander Cerutti
|
3c706ddbb6
|
Changed messages format export from default to non-default
|
2021-10-23 19:09:38 +02:00 |
|
Alexander Cerutti
|
03643834f1
|
Removed fieldKeysPoolSymbol based on instance to create one when FieldsArray are created. This also solves a keys reset problem when fields gets created from scratch
|
2021-10-23 18:40:22 +02:00 |
|
Alexander Cerutti
|
bf2f72b14d
|
Removed optional chaining from transitType getter to make it crash if boardingPass does not exist
|
2021-10-23 00:41:22 +02:00 |
|
Alexander Cerutti
|
86d09b9509
|
Added checks in PKPass methods to prevent changing contents if pass is frozen
|
2021-10-23 00:27:27 +02:00 |
|
Alexander Cerutti
|
3b69446873
|
Changed implementation of FieldsArray to accept passInstance instead of pool, to check frozen instance
|
2021-10-22 22:37:51 +02:00 |
|
Alexander Cerutti
|
e0c6d61c30
|
Changed props getter to clone recursively instead of freezing
|
2021-10-20 21:28:01 +02:00 |
|
Alexander Cerutti
|
07151ec4c8
|
Added localize with translations to null to delete also files
|
2021-10-18 00:50:48 +02:00 |
|
Alexander Cerutti
|
547045076a
|
Changed .localize method to need mandatory translations to be passed as second parameter
|
2021-10-18 00:43:53 +02:00 |
|
Alexander Cerutti
|
be8d524ad3
|
Added localize calling instead of manually assigning on addBuffer
|
2021-10-18 00:24:33 +02:00 |
|
Alexander Cerutti
|
510fd947a0
|
Removed from props override validation because it already happens in constructor
|
2021-10-17 20:06:06 +02:00 |
|
Alexander Cerutti
|
f17daa0a45
|
Movd another PKPass.from message to messages
|
2021-10-17 18:55:44 +02:00 |
|
Alexander Cerutti
|
031133891d
|
Removed PKPass.pack to be async and moved an error to messages
|
2021-10-17 13:53:19 +02:00 |
|
Alexander Cerutti
|
2a7770f4af
|
Moved passTypeSymbol to private
|
2021-10-16 18:50:26 +02:00 |
|
Alexander Cerutti
|
c256d1638b
|
Renamed Personalization to Personalize
|
2021-10-16 13:56:01 +02:00 |
|
Alexander Cerutti
|
2a7f5f818c
|
Unified props passing to PKPass.from between template and PKPass
|
2021-10-16 12:44:01 +02:00 |
|
Alexander Cerutti
|
b0dc83e6de
|
Made constructor props optional
|
2021-10-16 01:25:03 +02:00 |
|
Alexander Cerutti
|
f6d896fc2b
|
Moved from yazl to do-not-zip
|
2021-10-15 16:04:39 +02:00 |
|
Alexander Cerutti
|
2278308149
|
Moved freezeRecursive function to utils
|
2021-10-15 01:11:40 +02:00 |
|
Alexander Cerutti
|
907bb07912
|
Refactored all error messages, throws and tests. Added more throwing points and fixed others
|
2021-10-15 01:02:17 +02:00 |
|
Alexander Cerutti
|
52fafd4405
|
Changed utils import namespace
|
2021-10-14 18:22:23 +02:00 |
|
Alexander Cerutti
|
7879a32dc1
|
Renamed parserFile to getModelFolderContents
|
2021-10-14 18:20:43 +02:00 |
|
Alexander Cerutti
|
5ce12fda91
|
Autoformat
|
2021-10-14 18:09:21 +02:00 |
|
Alexander Cerutti
|
65d3180d4b
|
Added method with tests getAsRaw
|
2021-10-14 17:59:41 +02:00 |
|
Alexander Cerutti
|
e408f71069
|
Fixed PKPass.from errors
|
2021-10-13 22:48:42 +02:00 |
|
Alexander Cerutti
|
ae2100af91
|
Fixed symbol for personalization deleting
|
2021-10-13 01:07:06 +02:00 |
|
Alexander Cerutti
|
3f4589141b
|
Changed how colors validation happens: now they will make validation throw if they have an incorrect value
|
2021-10-13 00:43:18 +02:00 |
|
Alexander Cerutti
|
d4062325ac
|
Fixed icons files matching in closePassSymbol method
|
2021-10-12 23:50:57 +02:00 |
|
Alexander Cerutti
|
6040f84d9e
|
Added test parameter to closePassSymbol method to omit manifest and signature generation
|
2021-10-12 23:50:34 +02:00 |
|
Alexander Cerutti
|
3f6cc6c803
|
Renamed setNFCCapability to setNFC
|
2021-10-11 23:45:20 +02:00 |
|
Alexander Cerutti
|
6f3a7d2f6e
|
Added tests for addBuffer and improved handling of empty strings files
|
2021-10-11 23:43:03 +02:00 |
|
Alexander Cerutti
|
386fdd2e28
|
Exported all symbols for tests
|
2021-10-11 23:21:25 +02:00 |
|
Alexander Cerutti
|
cba4d10fd0
|
Changed imports order and removed old TODO
|
2021-10-11 21:30:40 +02:00 |
|
Alexander Cerutti
|
09debb1e3f
|
Fixed text
|
2021-10-11 21:25:42 +02:00 |
|
Alexander Cerutti
|
a3c7851d92
|
Changed processDate function to throw if it cannot complete conversion
|
2021-10-11 21:23:30 +02:00 |
|
Alexander Cerutti
|
a052858950
|
Moved processDate function to utils
|
2021-10-10 02:49:17 +02:00 |
|
Alexander Cerutti
|
21e041e9cc
|
Removed useless else
|
2021-10-10 02:27:25 +02:00 |
|
Alexander Cerutti
|
ae475b9da2
|
Removed forgotten return this
|
2021-10-10 02:24:39 +02:00 |
|
Alexander Cerutti
|
4a33ebb335
|
Removed old todo comments
|
2021-10-10 02:22:00 +02:00 |
|
Alexander Cerutti
|
0ef66238a1
|
Moved part of meetsPersonalizationRequirements condition
|
2021-10-10 02:18:29 +02:00 |
|
Alexander Cerutti
|
7258a2a7a1
|
Improved certificates comment
|
2021-10-10 02:15:46 +02:00 |
|
Alexander Cerutti
|
a627286e25
|
Added template validation
|
2021-10-10 02:11:59 +02:00 |
|
Alexander Cerutti
|
f50e38ca94
|
Removed Bundle.autofreezable for Bundle.freezable and made freeze manual when using .pack
|
2021-10-10 01:35:47 +02:00 |
|
Alexander Cerutti
|
6905c27885
|
Improved methods comments
|
2021-10-08 23:28:39 +02:00 |
|
Alexander Cerutti
|
c494ff9012
|
Merged buffer json reading and validation under the same function. Now it is used for pass.json and personalization.json
|
2021-10-08 23:27:57 +02:00 |
|
Alexander Cerutti
|
968d3a019c
|
Renamed fieldsArray file to FieldsArray
|
2021-10-08 23:26:56 +02:00 |
|
Alexander Cerutti
|
bbecdeed79
|
Improved schemas validation and added new function assertValidity
|
2021-10-08 22:33:32 +02:00 |
|
Alexander Cerutti
|
8bb76d6942
|
Renamed file from signature.ts to Signature.ts
|
2021-10-03 22:08:31 +02:00 |
|