aws-sdk-wrap
Advanced tools
Comparing version 13.2.0 to 13.2.1
import get from 'lodash.get'; | ||
import cloneDeep from 'lodash.clonedeep'; | ||
import objectScan from 'object-scan'; | ||
@@ -126,2 +127,3 @@ import getFirst from './get-first.js'; | ||
return (itemOrItems) => { | ||
const result = cloneDeep(itemOrItems); | ||
objectScan(Object.keys(logic), { | ||
@@ -132,8 +134,10 @@ filterFn: ({ | ||
matchedBy.forEach((m) => { | ||
// eslint-disable-next-line no-param-reassign | ||
parent[property] = logic[m][fn](value); | ||
if (value !== null) { | ||
// eslint-disable-next-line no-param-reassign | ||
parent[property] = logic[m][fn](value); | ||
} | ||
}); | ||
} | ||
})(itemOrItems); | ||
return itemOrItems; | ||
})(result); | ||
return result; | ||
}; | ||
@@ -140,0 +144,0 @@ }; |
{ | ||
"name": "aws-sdk-wrap", | ||
"type": "module", | ||
"version": "13.2.0", | ||
"version": "13.2.1", | ||
"description": "Wrapper around aws-sdk", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100077
2469