@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
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_root = require("./root-
|
|
2
|
+
const require_root = require("./root-CoafhkTg.cjs");
|
|
3
3
|
//#region src/signals/readonly.ts
|
|
4
4
|
/**
|
|
5
5
|
* Project a Signal (or any object with a reactive `value` + `peek` + `subscribe`)
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as FormErrors, A as DebugEvent, B as QuerySpec, C as SetDataEvent, D as MutationSpec, E as MutationConcurrency, F as AsyncStatus, G as UseOptions, H as RetryDelay, I as DehydratedEntry, J as FieldArrayItemErrors, K as DeepPartial, L as DehydratedState, M as InfiniteQuerySpec, N as InfiniteQuerySubscription, O as DebugBus, P as AsyncState, Q as Form, R as LocalCache, S as RegisteredQuery, T as Mutation, U as RetryPolicy, V as QuerySubscription, W as Snapshot, X as FieldArrayValidator, Y as FieldArrayOptions, Z as FieldArrayValue, _ as defineScope, a as CollectionFactoryResult, at as Validator, b as QueryClientPlugin, c as CtrlApi, ct as Signal, d as Field, dt as EmitterErrorReporter, et as FormOptions, f as LazyChild, ft as createEmitter, g as ScopeOptions, h as Scope, i as CollectionFactoryOptions, it as ItemInitial, j as InfiniteQuery, k as DebugCacheEntry, l as CtrlProps, lt as ErrorContext, m as RootOptions, n as Collection, nt as FormValidator, o as CollectionHomogeneousOptions, ot as Computed, p as Root, q as FieldArray, r as CollectionFactoryApi, rt as FormValue, s as ControllerDef, st as ReadSignal, t as AmbientDeps, tt as FormSchema, u as Ctx, ut as Emitter, v as GcEvent, w as lookupRegisteredQuery, x as QueryClientPluginApi, y as InvalidateEvent, z as Query } from "./types-
|
|
1
|
+
import { $ as FormErrors, A as DebugEvent, B as QuerySpec, C as SetDataEvent, D as MutationSpec, E as MutationConcurrency, F as AsyncStatus, G as UseOptions, H as RetryDelay, I as DehydratedEntry, J as FieldArrayItemErrors, K as DeepPartial, L as DehydratedState, M as InfiniteQuerySpec, N as InfiniteQuerySubscription, O as DebugBus, P as AsyncState, Q as Form, R as LocalCache, S as RegisteredQuery, T as Mutation, U as RetryPolicy, V as QuerySubscription, W as Snapshot, X as FieldArrayValidator, Y as FieldArrayOptions, Z as FieldArrayValue, _ as defineScope, a as CollectionFactoryResult, at as Validator, b as QueryClientPlugin, c as CtrlApi, ct as Signal, d as Field, dt as EmitterErrorReporter, et as FormOptions, f as LazyChild, ft as createEmitter, g as ScopeOptions, h as Scope, i as CollectionFactoryOptions, it as ItemInitial, j as InfiniteQuery, k as DebugCacheEntry, l as CtrlProps, lt as ErrorContext, m as RootOptions, n as Collection, nt as FormValidator, o as CollectionHomogeneousOptions, ot as Computed, p as Root, q as FieldArray, r as CollectionFactoryApi, rt as FormValue, s as ControllerDef, st as ReadSignal, t as AmbientDeps, tt as FormSchema, u as Ctx, ut as Emitter, v as GcEvent, w as lookupRegisteredQuery, x as QueryClientPluginApi, y as InvalidateEvent, z as Query } from "./types-Ijeun3qo.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/signals/runtime.d.ts
|
|
4
4
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as FormErrors, A as DebugEvent, B as QuerySpec, C as SetDataEvent, D as MutationSpec, E as MutationConcurrency, F as AsyncStatus, G as UseOptions, H as RetryDelay, I as DehydratedEntry, J as FieldArrayItemErrors, K as DeepPartial, L as DehydratedState, M as InfiniteQuerySpec, N as InfiniteQuerySubscription, O as DebugBus, P as AsyncState, Q as Form, R as LocalCache, S as RegisteredQuery, T as Mutation, U as RetryPolicy, V as QuerySubscription, W as Snapshot, X as FieldArrayValidator, Y as FieldArrayOptions, Z as FieldArrayValue, _ as defineScope, a as CollectionFactoryResult, at as Validator, b as QueryClientPlugin, c as CtrlApi, ct as Signal, d as Field, dt as EmitterErrorReporter, et as FormOptions, f as LazyChild, ft as createEmitter, g as ScopeOptions, h as Scope, i as CollectionFactoryOptions, it as ItemInitial, j as InfiniteQuery, k as DebugCacheEntry, l as CtrlProps, lt as ErrorContext, m as RootOptions, n as Collection, nt as FormValidator, o as CollectionHomogeneousOptions, ot as Computed, p as Root, q as FieldArray, r as CollectionFactoryApi, rt as FormValue, s as ControllerDef, st as ReadSignal, t as AmbientDeps, tt as FormSchema, u as Ctx, ut as Emitter, v as GcEvent, w as lookupRegisteredQuery, x as QueryClientPluginApi, y as InvalidateEvent, z as Query } from "./types-
|
|
1
|
+
import { $ as FormErrors, A as DebugEvent, B as QuerySpec, C as SetDataEvent, D as MutationSpec, E as MutationConcurrency, F as AsyncStatus, G as UseOptions, H as RetryDelay, I as DehydratedEntry, J as FieldArrayItemErrors, K as DeepPartial, L as DehydratedState, M as InfiniteQuerySpec, N as InfiniteQuerySubscription, O as DebugBus, P as AsyncState, Q as Form, R as LocalCache, S as RegisteredQuery, T as Mutation, U as RetryPolicy, V as QuerySubscription, W as Snapshot, X as FieldArrayValidator, Y as FieldArrayOptions, Z as FieldArrayValue, _ as defineScope, a as CollectionFactoryResult, at as Validator, b as QueryClientPlugin, c as CtrlApi, ct as Signal, d as Field, dt as EmitterErrorReporter, et as FormOptions, f as LazyChild, ft as createEmitter, g as ScopeOptions, h as Scope, i as CollectionFactoryOptions, it as ItemInitial, j as InfiniteQuery, k as DebugCacheEntry, l as CtrlProps, lt as ErrorContext, m as RootOptions, n as Collection, nt as FormValidator, o as CollectionHomogeneousOptions, ot as Computed, p as Root, q as FieldArray, r as CollectionFactoryApi, rt as FormValue, s as ControllerDef, st as ReadSignal, t as AmbientDeps, tt as FormSchema, u as Ctx, ut as Emitter, v as GcEvent, w as lookupRegisteredQuery, x as QueryClientPluginApi, y as InvalidateEvent, z as Query } from "./types-BCf2nB2N.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/signals/runtime.d.ts
|
|
4
4
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as lookupRegisteredQuery, c as isAbortError, d as effect, f as signal, i as createEmitter, l as batch, m as defineController, o as registerQueryById, p as untracked, r as debouncedValidator, s as stableHash, t as createRoot, u as computed } from "./root-
|
|
1
|
+
import { a as lookupRegisteredQuery, c as isAbortError, d as effect, f as signal, i as createEmitter, l as batch, m as defineController, o as registerQueryById, p as untracked, r as debouncedValidator, s as stableHash, t as createRoot, u as computed } from "./root-BBSlzvJ2.mjs";
|
|
2
2
|
//#region src/signals/readonly.ts
|
|
3
3
|
/**
|
|
4
4
|
* Project a Signal (or any object with a reactive `value` + `peek` + `subscribe`)
|
|
@@ -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();
|
|
@@ -4098,4 +4101,4 @@ function createRoot(def, options) {
|
|
|
4098
4101
|
//#endregion
|
|
4099
4102
|
export { lookupRegisteredQuery as a, isAbortError as c, effect$1 as d, signal$1 as f, createEmitter as i, batch$1 as l, defineController as m, createRootWithProps as n, registerQueryById as o, untracked$1 as p, debouncedValidator as r, stableHash as s, createRoot as t, computed$1 as u };
|
|
4100
4103
|
|
|
4101
|
-
//# sourceMappingURL=root-
|
|
4104
|
+
//# sourceMappingURL=root-BBSlzvJ2.mjs.map
|