Skip to content

Commit

Permalink
🔀 Merge pull request #158 from RicardoE105/fix/removed-deprecation-wa…
Browse files Browse the repository at this point in the history
…rning

Fix/removed deprecation warning
  • Loading branch information
janober committed Dec 19, 2019
2 parents 108ffb0 + a8a2103 commit 99c1324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/MoveBinaryData.node.ts
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 99c1324

Please sign in to comment.