nav-keys
Advanced tools
Comparing version 1.2.2 to 1.2.3
export declare type NavKeysOptions = { | ||
initialUrl?: string; | ||
callListenersAsStack?: boolean; | ||
allowHashchange: boolean; | ||
listenHashchange: boolean; | ||
allowHashchange?: boolean; | ||
listenHashchange?: boolean; | ||
}; | ||
@@ -33,2 +33,3 @@ export declare const DEFAULT_OPTIONS: NavKeysOptions; | ||
set url(url: string | URL); | ||
get url(): string | URL; | ||
listen(listener: Function): () => boolean; | ||
@@ -35,0 +36,0 @@ exit(): void; |
@@ -180,2 +180,5 @@ "use strict"; | ||
Object.defineProperty(NavKeysController.prototype, "url", { | ||
get: function () { | ||
return this._url; | ||
}, | ||
set: function (url) { | ||
@@ -182,0 +185,0 @@ this._url = (new URL(url.toString(), this._url)).href; |
{ | ||
"name": "nav-keys", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Control of browser back and forward navigation keys", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -29,4 +29,4 @@ /* | ||
callListenersAsStack?: boolean | ||
allowHashchange: boolean | ||
listenHashchange: boolean | ||
allowHashchange?: boolean | ||
listenHashchange?: boolean | ||
} | ||
@@ -200,2 +200,6 @@ | ||
get url() { | ||
return this._url | ||
} | ||
listen(listener: Function) { | ||
@@ -202,0 +206,0 @@ this.listeners.add(listener) |
Sorry, the diff of this file is not supported yet
21561
482