mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Add lint rule for unsafe property access with lodash get/set (no-changelog) (#8587)
This commit is contained in:
@@ -190,11 +190,11 @@ export async function s3ApiRequestSOAPAllItems(
|
||||
);
|
||||
|
||||
//https://forums.aws.amazon.com/thread.jspa?threadID=55746
|
||||
if (get(responseData, `${propertyName.split('.')[0]}.NextContinuationToken`)) {
|
||||
query['continuation-token'] = get(
|
||||
responseData,
|
||||
`${propertyName.split('.')[0]}.NextContinuationToken`,
|
||||
);
|
||||
if (get(responseData, [propertyName.split('.')[0], 'NextContinuationToken'])) {
|
||||
query['continuation-token'] = get(responseData, [
|
||||
propertyName.split('.')[0],
|
||||
'NextContinuationToken',
|
||||
]);
|
||||
}
|
||||
if (get(responseData, propertyName)) {
|
||||
if (Array.isArray(get(responseData, propertyName))) {
|
||||
@@ -208,8 +208,8 @@ export async function s3ApiRequestSOAPAllItems(
|
||||
return returnData;
|
||||
}
|
||||
} while (
|
||||
get(responseData, `${propertyName.split('.')[0]}.IsTruncated`) !== undefined &&
|
||||
get(responseData, `${propertyName.split('.')[0]}.IsTruncated`) !== 'false'
|
||||
get(responseData, [propertyName.split('.')[0], 'IsTruncated']) !== undefined &&
|
||||
get(responseData, [propertyName.split('.')[0], 'IsTruncated']) !== 'false'
|
||||
);
|
||||
|
||||
return returnData;
|
||||
|
||||
Reference in New Issue
Block a user