is-url-superb
Advanced tools
Comparing version 5.0.0 to 6.0.0
@@ -6,3 +6,3 @@ /** | ||
``` | ||
import isUrl = require('is-url-superb'); | ||
import isUrl from 'is-url-superb'; | ||
@@ -19,4 +19,2 @@ isUrl('https://sindresorhus.com'); | ||
*/ | ||
declare function isUrl(url: string): boolean; | ||
export = isUrl; | ||
export default function isUrl(url: string): boolean; |
@@ -1,4 +0,2 @@ | ||
'use strict'; | ||
module.exports = string => { | ||
export default function isUrl(string) { | ||
if (typeof string !== 'string') { | ||
@@ -19,2 +17,2 @@ throw new TypeError('Expected a string'); | ||
} | ||
}; | ||
} |
{ | ||
"name": "is-url-superb", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "Check if a string is a URL", | ||
@@ -13,4 +13,6 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -33,6 +35,6 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"tsd": "^0.13.1", | ||
"xo": "^0.35.0" | ||
"ava": "^3.15.0", | ||
"tsd": "^0.14.0", | ||
"xo": "^0.38.2" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # is-url-superb | ||
```js | ||
const isUrl = require('is-url-superb'); | ||
import isUrl from 'is-url-superb'; | ||
@@ -17,0 +17,0 @@ isUrl('https://sindresorhus.com'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2647
Yes
29