@sprucelabs/spruce-heartwood-utils 5.13.31 → 5.13.35

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.
@@ -17,6 +17,7 @@ export default class RemoteViewControllerFactory implements Factory {
17
17
  getTheme(namespace?: string): SkillTheme;
18
18
  Controller(name: string, options: Record<string, any>): any;
19
19
  private getNamespace;
20
+ getController(name: string): any;
20
21
  RemoteController(name: string, options: Record<string, any>): Promise<any>;
21
22
  }
22
23
  export {};
@@ -23,6 +23,9 @@ class RemoteViewControllerFactory {
23
23
  getNamespace(id) {
24
24
  return id.split('.')[0];
25
25
  }
26
+ getController(name) {
27
+ return this.vcFactory.getController(name);
28
+ }
26
29
  async RemoteController(name, options) {
27
30
  const namespace = this.getNamespace(name);
28
31
  if (!this.hasController(name) && namespace) {
@@ -30,6 +30,9 @@ export default class RemoteViewControllerFactory {
30
30
  getNamespace(id) {
31
31
  return id.split('.')[0];
32
32
  }
33
+ getController(name) {
34
+ return this.vcFactory.getController(name);
35
+ }
33
36
  RemoteController(name, options) {
34
37
  return __awaiter(this, void 0, void 0, function* () {
35
38
  const namespace = this.getNamespace(name);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "5.13.31",
4
+ "version": "5.13.35",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },
@@ -32,9 +32,9 @@
32
32
  "release": "npm publish"
33
33
  },
34
34
  "dependencies": {
35
- "@sprucelabs/heartwood-view-controllers": "^53.8.1",
36
- "@sprucelabs/mercury-client": "^19.2.74",
37
- "@sprucelabs/spruce-event-utils": "^17.1.453"
35
+ "@sprucelabs/heartwood-view-controllers": "latest",
36
+ "@sprucelabs/mercury-client": "latest",
37
+ "@sprucelabs/spruce-event-utils": "latest"
38
38
  },
39
39
  "engines": {
40
40
  "node": "16.x",