@ember-data/store 5.4.0-alpha.72 → 5.4.0-alpha.74
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/-private.js +1 -1
- package/dist/{cache-handler-BCWOzbbB.js → cache-handler-CIdRD6WT.js} +6 -0
- package/dist/{cache-handler-BCWOzbbB.js.map → cache-handler-CIdRD6WT.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +18 -11
- package/unstable-preview-types/-private/cache-handler.d.ts.map +1 -1
package/dist/-private.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ARRAY_SIGNAL, C as CacheHandler, j as CollectionRecordArray, I as LiveArray, M as MUTATE, R as RecordArrayManager, k as SOURCE, S as Store, q as StoreMap, _ as _clearCaches, u as _deprecatingNormalize, g as coerceId, f as constructResource, h as ensureStringId, l as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, m as removeRecordDataFor, t as setCacheFor, o as setRecordIdentifier, s as storeFor } from "./cache-handler-
|
|
1
|
+
export { A as ARRAY_SIGNAL, C as CacheHandler, j as CollectionRecordArray, I as LiveArray, M as MUTATE, R as RecordArrayManager, k as SOURCE, S as Store, q as StoreMap, _ as _clearCaches, u as _deprecatingNormalize, g as coerceId, f as constructResource, h as ensureStringId, l as fastPush, i as isStableIdentifier, n as notifyArray, p as peekCache, r as recordIdentifierFor, m as removeRecordDataFor, t as setCacheFor, o as setRecordIdentifier, s as storeFor } from "./cache-handler-CIdRD6WT.js";
|
|
@@ -6040,7 +6040,13 @@ const CacheHandler = {
|
|
|
6040
6040
|
const promise = fetchContentAndHydrate(next, context, identifier, false, true);
|
|
6041
6041
|
store.requestManager._pending.set(context.id, promise);
|
|
6042
6042
|
}
|
|
6043
|
+
macroCondition(getGlobalConfig().WarpDrive.env.DEBUG) ? (test => {
|
|
6044
|
+
if (!test) {
|
|
6045
|
+
throw new Error(`Expected a peeked request to be present`);
|
|
6046
|
+
}
|
|
6047
|
+
})(peeked) : {};
|
|
6043
6048
|
const shouldHydrate = context.request[EnableHydration] || false;
|
|
6049
|
+
context.setResponse(peeked.response);
|
|
6044
6050
|
if ('error' in peeked) {
|
|
6045
6051
|
const content = shouldHydrate ? maybeUpdateUiObjects(store, context.request, {
|
|
6046
6052
|
shouldHydrate,
|