Socket
Socket
Sign inDemoInstall

is-url-superb

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-url-superb - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

6

index.d.ts

@@ -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');

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc