@kontsedal/olas-core 0.0.3 → 0.0.4
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/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{root-Cnkb3I--.mjs → root-BBSlzvJ2.mjs} +4 -1
- package/dist/{root-Cnkb3I--.mjs.map → root-BBSlzvJ2.mjs.map} +1 -1
- package/dist/{root-D_xAdcom.cjs → root-CoafhkTg.cjs} +4 -1
- package/dist/{root-D_xAdcom.cjs.map → root-CoafhkTg.cjs.map} +1 -1
- package/dist/testing.cjs +22 -11
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +2 -1
- package/dist/testing.d.cts.map +1 -1
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.mts.map +1 -1
- package/dist/testing.mjs +22 -11
- package/dist/testing.mjs.map +1 -1
- package/dist/{types-CRn4UoLn.d.mts → types-BCf2nB2N.d.mts} +11 -4
- package/dist/types-BCf2nB2N.d.mts.map +1 -0
- package/dist/{types-r_TVaRkD.d.cts → types-Ijeun3qo.d.cts} +11 -4
- package/dist/types-Ijeun3qo.d.cts.map +1 -0
- package/package.json +1 -1
- package/src/controller/types.ts +13 -9
- package/src/query/local.ts +1 -0
- package/src/query/types.ts +7 -0
- package/src/query/use.ts +6 -0
- package/src/testing.ts +3 -0
- package/dist/types-CRn4UoLn.d.mts.map +0 -1
- package/dist/types-r_TVaRkD.d.cts.map +0 -1
|
@@ -2761,6 +2761,7 @@ var LocalCacheImpl = class {
|
|
|
2761
2761
|
refetch = () => this.entry.refetch();
|
|
2762
2762
|
reset = () => this.entry.reset();
|
|
2763
2763
|
firstValue = () => this.entry.firstValue();
|
|
2764
|
+
promise = () => this.entry.firstValue();
|
|
2764
2765
|
invalidate = () => {
|
|
2765
2766
|
this.entry.invalidate().catch(() => {});
|
|
2766
2767
|
};
|
|
@@ -3056,6 +3057,7 @@ var SubscriptionImpl = class {
|
|
|
3056
3057
|
if (!cur) return Promise.reject(/* @__PURE__ */ new Error("[olas] no active subscription"));
|
|
3057
3058
|
return cur.entry.firstValue().then((v) => this.project(v));
|
|
3058
3059
|
};
|
|
3060
|
+
promise = () => this.firstValue();
|
|
3059
3061
|
project(v) {
|
|
3060
3062
|
return this.select === void 0 ? v : this.select(v);
|
|
3061
3063
|
}
|
|
@@ -3215,6 +3217,7 @@ var InfiniteSubscriptionImpl = class {
|
|
|
3215
3217
|
if (!cur) return Promise.reject(/* @__PURE__ */ new Error("[olas] no active subscription"));
|
|
3216
3218
|
return cur.entry.firstValue();
|
|
3217
3219
|
};
|
|
3220
|
+
promise = () => this.firstValue();
|
|
3218
3221
|
fetchNextPage = () => {
|
|
3219
3222
|
const cur = this.current$.peek();
|
|
3220
3223
|
if (!cur) return Promise.resolve();
|
|
@@ -4181,4 +4184,4 @@ Object.defineProperty(exports, "untracked", {
|
|
|
4181
4184
|
}
|
|
4182
4185
|
});
|
|
4183
4186
|
|
|
4184
|
-
//# sourceMappingURL=root-
|
|
4187
|
+
//# sourceMappingURL=root-CoafhkTg.cjs.map
|