Commit Graph

  • 2c1c60e393 Updated examples typescript config Alexander Cerutti 2021-10-20 00:29:02 +02:00
  • 158ee4221a Updated examples Alexander Cerutti 2021-10-20 00:28:49 +02:00
  • 1735a3824a Changed logic for formatVersion parsing and defaulting Alexander Cerutti 2021-10-20 00:08:38 +02:00
  • 757630834d Updated signature content generation method to not use deprecated method createBuffer Alexander Cerutti 2021-10-19 22:37:52 +02:00
  • 91bee95bfe Fixed localization files reading path out issue Alexander Cerutti 2021-10-19 00:18:11 +02:00
  • 3290cb1d3f Added formatVersion to pass.json schemas to keep it Alexander Cerutti 2021-10-18 23:54:48 +02:00
  • 12a6781c14 Fixed Bundle methods calling javascript confusion: Bundle.getAsStream was calling this.getAsBuffer, but this was PKPass instance Alexander Cerutti 2021-10-18 23:54:24 +02:00
  • 0f72b4dda8 Fixed signature creation dumb copy-paste error Alexander Cerutti 2021-10-18 23:19:36 +02:00
  • 95d762f6cc Changed examples commands Alexander Cerutti 2021-10-18 22:20:02 +02:00
  • 2fc0bdffe9 Renamed localize message Alexander Cerutti 2021-10-18 00:50:55 +02:00
  • 07151ec4c8 Added localize with translations to null to delete also files Alexander Cerutti 2021-10-18 00:50:48 +02:00
  • 547045076a Changed .localize method to need mandatory translations to be passed as second parameter Alexander Cerutti 2021-10-18 00:43:53 +02:00
  • be8d524ad3 Added localize calling instead of manually assigning on addBuffer Alexander Cerutti 2021-10-18 00:24:33 +02:00
  • 510fd947a0 Removed from props override validation because it already happens in constructor Alexander Cerutti 2021-10-17 20:06:06 +02:00
  • f17daa0a45 Movd another PKPass.from message to messages Alexander Cerutti 2021-10-17 18:55:44 +02:00
  • 852ea53c77 Updated Readme to newer version Alexander Cerutti 2021-10-17 18:49:56 +02:00
  • 00f05ae5d4 Added PKPasses generation example Alexander Cerutti 2021-10-17 13:54:16 +02:00
  • 031133891d Removed PKPass.pack to be async and moved an error to messages Alexander Cerutti 2021-10-17 13:53:19 +02:00
  • 1f8cce9ef6 Examples: Rolled-back express types to prevent types issues (https://github.com/DefinitelyTyped/DefinitelyTyped/issues/49595) Alexander Cerutti 2021-10-17 13:36:23 +02:00
  • 0a6b3f7528 Added icon reading and setting in scratch example Alexander Cerutti 2021-10-16 23:41:47 +02:00
  • 408416ab9c Added from scratch example Alexander Cerutti 2021-10-16 22:18:29 +02:00
  • eb5ff92f4a Fixed example webserver Alexander Cerutti 2021-10-16 22:16:58 +02:00
  • 2a7770f4af Moved passTypeSymbol to private Alexander Cerutti 2021-10-16 18:50:26 +02:00
  • df683c37a8 Moved bundle.mimeType behind a symbol + getter to prevent changing Alexander Cerutti 2021-10-16 18:05:29 +02:00
  • 868818b855 Removed node-fetch types from examples subrepo Alexander Cerutti 2021-10-16 15:16:48 +02:00
  • eb72eb36b0 Added types to be exported when using package and removed Bundle Alexander Cerutti 2021-10-16 15:15:35 +02:00
  • 875668ea63 Added forgotten as const to messages Alexander Cerutti 2021-10-16 14:02:22 +02:00
  • c432b45b00 Renamed schema files and removed few TODOs Alexander Cerutti 2021-10-16 14:02:03 +02:00
  • c256d1638b Renamed Personalization to Personalize Alexander Cerutti 2021-10-16 13:56:01 +02:00
  • 8924268c23 Updated examples props passing Alexander Cerutti 2021-10-16 12:49:40 +02:00
  • 2a7f5f818c Unified props passing to PKPass.from between template and PKPass Alexander Cerutti 2021-10-16 12:44:01 +02:00
  • 4a02c03c62 Updated examples tsconfig.json Alexander Cerutti 2021-10-16 01:26:51 +02:00
  • 2be4494f67 Added PKPass.from a PKPass example Alexander Cerutti 2021-10-16 01:26:41 +02:00
  • b0dc83e6de Made constructor props optional Alexander Cerutti 2021-10-16 01:25:03 +02:00
  • 639779c663 Renamed example files with the methods names Alexander Cerutti 2021-10-16 01:10:45 +02:00
  • fa4f2df5ce Updated existing examples Alexander Cerutti 2021-10-16 01:06:41 +02:00
  • 7133772945 Removed abstractModel and additionalBuffer Alexander Cerutti 2021-10-16 00:46:19 +02:00
  • 8254aa9bb3 Examples: updated dependencies Alexander Cerutti 2021-10-16 00:45:45 +02:00
  • 74e98c1738 Bundle: added another message to Messages Alexander Cerutti 2021-10-16 00:41:14 +02:00
  • 7714c15949 Merge branch 'v3.0-do-not-zip' into v3.0 Alexander Cerutti 2021-10-16 00:26:05 +02:00
  • 9738f40499 Updated package-lock.json after do-not-zip types publish Alexander Cerutti 2021-10-16 00:13:57 +02:00
  • f6d896fc2b Moved from yazl to do-not-zip Alexander Cerutti 2021-10-15 16:04:39 +02:00
  • d5d5cb78b2 Added bundle to messages Alexander Cerutti 2021-10-15 11:26:32 +02:00
  • 2278308149 Moved freezeRecursive function to utils Alexander Cerutti 2021-10-15 01:11:40 +02:00
  • 907bb07912 Refactored all error messages, throws and tests. Added more throwing points and fixed others Alexander Cerutti 2021-10-15 01:02:17 +02:00
  • 52fafd4405 Changed utils import namespace Alexander Cerutti 2021-10-14 18:22:23 +02:00
  • 7879a32dc1 Renamed parserFile to getModelFolderContents Alexander Cerutti 2021-10-14 18:20:43 +02:00
  • 5ce12fda91 Autoformat Alexander Cerutti 2021-10-14 18:09:21 +02:00
  • 65d3180d4b Added method with tests getAsRaw Alexander Cerutti 2021-10-14 17:59:41 +02:00
  • 55828591ca Refactored Bundle tests to be better contextualized Alexander Cerutti 2021-10-14 17:47:00 +02:00
  • b584269bc0 Added tests for PKPass.pack Alexander Cerutti 2021-10-13 23:14:14 +02:00
  • 62d54ab4d8 Added tests for PKPass.from Alexander Cerutti 2021-10-13 22:49:49 +02:00
  • e408f71069 Fixed PKPass.from errors Alexander Cerutti 2021-10-13 22:48:42 +02:00
  • beef6b73db Removed debug dependency Alexander Cerutti 2021-10-13 21:14:00 +02:00
  • a14344bbb8 Updated minimum Node.js version required Alexander Cerutti 2021-10-13 21:07:47 +02:00
  • cfae9effbd Updated dependencies Alexander Cerutti 2021-10-13 21:04:14 +02:00
  • 5c4c371c3b Added tests for utils Alexander Cerutti 2021-10-13 20:54:16 +02:00
  • d43ff0aca8 Removed isValidRGB function (as unused anymore) Alexander Cerutti 2021-10-13 01:08:38 +02:00
  • a9f5f22389 Added tests for closePassSymbol method Alexander Cerutti 2021-10-13 01:08:20 +02:00
  • ae2100af91 Fixed symbol for personalization deleting Alexander Cerutti 2021-10-13 01:07:06 +02:00
  • 3f4589141b Changed how colors validation happens: now they will make validation throw if they have an incorrect value Alexander Cerutti 2021-10-13 00:43:18 +02:00
  • d4062325ac Fixed icons files matching in closePassSymbol method Alexander Cerutti 2021-10-12 23:50:57 +02:00
  • 6040f84d9e Added test parameter to closePassSymbol method to omit manifest and signature generation Alexander Cerutti 2021-10-12 23:50:34 +02:00
  • 3de32787da Added tests for importMetadataSymbol method Alexander Cerutti 2021-10-12 23:15:03 +02:00
  • 57c6021dca Added tests for type getter and setter Alexander Cerutti 2021-10-12 22:44:20 +02:00
  • 77db921aea Removed debug from FieldsArray Alexander Cerutti 2021-10-12 21:52:11 +02:00
  • 22593ad737 Added tests for fields getters Alexander Cerutti 2021-10-12 21:51:38 +02:00
  • 3f6cc6c803 Renamed setNFCCapability to setNFC Alexander Cerutti 2021-10-11 23:45:20 +02:00
  • 6f3a7d2f6e Added tests for addBuffer and improved handling of empty strings files Alexander Cerutti 2021-10-11 23:43:03 +02:00
  • e69f302cf9 Improved tests and added certificates setter tests Alexander Cerutti 2021-10-11 23:23:25 +02:00
  • 386fdd2e28 Exported all symbols for tests Alexander Cerutti 2021-10-11 23:21:25 +02:00
  • 928081ecfc Fixed tests, added tests, fixed ducked up things Alexander Cerutti 2021-10-11 23:04:09 +02:00
  • cba4d10fd0 Changed imports order and removed old TODO Alexander Cerutti 2021-10-11 21:30:40 +02:00
  • 09debb1e3f Fixed text Alexander Cerutti 2021-10-11 21:25:42 +02:00
  • 18927bd745 Improved utils by removing old imports and fixing comments Alexander Cerutti 2021-10-11 21:25:29 +02:00
  • a3c7851d92 Changed processDate function to throw if it cannot complete conversion Alexander Cerutti 2021-10-11 21:23:30 +02:00
  • a052858950 Moved processDate function to utils Alexander Cerutti 2021-10-10 02:49:17 +02:00
  • 57c3876f96 Deleted file pass.ts Alexander Cerutti 2021-10-10 02:46:23 +02:00
  • 4a6cffcda7 Removed unused things in parser Alexander Cerutti 2021-10-10 02:45:03 +02:00
  • 99d3c1566a Removed old unused utils functions Alexander Cerutti 2021-10-10 02:33:31 +02:00
  • 21e041e9cc Removed useless else Alexander Cerutti 2021-10-10 02:27:25 +02:00
  • ae475b9da2 Removed forgotten return this Alexander Cerutti 2021-10-10 02:24:39 +02:00
  • 4a33ebb335 Removed old todo comments Alexander Cerutti 2021-10-10 02:22:00 +02:00
  • 0ef66238a1 Moved part of meetsPersonalizationRequirements condition Alexander Cerutti 2021-10-10 02:18:29 +02:00
  • 7258a2a7a1 Improved certificates comment Alexander Cerutti 2021-10-10 02:15:46 +02:00
  • a627286e25 Added template validation Alexander Cerutti 2021-10-10 02:11:59 +02:00
  • f50e38ca94 Removed Bundle.autofreezable for Bundle.freezable and made freeze manual when using .pack Alexander Cerutti 2021-10-10 01:35:47 +02:00
  • 6905c27885 Improved methods comments Alexander Cerutti 2021-10-08 23:28:39 +02:00
  • c494ff9012 Merged buffer json reading and validation under the same function. Now it is used for pass.json and personalization.json Alexander Cerutti 2021-10-08 23:27:57 +02:00
  • 968d3a019c Renamed fieldsArray file to FieldsArray Alexander Cerutti 2021-10-08 23:26:56 +02:00
  • 8a3a8f7473 Improved fieldsArray Alexander Cerutti 2021-10-08 22:33:42 +02:00
  • bbecdeed79 Improved schemas validation and added new function assertValidity Alexander Cerutti 2021-10-08 22:33:32 +02:00
  • 3d22cef805 Removed Abstract Model implementation and added PKPass as esport Alexander Cerutti 2021-10-03 22:14:33 +02:00
  • 8bb76d6942 Renamed file from signature.ts to Signature.ts Alexander Cerutti 2021-10-03 22:08:31 +02:00
  • c9fb1e7090 Moved manifest hashes generation to signature file Alexander Cerutti 2021-10-03 22:07:41 +02:00
  • f70257dca6 Splitted strings utils to its own file Alexander Cerutti 2021-10-03 22:03:52 +02:00
  • 40f2b0ea90 Locked certificates under a symbol with a setter to validate them first Alexander Cerutti 2021-10-03 18:20:51 +02:00
  • e0d2db9fc4 Added certificates saving in constructor and parsing them when signature is being created; changed Manifest to be exported as a Buffer Alexander Cerutti 2021-10-03 18:14:10 +02:00
  • cd289ef164 Removed old comments Alexander Cerutti 2021-10-03 17:07:00 +02:00
  • 9b81def335 Improved PKPass.from signature and made additionalProps to be never if source is not a PKPass instance Alexander Cerutti 2021-09-30 23:58:29 +02:00