@amityco/ts-sdk 7.17.1-89d91fc.0 → 7.17.1-e45f121.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ingestInCache.d.ts","sourceRoot":"","sources":["../../../src/cache/api/ingestInCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,cAAc,CAAC;AAK1D;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,aACf,OAAO,MAAM,oBAAoB,EAAE,MAAM,KAAK,EAAE,CAAC,YAChD,MAAM,YAAY,4BAc7B,CAAC"}
1
+ {"version":3,"file":"ingestInCache.d.ts","sourceRoot":"","sources":["../../../src/cache/api/ingestInCache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAe,MAAM,cAAc,CAAC;AAK1D;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,aACf,OAAO,MAAM,oBAAoB,EAAE,MAAM,KAAK,EAAE,CAAC,YAChD,MAAM,YAAY,4BAe7B,CAAC"}
package/dist/index.cjs.js CHANGED
@@ -4879,6 +4879,8 @@ const ingestInCache = (payload = {}, options, replace = true) => {
4879
4879
  const resolver = getResolver(type);
4880
4880
  if (!resolver)
4881
4881
  return;
4882
+ if (!models)
4883
+ return;
4882
4884
  models.forEach(model => {
4883
4885
  (replace ? pushToCache : upsertInCache)([type, 'get', resolver(model)], model, options);
4884
4886
  });
package/dist/index.esm.js CHANGED
@@ -20955,6 +20955,8 @@ const ingestInCache = (payload = {}, options, replace = true) => {
20955
20955
  const resolver = getResolver(type);
20956
20956
  if (!resolver)
20957
20957
  return;
20958
+ if (!models)
20959
+ return;
20958
20960
  models.forEach(model => {
20959
20961
  (replace ? pushToCache : upsertInCache)([type, 'get', resolver(model)], model, options);
20960
20962
  });