Socket
Socket
Sign inDemoInstall

nav-keys

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

5

dist/index.d.ts
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;

3

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc