@remvst/game-navigation-core 1.8.0 → 1.8.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.
package/lib/game/game.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Resolver = exports.UserCancelledError = void 0;
|
|
4
4
|
class UserCancelledError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message || 'User backed out and cancelled navigation flow');
|
|
7
|
+
}
|
|
5
8
|
}
|
|
6
9
|
exports.UserCancelledError = UserCancelledError;
|
|
7
10
|
class Resolver {
|
package/package.json
CHANGED
package/src/game/game.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Screen } from "../ui/screen";
|
|
2
2
|
|
|
3
|
-
export class UserCancelledError extends Error {
|
|
3
|
+
export class UserCancelledError extends Error {
|
|
4
|
+
constructor(message: string) {
|
|
5
|
+
super(message || 'User backed out and cancelled navigation flow');
|
|
6
|
+
}
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
export class Resolver<T> {
|
|
6
10
|
private readonly screen: Screen;
|