Socket
Socket
Sign inDemoInstall

isurl

Package Overview
Dependencies
16
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

lib/index.js

30

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc