is-url-http
Advanced tools
Comparing version
@@ -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) |
'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": { |
5610
3.16%