UNPKG
@qelos/assets
Version:
latest (3.8.0)
3.8.0
3.7.4
3.7.3
manage assets like images and static files on remote servers
@qelos/assets
/
node_modules
/
@smithy
/
config-resolver
/
dist-es
/
regionInfo
/
getResolvedPartition.js
2 lines
(1 loc)
•
169 B
JavaScript
View Raw
1
2
export
const
getResolvedPartition
= (
region, { partitionHash }
) =>
Object
.
keys
(partitionHash || {}).
find
(
(
key
) =>
partitionHash[key].
regions
.
includes
(region)) ??
"aws"
;