You defined ASCIIi as a possible type here:
|
Encoder.prototype.types = ['PNG', 'EPS', 'SVG', 'ANSI', 'ANSI256', 'ASCII', |
|
'ASCIIi', 'UTF8', 'ANSIUTF8', null]; |
But you are checking the types with toUpperCase() here:
|
if(self.types.indexOf(cmd_options.type.toUpperCase()) === -1){ |
Also this line:
|
throw new Error('type must be one of ', self.types.toString()); |
Should be
throw new Error('type must be one of ' + self.types.join());
You defined ASCIIi as a possible type here:
node-qr/lib/encoder.js
Lines 23 to 24 in fd7f466
But you are checking the types with
toUpperCase()here:node-qr/lib/encoder.js
Line 84 in fd7f466
Also this line:
node-qr/lib/encoder.js
Line 85 in fd7f466
Should be