New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

to
1.1.0

7

CHANGELOG.md

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

<a name="1.1.0"></a>
# 1.1.0 (2019-02-24)
* feat: add browser support ([fa851c7](https://github.com/Kikobeats/is-url-http/commit/fa851c7))
<a name="1.0.1"></a>

@@ -2,0 +9,0 @@ ## 1.0.1 (2018-09-17)

2

index.js
'use strict'
const { URL } = require('url')
const URL = global.window ? window.URL : require('url').URL

@@ -5,0 +5,0 @@ const REGEX_HTTP_PROTOCOL = /^https?:\/\//i

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

"homepage": "https://documentup.com/Kikobeats/is-url-http",
"version": "1.0.1",
"version": "1.1.0",
"main": "index.js",

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