@sprucelabs/spruce-heartwood-utils 12.7.2 → 12.7.3

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,7 +3,7 @@ import { MercuryClient } from '@sprucelabs/mercury-client';
3
3
  import { EventContract, EventName, SkillEventContract, SpruceSchemas } from '@sprucelabs/mercury-types';
4
4
  import { Schema, SchemaValues } from '@sprucelabs/schema';
5
5
  import { VcFactoryForRemoteFactory } from './RemoteViewControllerFactory';
6
- export default class CardRegistrar<Contract = SkillEventContract,
6
+ export default class CardRegistrar<Contract extends SpruceSchemas.Mercury.v2020_12_25.EventContract = SkillEventContract,
7
7
  /** @ts-ignore */
8
8
  Name extends EventName<Contract> = EventName<Contract>> {
9
9
  private client;
@@ -15,9 +15,7 @@ Name extends EventName<Contract> = EventName<Contract>> {
15
15
  >(options: CardRegistrarOptions<Contract, Name>): CardRegistrar<Contract, Name>;
16
16
  /** @ts-ignore */
17
17
  constructor(options: CardRegistrarOptions<Contract, Name>);
18
- fetch(
19
- /** @ts-ignore */
20
- options?: CardFetchOptions<Contract, Name>): Promise<AbstractViewController<Card>[]>;
18
+ fetch(options?: CardFetchOptions<Contract, Name>): Promise<AbstractViewController<Card>[]>;
21
19
  private ErrorCardVc;
22
20
  }
23
21
  declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
@@ -31,9 +31,7 @@ export default class CardRegistrar {
31
31
  /** @ts-ignore */
32
32
  return new this(options);
33
33
  }
34
- fetch(
35
- /** @ts-ignore */
36
- options) {
34
+ fetch(options) {
37
35
  return __awaiter(this, void 0, void 0, function* () {
38
36
  try {
39
37
  //@ts-ignore
@@ -3,7 +3,7 @@ import { MercuryClient } from '@sprucelabs/mercury-client';
3
3
  import { EventContract, EventName, SkillEventContract, SpruceSchemas } from '@sprucelabs/mercury-types';
4
4
  import { Schema, SchemaValues } from '@sprucelabs/schema';
5
5
  import { VcFactoryForRemoteFactory } from './RemoteViewControllerFactory';
6
- export default class CardRegistrar<Contract = SkillEventContract,
6
+ export default class CardRegistrar<Contract extends SpruceSchemas.Mercury.v2020_12_25.EventContract = SkillEventContract,
7
7
  /** @ts-ignore */
8
8
  Name extends EventName<Contract> = EventName<Contract>> {
9
9
  private client;
@@ -15,9 +15,7 @@ Name extends EventName<Contract> = EventName<Contract>> {
15
15
  >(options: CardRegistrarOptions<Contract, Name>): CardRegistrar<Contract, Name>;
16
16
  /** @ts-ignore */
17
17
  constructor(options: CardRegistrarOptions<Contract, Name>);
18
- fetch(
19
- /** @ts-ignore */
20
- options?: CardFetchOptions<Contract, Name>): Promise<AbstractViewController<Card>[]>;
18
+ fetch(options?: CardFetchOptions<Contract, Name>): Promise<AbstractViewController<Card>[]>;
21
19
  private ErrorCardVc;
22
20
  }
23
21
  declare type Card = SpruceSchemas.HeartwoodViewControllers.v2021_02_11.Card;
@@ -27,9 +27,7 @@ class CardRegistrar {
27
27
  /** @ts-ignore */
28
28
  return new this(options);
29
29
  }
30
- async fetch(
31
- /** @ts-ignore */
32
- options) {
30
+ async fetch(options) {
33
31
  try {
34
32
  //@ts-ignore
35
33
  const { each, controllerOptionsHandler, target, payload } = options !== null && options !== void 0 ? options : {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "12.7.2",
4
+ "version": "12.7.3",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },