is-url-http
Advanced tools
Comparing version 1.2.4 to 2.0.0
@@ -0,1 +1,8 @@ | ||
## 2.0.0 (2020-02-03) | ||
* build: migrate scripts ([45c1080](https://github.com/Kikobeats/is-url-http/commit/45c1080)) | ||
* build: remove browser shim ([f44f557](https://github.com/Kikobeats/is-url-http/commit/f44f557)) | ||
<a name="1.2.4"></a> | ||
@@ -2,0 +9,0 @@ ## 1.2.4 (2019-10-18) |
'use strict' | ||
const URL = global.window ? window.URL : require('url').URL | ||
const { URL } = require('url') | ||
const urlRegex = require('url-regex')({ exact: true }) | ||
@@ -5,0 +5,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/is-url-http", | ||
"version": "1.2.4", | ||
"version": "2.0.0", | ||
"main": "index.js", | ||
@@ -61,3 +61,2 @@ "author": { | ||
"lint": "standard-markdown README.md && standard", | ||
"precommit": "lint-staged", | ||
"pretest": "npm run lint", | ||
@@ -68,16 +67,18 @@ "pretty": "prettier-standard index.js {core,test,bin,scripts}/**/*.js --single-quote --print-width 100", | ||
"license": "MIT", | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"package.json": [ | ||
"finepack", | ||
"git add" | ||
"finepack" | ||
], | ||
"*.js": [ | ||
"prettier-standard", | ||
"git add" | ||
"prettier-standard" | ||
], | ||
"*.md": [ | ||
"standard-markdown", | ||
"git add" | ||
"standard-markdown" | ||
] | ||
} | ||
} |
6983