@remvst/game-navigation-core 1.8.1 → 1.8.2

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.
@@ -1,6 +1,6 @@
1
1
  import { Screen } from "../ui/screen";
2
2
  export declare class UserCancelledError extends Error {
3
- constructor(message: string);
3
+ constructor(message?: string);
4
4
  }
5
5
  export declare class Resolver<T> {
6
6
  private readonly screen;
@@ -2,8 +2,8 @@
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');
5
+ constructor(message = 'User backed out and cancelled navigation flow') {
6
+ super(message);
7
7
  }
8
8
  }
9
9
  exports.UserCancelledError = UserCancelledError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remvst/game-navigation-core",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  import { Screen } from "../ui/screen";
2
2
 
3
3
  export class UserCancelledError extends Error {
4
- constructor(message: string) {
5
- super(message || 'User backed out and cancelled navigation flow');
4
+ constructor(message: string = 'User backed out and cancelled navigation flow') {
5
+ super(message);
6
6
  }
7
7
  }
8
8