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