@civet/core 6.2.0 → 6.2.1

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.
@@ -3,5 +3,5 @@ export default class ChannelNotifier<TriggerArgs extends unknown[] = never[]> {
3
3
  subscribe: (channel: string, callback: (...args: TriggerArgs) => void) => (() => void);
4
4
  once: (channel: string, callback: (...args: TriggerArgs) => void) => (() => void);
5
5
  isSubscribed: (channel: string, callback: (...args: TriggerArgs) => void) => boolean;
6
- trigger: (channel: string, ...args: TriggerArgs) => void;
6
+ trigger: (channel: string | undefined, ...args: TriggerArgs) => void;
7
7
  }
@@ -69,7 +69,7 @@ export default abstract class DataProvider<Item, Query, Options, MetaType extend
69
69
  releaseInstance(_: InferInstance<MetaType>): void;
70
70
  normalizeResource(resource: string): string;
71
71
  subscribe(resource: string, callback: () => void): () => void;
72
- notify(resource: string): void;
72
+ notify(resource?: string): void;
73
73
  get<ResponseI extends Response = Response, QueryI extends Query = Query, OptionsI extends Options = Options, MetaTypeI extends MetaType = MetaType>(resource: string, query: QueryI, options?: OptionsI, meta?: MetaLike<MetaTypeI>, abortSignal?: AbortSignal): Promise<ResponseI>;
74
74
  continuousGet<ResponseI extends Response = Response, QueryI extends Query = Query, OptionsI extends Options = Options, MetaTypeI extends MetaType = MetaType>(resource: string, query: QueryI, options: OptionsI | undefined, meta: MetaLike<MetaTypeI> | undefined, callback: GetCallback<ResponseI>, abortSignal?: AbortSignal): void;
75
75
  abstract handleGet(resource: string, query: Query, options: Options | undefined, meta: MetaType, abortSignal: AbortSignalProxy): Promise<Response | ContinuousGet<Response>> | Response | ContinuousGet<Response>;
package/dist/main.js CHANGED
@@ -1028,7 +1028,9 @@ class Se {
1028
1028
  return this.notifier.subscribe(this.normalizeResource(s), u);
1029
1029
  }
1030
1030
  notify(s) {
1031
- this.notifier.trigger(this.normalizeResource(s));
1031
+ this.notifier.trigger(
1032
+ s == null ? void 0 : this.normalizeResource(s)
1033
+ );
1032
1034
  }
1033
1035
  get(s, u, p, m, b) {
1034
1036
  return new Promise(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civet/core",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Civet",
5
5
  "author": {
6
6
  "name": "Aaron Burmeister"