is-url-http
Advanced tools
Comparing version 2.1.2 to 2.2.0
@@ -1,14 +0,20 @@ | ||
## <small>2.1.2 (2020-03-20)</small> | ||
# Changelog | ||
* fix: add types ([ab21a60](https://github.com/Kikobeats/is-url-http/commit/ab21a60)), closes [#6](https://github.com/Kikobeats/is-url-http/issues/6) | ||
* feat: add types declaration file ([a0ff382](https://github.com/Kikobeats/is-url-http/commit/a0ff382)) | ||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
## 2.2.0 (2020-10-12) | ||
## <small>2.1.1 (2020-02-05)</small> | ||
### Features | ||
* test: extend tests for lightweight version ([7b66fb5](https://github.com/Kikobeats/is-url-http/commit/7b66fb5)) | ||
* add browser support ([fa851c7](https://github.com/Kikobeats/is-url-http/commit/fa851c7a55de07fa2d710d4685fa83f4f830276d)) | ||
* add lightweight version ([d49eea7](https://github.com/Kikobeats/is-url-http/commit/d49eea7512531e98f31f832322a5e64bed8a758d)) | ||
* add types declaration file ([a0ff382](https://github.com/Kikobeats/is-url-http/commit/a0ff382c71e129ff7fd3485c6c690f2e390d74ed)) | ||
* detect duplicate protocol ([500c0d7](https://github.com/Kikobeats/is-url-http/commit/500c0d7999a0e0242ac3784ecd49046cf5c519cb)) | ||
### Bug Fixes | ||
* add types ([ab21a60](https://github.com/Kikobeats/is-url-http/commit/ab21a6081c23eacc2f7eed38bd409ba3d8c6dd5a)), closes [#6](https://github.com/Kikobeats/is-url-http/issues/6) | ||
## 2.1.0 (2020-02-05) | ||
@@ -110,4 +116,1 @@ | ||
* First commit ([eaccf59](https://github.com/Kikobeats/is-url-http/commit/eaccf59)) | ||
'use strict' | ||
const URL = global.window ? window.URL : require('url').URL | ||
const urlRegex = require('url-regex')({ exact: true }) | ||
const urlRegex = require('url-regex-safe')({ exact: true }) | ||
@@ -6,0 +6,0 @@ const REGEX_HTTP_PROTOCOL = /^https?:\/\//i |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/Kikobeats/is-url-http", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"browser": "lightweight.js", | ||
@@ -37,6 +37,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"url-regex": "~5.0.0" | ||
"url-regex-safe": "~1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "latest", | ||
"@commitlint/config-conventional": "latest", | ||
"ava": "latest", | ||
"ci-publish": "latest", | ||
"conventional-github-releaser": "latest", | ||
"coveralls": "latest", | ||
@@ -48,6 +52,8 @@ "finepack": "latest", | ||
"lint-staged": "latest", | ||
"npm-check-updates": "latest", | ||
"nyc": "latest", | ||
"prettier-standard": "latest", | ||
"standard": "latest", | ||
"standard-markdown": "latest" | ||
"standard-markdown": "latest", | ||
"standard-version": "latest" | ||
}, | ||
@@ -64,11 +70,25 @@ "engines": { | ||
"clean": "rm -rf node_modules", | ||
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"lint": "standard-markdown README.md && standard", | ||
"postrelease": "npm run release:tags && npm run release:github && ci-publish", | ||
"prerelease": "npm run update:check && npm run contributors", | ||
"pretest": "npm run lint", | ||
"pretty": "prettier-standard index.js {core,test,bin,scripts}/**/*.js --single-quote --print-width 100", | ||
"test": "nyc ava" | ||
"release": "standard-version -a", | ||
"release:github": "conventional-github-releaser -p angular", | ||
"release:tags": "git push --follow-tags origin HEAD:master", | ||
"test": "nyc ava", | ||
"update": "ncu -u", | ||
"update:check": "ncu -- --error-level 2" | ||
}, | ||
"license": "MIT", | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "lint-staged" | ||
@@ -75,0 +95,0 @@ } |
9967
17
+ Addedurl-regex-safe@~1.0.2
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@npmcli/agent@2.2.2(transitive)
+ Added@npmcli/fs@3.1.1(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedabbrev@2.0.0(transitive)
+ Addedagent-base@7.1.3(transitive)
+ Addedaggregate-error@3.1.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcacache@18.0.4(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addederr-code@2.0.3(transitive)
+ Addedexponential-backoff@3.1.1(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedfs-minipass@2.1.03.0.3(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp-proxy-agent@7.0.2(transitive)
+ Addedhttps-proxy-agent@7.0.6(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedinstall-artifact-from-github@1.3.5(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedis-lambda@1.0.1(transitive)
+ Addedisexe@2.0.03.1.1(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedmake-fetch-happen@13.0.1(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@3.3.65.0.07.1.2(transitive)
+ Addedminipass-collect@2.0.1(transitive)
+ Addedminipass-fetch@3.0.5(transitive)
+ Addedminipass-flush@1.0.5(transitive)
+ Addedminipass-pipeline@1.2.4(transitive)
+ Addedminipass-sized@1.0.3(transitive)
+ Addedminizlib@2.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedms@2.1.3(transitive)
+ Addednan@2.22.0(transitive)
+ Addednegotiator@0.6.4(transitive)
+ Addednode-gyp@10.3.1(transitive)
+ Addednopt@7.2.1(transitive)
+ Addedp-map@4.0.0(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedproc-log@4.2.0(transitive)
+ Addedpromise-retry@2.0.1(transitive)
+ Addedre2@1.21.4(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@8.0.5(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedssri@10.0.6(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedtar@6.2.1(transitive)
+ Addedunique-filename@3.0.0(transitive)
+ Addedunique-slug@4.0.0(transitive)
+ Addedurl-regex-safe@1.0.2(transitive)
+ Addedwhich@2.0.24.0.0(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
+ Addedyallist@4.0.0(transitive)
- Removedurl-regex@~5.0.0
- Removedurl-regex@5.0.0(transitive)