Commit Graph

765 Commits

Author SHA1 Message Date
Alexander Cerutti
cfae9effbd Updated dependencies 2021-10-13 21:04:14 +02:00
Alexander Cerutti
5c4c371c3b Added tests for utils 2021-10-13 20:54:16 +02:00
Alexander Cerutti
d43ff0aca8 Removed isValidRGB function (as unused anymore) 2021-10-13 01:08:38 +02:00
Alexander Cerutti
a9f5f22389 Added tests for closePassSymbol method 2021-10-13 01:08:20 +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
3de32787da Added tests for importMetadataSymbol method 2021-10-12 23:15:03 +02:00
Alexander Cerutti
57c6021dca Added tests for type getter and setter 2021-10-12 22:44:20 +02:00
Alexander Cerutti
77db921aea Removed debug from FieldsArray 2021-10-12 21:52:11 +02:00
Alexander Cerutti
22593ad737 Added tests for fields getters 2021-10-12 21:51:38 +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
e69f302cf9 Improved tests and added certificates setter tests 2021-10-11 23:23:25 +02:00
Alexander Cerutti
386fdd2e28 Exported all symbols for tests 2021-10-11 23:21:25 +02:00
Alexander Cerutti
928081ecfc Fixed tests, added tests, fixed ducked up things 2021-10-11 23:04:09 +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
18927bd745 Improved utils by removing old imports and fixing comments 2021-10-11 21:25:29 +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
57c3876f96 Deleted file pass.ts 2021-10-10 02:46:23 +02:00
Alexander Cerutti
4a6cffcda7 Removed unused things in parser 2021-10-10 02:45:03 +02:00
Alexander Cerutti
99d3c1566a Removed old unused utils functions 2021-10-10 02:33:31 +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
8a3a8f7473 Improved fieldsArray 2021-10-08 22:33:42 +02:00
Alexander Cerutti
bbecdeed79 Improved schemas validation and added new function assertValidity 2021-10-08 22:33:32 +02:00
Alexander Cerutti
3d22cef805 Removed Abstract Model implementation and added PKPass as esport 2021-10-03 22:14:33 +02:00
Alexander Cerutti
8bb76d6942 Renamed file from signature.ts to Signature.ts 2021-10-03 22:08:31 +02:00
Alexander Cerutti
c9fb1e7090 Moved manifest hashes generation to signature file 2021-10-03 22:07:41 +02:00
Alexander Cerutti
f70257dca6 Splitted strings utils to its own file 2021-10-03 22:03:52 +02:00
Alexander Cerutti
40f2b0ea90 Locked certificates under a symbol with a setter to validate them first 2021-10-03 18:20:51 +02:00
Alexander Cerutti
e0d2db9fc4 Added certificates saving in constructor and parsing them when signature is being created; changed Manifest to be exported as a Buffer 2021-10-03 18:14:10 +02:00
Alexander Cerutti
cd289ef164 Removed old comments 2021-10-03 17:07:00 +02:00
Alexander Cerutti
9b81def335 Improved PKPass.from signature and made additionalProps to be never if source is not a PKPass instance 2021-09-30 23:58:29 +02:00
Alexander Cerutti
8b6cabfc2c Changed PKPass.prototype.type to be the symbol (forgot to commit) 2021-09-30 23:54:23 +02:00
Alexander Cerutti
37b52d37c9 Improved Template schema and interface; Renamed Template.overrides to Template.props 2021-09-30 23:53:54 +02:00
Alexander Cerutti
64179d1f12 Added forgotten FileBuffers (not commited yet) 2021-09-30 23:53:15 +02:00
Alexander Cerutti
fc957a4a24 Added optional props parameter to PKPass.from and renamed constructor parameter "overrides" to "props"; 2021-09-30 23:52:52 +02:00
Alexander Cerutti
24ff0e47eb Improved comment on PKPass.pack() 2021-09-30 22:58:23 +02:00