@aws-amplify/datastore 3.7.4-custom-pk.89 → 3.7.4-custom-pk.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aws-amplify-datastore.js +5 -3
- package/dist/aws-amplify-datastore.js.map +1 -1
- package/dist/aws-amplify-datastore.min.js +1 -1
- package/dist/aws-amplify-datastore.min.js.map +1 -1
- package/lib/util.d.ts +1 -1
- package/lib/util.js +5 -3
- package/lib/util.js.map +1 -1
- package/lib-esm/util.d.ts +1 -1
- package/lib-esm/util.js +5 -3
- package/lib-esm/util.js.map +1 -1
- package/package.json +7 -7
- package/src/util.ts +9 -4
|
@@ -97979,13 +97979,15 @@ var traverseModel = function traverseModel(srcModelName, instance, namespace, mo
|
|
|
97979
97979
|
return result;
|
|
97980
97980
|
};
|
|
97981
97981
|
var getIndex = function getIndex(rel, src) {
|
|
97982
|
-
var
|
|
97982
|
+
var indexName;
|
|
97983
97983
|
rel.some(function (relItem) {
|
|
97984
97984
|
if (relItem.modelName === src) {
|
|
97985
|
-
|
|
97985
|
+
var targetNames = extractTargetNamesFromSrc(relItem);
|
|
97986
|
+
indexName = targetNames && indexNameFromKeys(targetNames);
|
|
97987
|
+
return true;
|
|
97986
97988
|
}
|
|
97987
97989
|
});
|
|
97988
|
-
return
|
|
97990
|
+
return indexName;
|
|
97989
97991
|
};
|
|
97990
97992
|
var getIndexFromAssociation = function getIndexFromAssociation(indexes, src) {
|
|
97991
97993
|
var indexName;
|