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

@types/valid-url

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/valid-url - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

valid-url/LICENSE

25

valid-url/index.d.ts
// Type definitions for valid-url v1.0.9
// Project: https://github.com/ogt/valid-url
// Definitions by: Steve Hipwell <https://github.com/stevehipwell>
// Gabriel Cangussu <https://github.com/gcangussu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -9,6 +10,6 @@

* Returns the untainted URI if the test value appears to be well-formed. Note that you may really want one of the more practical methods like is_http_uri or is_https_uri, since the URI standard (RFC 3986) allows a lot of things you probably don't want.
* @param {string} value - The potential URI to test.
* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
* @param value - The potential URI to test.
* @returns The untainted RFC 3986 URI on success, undefined on failure.
*/
export function isUri(value: any): string;
export function isUri(value: string): string | undefined;

@@ -24,6 +25,6 @@ /**

* or use the convenience method isWebUri which is equivalent.
* @param {string} value - The potential URI to test.
* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
* @param value - The potential URI to test.
* @returns The untainted RFC 3986 URI on success, undefined on failure.
*/
export function isHttpUri(value: any): string;
export function isHttpUri(value: string): string | undefined;

@@ -34,6 +35,6 @@

*See is_http_uri() for details. This version only likes the https URI scheme. Otherwise it's identical to is_http_uri().
* @param {string} value - The potential URI to test.
* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
* @param value - The potential URI to test.
* @returns The untainted RFC 3986 URI on success, undefined on failure.
*/
export function isHttpsUri(value: any): string;
export function isHttpsUri(value: string): string | undefined;

@@ -43,5 +44,5 @@ /**

* This is just a convenience method that combines isHttpUri and isHttpsUri to accept most common real-world URLs.
* @param {string} value - The potential URI to test.
* @returns {string} - The untainted RFC 3986 URI on success, undefined on failure.
* @param value - The potential URI to test.
* @returns The untainted RFC 3986 URI on success, undefined on failure.
*/
export function isWebUri(value: any): string;
export function isWebUri(value: string): string | undefined;
{
"name": "@types/valid-url",
"version": "1.0.2",
"description": "TypeScript definitions for valid-url v1.0.9",
"version": "1.0.3",
"description": "TypeScript definitions for valid-url",
"license": "MIT",
"author": "Steve Hipwell <https://github.com/stevehipwell>",
"contributors": [
{
"name": "Steve Hipwell",
"url": "https://github.com/stevehipwell",
"githubUsername": "stevehipwell"
},
{
"name": "Gabriel Cangussu",
"url": "https://github.com/gcangussu",
"githubUsername": "gcangussu"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/valid-url"
},
"scripts": {},
"dependencies": {},
"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "cd22db5afccb5e2a5a60861a3764b57cdddc551fbcdf263289c758670abd2e5d"
"typesPublisherContentHash": "5d10a798113b29380170b6de8a7d9edbf86ee83a45b364c8f0a58de6b0067b8d",
"typeScriptVersion": "2.8"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for valid-url v1.0.9 (https://github.com/ogt/valid-url).
This package contains type definitions for valid-url (https://github.com/ogt/valid-url).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/valid-url
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/valid-url.
Additional Details
* Last updated: Sat, 05 Nov 2016 20:36:26 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
### Additional Details
* Last updated: Wed, 25 Mar 2020 07:03:41 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by Steve Hipwell <https://github.com/stevehipwell>.
These definitions were written by [Steve Hipwell](https://github.com/stevehipwell), and [Gabriel Cangussu](https://github.com/gcangussu).
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