Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-urls

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-urls - npm Package Compare versions

Comparing version 9.0.0 to 9.1.0

index.d.ts

2

index.js

@@ -8,3 +8,3 @@ 'use strict';

const ret = new Set();
const {searchParams} = (new URL(url));
const {searchParams} = (new URL(url.replace(/^(\/\/|(www\.))/, 'http://$2')));

@@ -11,0 +11,0 @@ for (const [, value] of searchParams) {

{
"name": "get-urls",
"version": "9.0.0",
"version": "9.1.0",
"description": "Get all URLs in a string",

@@ -16,6 +16,7 @@ "license": "MIT",

"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd"
},
"files": [
"index.js"
"index.js",
"index.d.ts"
],

@@ -34,9 +35,10 @@ "keywords": [

"dependencies": {
"normalize-url": "^4.1.0",
"url-regex": "^4.0.0"
"normalize-url": "^4.3.0",
"url-regex": "^4.1.1"
},
"devDependencies": {
"ava": "^1.2.1",
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}

@@ -20,2 +20,4 @@ # get-urls [![Build Status](https://travis-ci.org/sindresorhus/get-urls.svg?branch=master)](https://travis-ci.org/sindresorhus/get-urls)

```js
const getUrls = require('get-urls');
const text = 'Lorem ipsum dolor sit amet, //sindresorhus.com consectetuer adipiscing http://yeoman.io elit.';

@@ -53,3 +55,4 @@

Type: `string[]`
Type: `string[]`<br>
Default: `[]`

@@ -56,0 +59,0 @@ Exclude URLs that match URLs in the given array.

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