Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-url-http

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-url-http - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

7

CHANGELOG.md

@@ -0,1 +1,8 @@

<a name="1.2.4"></a>
## 1.2.4 (2019-10-18)
* refactor: use encoded url ([77889a1](https://github.com/Kikobeats/is-url-http/commit/77889a1))
<a name="1.2.3"></a>

@@ -2,0 +9,0 @@ ## 1.2.3 (2019-10-18)

3

index.js

@@ -10,3 +10,4 @@ 'use strict'

try {
return new URL(url) && REGEX_HTTP_PROTOCOL.test(url) && urlRegex.test(url)
const { href } = new URL(url)
return REGEX_HTTP_PROTOCOL.test(href) && urlRegex.test(href)
} catch (err) {

@@ -13,0 +14,0 @@ return false

@@ -5,3 +5,3 @@ {

"homepage": "https://nicedoc.io/Kikobeats/is-url-http",
"version": "1.2.3",
"version": "1.2.4",
"main": "index.js",

@@ -8,0 +8,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc