@sprucelabs/spruce-heartwood-utils 19.1.1 → 19.1.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.
@@ -0,0 +1,8 @@
1
+ import { ViewControllerPlugin } from '@sprucelabs/heartwood-view-controllers';
2
+ export default class SpyAutoLogoutPlugin implements ViewControllerPlugin {
3
+ wasEnableAutoLogoutCalled: boolean;
4
+ durationSec?: number;
5
+ wasDisableAutoLogoutCalled: boolean;
6
+ enableAutoLogout(durationSec: number): void;
7
+ disableAutoLogout(): void;
8
+ }
@@ -0,0 +1,13 @@
1
+ export default class SpyAutoLogoutPlugin {
2
+ constructor() {
3
+ this.wasEnableAutoLogoutCalled = false;
4
+ this.wasDisableAutoLogoutCalled = false;
5
+ }
6
+ enableAutoLogout(durationSec) {
7
+ this.wasEnableAutoLogoutCalled = true;
8
+ this.durationSec = durationSec;
9
+ }
10
+ disableAutoLogout() {
11
+ this.wasDisableAutoLogoutCalled = true;
12
+ }
13
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewControllerPlugin } from '@sprucelabs/heartwood-view-controllers';
2
+ export default class SpyAutoLogoutPlugin implements ViewControllerPlugin {
3
+ wasEnableAutoLogoutCalled: boolean;
4
+ durationSec?: number;
5
+ wasDisableAutoLogoutCalled: boolean;
6
+ enableAutoLogout(durationSec: number): void;
7
+ disableAutoLogout(): void;
8
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class SpyAutoLogoutPlugin {
4
+ constructor() {
5
+ this.wasEnableAutoLogoutCalled = false;
6
+ this.wasDisableAutoLogoutCalled = false;
7
+ }
8
+ enableAutoLogout(durationSec) {
9
+ this.wasEnableAutoLogoutCalled = true;
10
+ this.durationSec = durationSec;
11
+ }
12
+ disableAutoLogout() {
13
+ this.wasDisableAutoLogoutCalled = true;
14
+ }
15
+ }
16
+ exports.default = SpyAutoLogoutPlugin;
17
+ //# sourceMappingURL=SpyAutoLogoutViewPlugin.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "19.1.1",
4
+ "version": "19.1.3",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },
@@ -26,6 +26,10 @@
26
26
  "build/plugins/AutoLogoutViewPlugin.d.ts",
27
27
  "build/esm/plugins/AutoLogoutViewPlugin.js",
28
28
  "build/esm/plugins/AutoLogoutViewPlugin.d.ts",
29
+ "build/plugins/SpyAutoLogoutViewPlugin.js",
30
+ "build/plugins/SpyAutoLogoutViewPlugin.d.ts",
31
+ "build/esm/plugins/SpyAutoLogoutViewPlugin.js",
32
+ "build/esm/plugins/SpyAutoLogoutViewPlugin.d.ts",
29
33
  "build/skillViews/CardRegistrar.js",
30
34
  "build/skillViews/CardRegistrar.d.ts",
31
35
  "build/esm/skillViews/CardRegistrar.js",
@@ -83,4 +87,4 @@
83
87
  "engines": {
84
88
  "yarn": "1.x"
85
89
  }
86
- }
90
+ }