mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
👕 Fix lint issue
This commit is contained in:
parent
3db1cdbe84
commit
0272cec01d
|
@ -24,9 +24,10 @@ iconv.encodingExists('utf8');
|
|||
// Create options for bomAware and encoding
|
||||
const bomAware: string[] = [];
|
||||
const encodeDecodeOptions: INodePropertyOptions[] = [];
|
||||
Object.keys((iconv as any).encodings).forEach(encoding => {
|
||||
if (!(encoding.startsWith('_') || typeof (iconv as any).encodings[encoding] == 'string')) { // only encodings without direct alias or internals
|
||||
if ((iconv as any).encodings[encoding].bomAware) {
|
||||
const encodings = (iconv as any).encodings; // tslint:disable-line:no-any
|
||||
Object.keys(encodings).forEach(encoding => {
|
||||
if (!(encoding.startsWith('_') || typeof encodings[encoding] === 'string')) { // only encodings without direct alias or internals
|
||||
if (encodings[encoding].bomAware) {
|
||||
bomAware.push(encoding);
|
||||
}
|
||||
encodeDecodeOptions.push({ name: encoding, value: encoding });
|
||||
|
@ -235,7 +236,7 @@ export class MoveBinaryData implements INodeType {
|
|||
'/mode': [
|
||||
'binaryToJson',
|
||||
],
|
||||
encoding: bomAware
|
||||
encoding: bomAware,
|
||||
},
|
||||
},
|
||||
type: 'boolean',
|
||||
|
@ -249,7 +250,7 @@ export class MoveBinaryData implements INodeType {
|
|||
'/mode': [
|
||||
'jsonToBinary',
|
||||
],
|
||||
encoding: bomAware
|
||||
encoding: bomAware,
|
||||
},
|
||||
},
|
||||
type: 'boolean',
|
||||
|
|
Loading…
Reference in a new issue