Socket
Socket
Sign inDemoInstall

addressbar

Package Overview
Dependencies
1
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

6

index.js

@@ -138,2 +138,8 @@ var URI = require('urijs');

Object.defineProperty(eventEmitter, 'pathname', {
get: function () {
return URI(location.href).pathname();
}
});
/*

@@ -140,0 +146,0 @@ This code is from the Page JS source code. Amazing work on handling all

2

package.json
{
"name": "addressbar",
"version": "0.4.0",
"version": "0.4.1",
"description": "Makes the addressbar of the browser work just like a normal input",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -28,2 +28,3 @@ # addressbar

addressbar.hostname // "www.example.com"
addressbar.pathname // "/"

@@ -30,0 +31,0 @@ // Prevent route changes on hyperlinks

@@ -372,5 +372,7 @@ var webdriver = require('selenium-webdriver');

});
driver.findElement(by.id('pathname')).getText().then(function (text) {
test.equal(text, '/tests/uri/');
});
driver.quit().then(test.done);
};

Sorry, the diff of this file is too big to display

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