isurl
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "isurl", | ||
"description": "Checks whether a value is a WHATWG URL.", | ||
"version": "2.0.0", | ||
"description": "Determines whether a value is a WHATWG URL.", | ||
"version": "3.0.0", | ||
"license": "MIT", | ||
"author": "Steven Vachon <contact@svachon.com> (https://www.svachon.com/)", | ||
"repository": "stevenvachon/isurl", | ||
"repository": "github:stevenvachon/isurl", | ||
"main": "lib", | ||
"dependencies": { | ||
"has-to-string-tag-x": "^1.4.1", | ||
"is-object": "^1.0.1" | ||
"is-object": "^1.0.1", | ||
"is-urlsearchparams": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.2.0", | ||
"@babel/preset-env": "^7.2.0", | ||
"babelify": "^10.0.0", | ||
"browserify": "^16.2.3", | ||
"chai": "^4.2.0", | ||
"incomplete-url": "^2.0.0", | ||
"coveralls": "^3.0.2", | ||
"decache": "^4.5.0", | ||
"gzip-size-cli": "^3.0.0", | ||
"incomplete-symbol": "^1.0.0", | ||
"incomplete-url": "^4.0.0", | ||
"mocha": "^5.2.0", | ||
"universal-url": "^2.0.0" | ||
"nyc": "^13.1.0", | ||
"terser": "^3.14.1", | ||
"whatwg-url": "^7.0.0" | ||
}, | ||
"engines": { | ||
"node": ">= 6" | ||
"node": ">= 8" | ||
}, | ||
"scripts": { | ||
"test": "mocha test --check-leaks --bail" | ||
"ci": "npm run test && nyc report --reporter=text-lcov | coveralls", | ||
"posttest": "nyc report --reporter=html && browserify lib --global-transform [ babelify --presets [ @babel/env ] ] --standalone=isURL | terser --compress --mangle | gzip-size", | ||
"test": "nyc --reporter=text-summary mocha test --check-leaks --bail" | ||
}, | ||
@@ -24,0 +38,0 @@ "files": [ |
@@ -1,4 +0,4 @@ | ||
# isurl [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Monitor][greenkeeper-image]][greenkeeper-url] | ||
# isurl [![NPM Version][npm-image]][npm-url] ![File Size][filesize-image] [![Build Status][travis-image]][travis-url] [![Dependency Monitor][greenkeeper-image]][greenkeeper-url] | ||
> Checks whether a value is a WHATWG [`URL`](https://developer.mozilla.org/en/docs/Web/API/URL). | ||
> Determines whether a value is a WHATWG [`URL`](https://developer.mozilla.org/en/docs/Web/API/URL). | ||
@@ -11,3 +11,3 @@ | ||
[Node.js](http://nodejs.org/) `>= 6` is required. To install, type this at the command line: | ||
[Node.js](http://nodejs.org/) `>= 8` is required. To install, type this at the command line: | ||
```shell | ||
@@ -27,3 +27,3 @@ npm install isurl | ||
Optionally, acceptance can be extended to incomplete `URL` implementations that lack `searchParams` (which are common in many modern web browsers): | ||
Optionally, acceptance can be extended to incomplete `URL` implementations that lack `origin`, `searchParams` and `toJSON` properties (which are common in many modern web browsers): | ||
```js | ||
@@ -40,2 +40,3 @@ const url = new URL('http://domain/?query'); | ||
[npm-url]: https://npmjs.com/package/isurl | ||
[filesize-image]: https://img.shields.io/badge/size-1kB%20gzipped-blue.svg | ||
[travis-image]: https://img.shields.io/travis/stevenvachon/isurl.svg | ||
@@ -42,0 +43,0 @@ [travis-url]: https://travis-ci.org/stevenvachon/isurl |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
4746
43
3
14
42
1
+ Addedis-urlsearchparams@^1.0.0
+ Addedattempt-x@2.1.2(transitive)
+ Addedhas-boxed-string-x@2.1.1(transitive)
+ Addedhas-symbol-support-x@2.1.2(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-to-string-tag-x@2.1.2(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhas-working-bind-x@1.0.1(transitive)
+ Addedis-primitive-x@1.0.1(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedis-symbol@1.0.4(transitive)
+ Addedis-urlsearchparams@1.0.2(transitive)
+ Addednoop-x@1.2.1(transitive)
+ Addedsimple-bind-x@1.0.3(transitive)
+ Addedsimple-call-x@1.0.3(transitive)
+ Addedutil-pusher-x@1.0.3(transitive)