Commit Graph

129 Commits

Author SHA1 Message Date
alexandercerutti
b8e6eec016 Now isValid for schema validation, prints the message when debug is on;
Added dependency of debug
2018-08-27 14:10:30 +02:00
alexandercerutti
788245b140 Applied some changes for schema for a more correct validation 2018-08-27 14:00:02 +02:00
alexandercerutti
9e812e9d10 Version 1.2.0 2018-08-27 00:24:54 +02:00
alexandercerutti
5b533c8d00 Moved to index.js getter and setter of transitType; Removed from fields.js the class created specifically 2018-08-27 00:23:58 +02:00
alexandercerutti
3c56659697 Fixed condition for transitType 2018-08-26 12:40:03 +02:00
alexandercerutti
a874171e2c Removed basicStructure and boardingStructure in schema for passDict with common fields and transitType 2018-08-26 12:16:51 +02:00
alexandercerutti
4ea50c5d95 Removed early return in _patch since not needed (this.props is not the only property to be checked in _patch) 2018-08-26 12:15:26 +02:00
alexandercerutti
4e3fa748c1 Added conditional pushing or replacing of fields inside fieldsName, based on this.shouldOverwrite 2018-08-26 12:15:26 +02:00
alexandercerutti
04b5058f3a Added StringField class for transitType field;
Added parsing specific for transit inside _patch method that throws
Renamed fields.area in fieldsName
2018-08-26 12:15:11 +02:00
alexandercerutti
6b4ec893d8 Changed implementation inside __parseSettings for the certificates to throw in case of necessity 2018-08-26 12:02:13 +02:00
alexandercerutti
eeb925b2a5 Improved parsing details in dateToW3CString to accept hours, minutes and seconds and different date formats 2018-08-26 11:59:41 +02:00
alexandercerutti
e7c5a9a3bc Now location accepts also no translations passed to the function to include the languge 2018-08-26 11:58:08 +02:00
alexandercerutti
d240d1a128 Fixed typo for error message 2018-08-26 11:56:46 +02:00
alexandercerutti
9c58529687 Changed return type of dateToW3CString in case of error; Changed the dependend chunk of code 2018-08-23 23:33:00 +02:00
alexandercerutti
09626f9885 Fixed comments 2018-08-23 23:28:39 +02:00
alexandercerutti
137b9ab841 Changed implementation of __parsePEM; Now it does not return anymore an object but the value;
Moved __parsePEM outside of Pass class as parsePEM function;
2018-08-23 22:44:57 +02:00
alexandercerutti
7d9cd5e1af Removed old filter 2018-08-23 20:04:47 +02:00
alexandercerutti
589ed66773 Removed warning messages 2018-08-23 13:47:21 +02:00
alexandercerutti
eeaee7eae8 Changed implementation of __barcodeAutocomplete and __autogenBarcode;
Now the first calls the second to generate all the (missing) structures;
Renamed __autogenBarcode in __barcodeAutogen
Moved __barcodeChooseBackward under __barcodeAutogen
2018-08-23 13:46:24 +02:00
alexandercerutti
5ab3b365dd Fixed comments 2018-08-23 13:41:36 +02:00
alexandercerutti
88464f7764 Removed async dependency 2018-08-22 23:38:11 +02:00
alexandercerutti
2d6c278c93 Changed inner certificates mapping to a clearer implementation 2018-08-22 23:07:18 +02:00
alexandercerutti
bb31ded884 _parseSettings now throws on error;
Removed async.concat for Promise.all implementation;
2018-08-22 23:01:58 +02:00
alexandercerutti
db74f3d407 Removed Promise returning template function to be executed for each buffer for a reduce implementation 2018-08-22 23:01:13 +02:00
alexandercerutti
3eac7a4cb5 Added some comments inside the function; renamed _passExtractor without low dash 2018-08-22 22:35:43 +02:00
alexandercerutti
f1f42c2f69 Reordered methods 2018-08-22 16:53:11 +02:00
alexandercerutti
865930fc3b Added barcode backward support canceling in __barcodeChooseBackward 2018-08-22 14:49:14 +02:00
alexandercerutti
433fd15971 Added more validation checks 2018-08-22 14:24:25 +02:00
alexandercerutti
f0c682abec Changed implementation and parameter of __barcodeChooseBackward to accept a format-like string; renamed retroCompatibility to backward 2018-08-22 13:18:29 +02:00
alexandercerutti
dacfa8d799 Relevance now returns improved this with length property containing the amount of valid results pushed 2018-08-22 01:07:45 +02:00
alexandercerutti
8136921b32 Fixed errors of barcodeDict and beaconDict in schema 2018-08-22 00:56:00 +02:00
alexandercerutti
fdb4cda138 Removed useless returns 2018-08-22 00:54:12 +02:00
alexandercerutti
07861414d5 Added four new methods to manage barcode insertion;
barcode() to set it up;
__autogenBarcode() to generate from a string;
__barcodeChooseBackward() to choose with of barcodes set upon barcode
__barcodeAutocomplete() to fill barcodes with missing types
2018-08-22 00:53:49 +02:00
alexandercerutti
15802d641e Updated _filterOptions keys 2018-08-21 18:10:16 +02:00
alexandercerutti
a5cbe497a2 Added check on parameter in isValidRGB funct 2018-08-21 18:09:02 +02:00
alexandercerutti
656c74b3d9 Added value check for three keys through isValidRGB func 2018-08-21 18:08:29 +02:00
alexandercerutti
583e09fe3a Added isValidRGB function 2018-08-21 14:57:01 +02:00
alexandercerutti
db0ac92f17 Added comment for relevance method 2018-08-21 14:56:20 +02:00
alexandercerutti
86c07da135 Added messages.js to keep error messages and changed errors in index.js 2018-08-21 01:50:06 +02:00
alexandercerutti
45b539573b Added lowercasing on icon check 2018-08-20 23:25:15 +02:00
alexandercerutti
ff33cc9d2e Added shouldOverwrite to Pass class options to overwrite or append to the existing ones, the properties in main buffer 2018-08-20 18:12:06 +02:00
alexandercerutti
f5df49f540 Fixed maxDistance problem 2018-08-20 18:09:01 +02:00
alexandercerutti
8634d540b8 Added relevace() method to set beacons and locations; Added schemas for beaconsDict and locationsDict 2018-08-20 16:41:27 +02:00
alexandercerutti
8cda71309d Added new translations to 'it' in server.js 2018-08-19 16:01:40 +02:00
alexandercerutti
40268709b6 Added features tests to server.js, primary and secondary fields, expiration() and void() method 2018-08-19 16:01:04 +02:00
alexandercerutti
0d4840373d Added new options to forbidden and supported options in _filterOptions 2018-08-19 15:59:24 +02:00
alexandercerutti
599899870b Fixed this.props assignment problem 2018-08-19 15:58:14 +02:00
alexandercerutti
769d75cb88 Added expiration() and void() methods and dateToW3CString() function to convert date in W3C format 2018-08-19 15:57:14 +02:00
alexandercerutti
d97e1c6ab7 Fixed methods descriptors 2018-08-19 15:55:58 +02:00
alexandercerutti
fcb29b3d68 Replaces this.overrides with this.props; all the properties inserted into overrides
now get filtered through _parseSettings and pushed in there;
_patch method now accepts only the pass buffer and not anymore the options;
2018-08-19 14:27:45 +02:00