mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ removed deprecation warning
This commit is contained in:
1
packages/cli/bin/old.json
Normal file
1
packages/cli/bin/old.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"hola":1}
|
||||||
@@ -267,7 +267,7 @@ export class MoveBinaryData implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const encoding = (options.encoding as string) || 'utf8';
|
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) {
|
if (setAllData === true) {
|
||||||
// Set the full data
|
// Set the full data
|
||||||
@@ -321,7 +321,7 @@ export class MoveBinaryData implements INodeType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const convertedValue = {
|
const convertedValue = {
|
||||||
data: new Buffer(value as string).toString('base64'),
|
data: Buffer.from(value as string).toString('base64'),
|
||||||
mimeType: options.mimeType || 'application/json',
|
mimeType: options.mimeType || 'application/json',
|
||||||
};
|
};
|
||||||
set(newItem.binary!, destinationKey, convertedValue);
|
set(newItem.binary!, destinationKey, convertedValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user