diff --git a/packages/cli/bin/old.json b/packages/cli/bin/old.json new file mode 100644 index 0000000000..42e0416825 --- /dev/null +++ b/packages/cli/bin/old.json @@ -0,0 +1 @@ +{"hola":1} \ No newline at end of file diff --git a/packages/nodes-base/nodes/MoveBinaryData.node.ts b/packages/nodes-base/nodes/MoveBinaryData.node.ts index 28a0866942..02b1ff98e8 100644 --- a/packages/nodes-base/nodes/MoveBinaryData.node.ts +++ b/packages/nodes-base/nodes/MoveBinaryData.node.ts @@ -267,7 +267,7 @@ export class MoveBinaryData implements INodeType { } const encoding = (options.encoding as string) || 'utf8'; - let convertedValue = new Buffer(value.data, 'base64').toString(encoding); + let convertedValue = Buffer.from(value.data, 'base64').toString(encoding); if (setAllData === true) { // Set the full data @@ -321,7 +321,7 @@ export class MoveBinaryData implements INodeType { } const convertedValue = { - data: new Buffer(value as string).toString('base64'), + data: Buffer.from(value as string).toString('base64'), mimeType: options.mimeType || 'application/json', }; set(newItem.binary!, destinationKey, convertedValue);