cassproject 1.5.48 → 1.5.49
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/package.json
CHANGED
|
@@ -978,6 +978,7 @@ module.exports = class EcRepository {
|
|
|
978
978
|
* @method precache
|
|
979
979
|
*/
|
|
980
980
|
precache = function (urls, success, failure, eim) {
|
|
981
|
+
let originals = [...urls];
|
|
981
982
|
if (eim === undefined || eim == null)
|
|
982
983
|
eim = EcIdentityManager.default;
|
|
983
984
|
if (urls == null) {
|
|
@@ -1035,7 +1036,7 @@ module.exports = class EcRepository {
|
|
|
1035
1036
|
] = d;
|
|
1036
1037
|
}
|
|
1037
1038
|
}
|
|
1038
|
-
return
|
|
1039
|
+
return originals.map(url=>EcRepository.cache[url]).filter(x=>x);
|
|
1039
1040
|
});
|
|
1040
1041
|
return cassPromisify(p, success, failure);
|
|
1041
1042
|
};
|