mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor: Add lint rule for unsafe property access with lodash get/set (no-changelog) (#8587)
This commit is contained in:
@@ -139,11 +139,11 @@ export async function awsApiRequestSOAPAllItems(
|
||||
);
|
||||
|
||||
//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))) {
|
||||
@@ -157,8 +157,8 @@ export async function awsApiRequestSOAPAllItems(
|
||||
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