@luvio/environments 0.95.0 → 0.96.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.
|
@@ -585,10 +585,10 @@ function makeDurable(environment, { durableStore, instrumentation }) {
|
|
|
585
585
|
validateNotDisposed();
|
|
586
586
|
return durableTTLStore.getDurableTTLOverrides();
|
|
587
587
|
};
|
|
588
|
-
const applyCachePolicy = function (adapterRequestContext, buildSnapshotContext, buildCachedSnapshot, buildNetworkSnapshot) {
|
|
588
|
+
const applyCachePolicy = function (luvio, adapterRequestContext, buildSnapshotContext, buildCachedSnapshot, buildNetworkSnapshot) {
|
|
589
589
|
validateNotDisposed();
|
|
590
590
|
const wrappedCacheLookup = (buildSnapshotContext, storeLookup) => {
|
|
591
|
-
const snapshot = buildCachedSnapshot(buildSnapshotContext, storeLookup);
|
|
591
|
+
const snapshot = buildCachedSnapshot(buildSnapshotContext, storeLookup, luvio);
|
|
592
592
|
// if the adapter attempted to do an L1 lookup and it was unfulfilled
|
|
593
593
|
// then we can attempt an L2 lookup
|
|
594
594
|
if (isUnfulfilledSnapshot(snapshot)) {
|
|
@@ -598,7 +598,7 @@ function makeDurable(environment, { durableStore, instrumentation }) {
|
|
|
598
598
|
return snapshot;
|
|
599
599
|
};
|
|
600
600
|
const applyCachePolicy = () => {
|
|
601
|
-
return environment.applyCachePolicy(adapterRequestContext, buildSnapshotContext, wrappedCacheLookup, buildNetworkSnapshot);
|
|
601
|
+
return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, wrappedCacheLookup, buildNetworkSnapshot);
|
|
602
602
|
};
|
|
603
603
|
return isRevivingTTLOverrides !== undefined
|
|
604
604
|
? isRevivingTTLOverrides.then(applyCachePolicy)
|
|
@@ -589,10 +589,10 @@
|
|
|
589
589
|
validateNotDisposed();
|
|
590
590
|
return durableTTLStore.getDurableTTLOverrides();
|
|
591
591
|
};
|
|
592
|
-
const applyCachePolicy = function (adapterRequestContext, buildSnapshotContext, buildCachedSnapshot, buildNetworkSnapshot) {
|
|
592
|
+
const applyCachePolicy = function (luvio, adapterRequestContext, buildSnapshotContext, buildCachedSnapshot, buildNetworkSnapshot) {
|
|
593
593
|
validateNotDisposed();
|
|
594
594
|
const wrappedCacheLookup = (buildSnapshotContext, storeLookup) => {
|
|
595
|
-
const snapshot = buildCachedSnapshot(buildSnapshotContext, storeLookup);
|
|
595
|
+
const snapshot = buildCachedSnapshot(buildSnapshotContext, storeLookup, luvio);
|
|
596
596
|
// if the adapter attempted to do an L1 lookup and it was unfulfilled
|
|
597
597
|
// then we can attempt an L2 lookup
|
|
598
598
|
if (isUnfulfilledSnapshot(snapshot)) {
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
return snapshot;
|
|
603
603
|
};
|
|
604
604
|
const applyCachePolicy = () => {
|
|
605
|
-
return environment.applyCachePolicy(adapterRequestContext, buildSnapshotContext, wrappedCacheLookup, buildNetworkSnapshot);
|
|
605
|
+
return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, wrappedCacheLookup, buildNetworkSnapshot);
|
|
606
606
|
};
|
|
607
607
|
return isRevivingTTLOverrides !== undefined
|
|
608
608
|
? isRevivingTTLOverrides.then(applyCachePolicy)
|
|
@@ -631,10 +631,10 @@
|
|
|
631
631
|
validateNotDisposed();
|
|
632
632
|
return durableTTLStore.getDurableTTLOverrides();
|
|
633
633
|
};
|
|
634
|
-
var applyCachePolicy = function (adapterRequestContext, buildSnapshotContext, buildCachedSnapshot, buildNetworkSnapshot) {
|
|
634
|
+
var applyCachePolicy = function (luvio, adapterRequestContext, buildSnapshotContext, buildCachedSnapshot, buildNetworkSnapshot) {
|
|
635
635
|
validateNotDisposed();
|
|
636
636
|
var wrappedCacheLookup = function (buildSnapshotContext, storeLookup) {
|
|
637
|
-
var snapshot = buildCachedSnapshot(buildSnapshotContext, storeLookup);
|
|
637
|
+
var snapshot = buildCachedSnapshot(buildSnapshotContext, storeLookup, luvio);
|
|
638
638
|
// if the adapter attempted to do an L1 lookup and it was unfulfilled
|
|
639
639
|
// then we can attempt an L2 lookup
|
|
640
640
|
if (isUnfulfilledSnapshot(snapshot)) {
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
return snapshot;
|
|
645
645
|
};
|
|
646
646
|
var applyCachePolicy = function () {
|
|
647
|
-
return environment.applyCachePolicy(adapterRequestContext, buildSnapshotContext, wrappedCacheLookup, buildNetworkSnapshot);
|
|
647
|
+
return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, wrappedCacheLookup, buildNetworkSnapshot);
|
|
648
648
|
};
|
|
649
649
|
return isRevivingTTLOverrides !== undefined
|
|
650
650
|
? isRevivingTTLOverrides.then(applyCachePolicy)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/environments",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.96.0",
|
|
4
4
|
"description": "Luvio Environments",
|
|
5
5
|
"main": "dist/umd/es2018/environments.js",
|
|
6
6
|
"module": "dist/es/es2018/environments.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist/"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@luvio/engine": "0.
|
|
30
|
+
"@luvio/engine": "0.96.0"
|
|
31
31
|
},
|
|
32
32
|
"bundlesize": [
|
|
33
33
|
{
|