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

@types/git-url-parse

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/git-url-parse - npm Package Compare versions

Comparing version 9.0.0 to 9.0.1

2

git-url-parse/index.d.ts

@@ -39,3 +39,3 @@ // Type definitions for git-url-parse 9.0

/** Whether to add the `.git` suffix or not. */
git_suffix?: boolean;
git_suffix?: boolean | undefined;
toString(type?: string): string;

@@ -42,0 +42,0 @@ }

{
"name": "@types/git-url-parse",
"version": "9.0.0",
"version": "9.0.1",
"description": "TypeScript definitions for git-url-parse",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-url-parse",
"license": "MIT",

@@ -14,10 +15,12 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/git-url-parse"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "5fab8644550eaad8977521f4ddbf4a41e9151654249f2eb88868aa0d8a758148",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "e01575968ff0ec71c76c6a7cce74443e04a84d9ce06b66dbb7405187dc5d3ef6",
"typeScriptVersion": "3.6"
}

@@ -8,6 +8,58 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-url-parse
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-url-parse.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/git-url-parse/index.d.ts)
````ts
// Type definitions for git-url-parse 9.0
// Project: https://github.com/IonicaBizau/git-url-parse
// Definitions by: Klaus Meinhardt <https://github.com/ajafff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Mon, 16 Jul 2018 17:07:43 GMT
declare namespace gitUrlParse {
interface GitUrl {
/** An array with the url protocols (usually it has one element). */
protocols: string[];
port: number | null;
/** The url domain (including subdomains). */
resource: string;
/** The authentication user (usually for ssh urls). */
user: string;
pathname: string;
hash: string;
search: string;
href: string;
protocol: string;
/** The oauth token (could appear in the https urls). */
token: string;
/** The Git provider (e.g. `"github.com"`). */
source: string;
/** The repository owner. */
owner: string;
/** The repository name. */
name: string;
/** The repository ref (e.g., "master" or "dev"). */
ref: string;
/** A filepath relative to the repository root. */
filepath: string;
/** The type of filepath in the url ("blob" or "tree"). */
filepathtype: string;
/** The owner and name values in the `owner/name` format. */
full_name: string;
/** The organization the owner belongs to. This is CloudForge specific. */
organization: string;
/** Whether to add the `.git` suffix or not. */
git_suffix?: boolean | undefined;
toString(type?: string): string;
}
function stringify(url: GitUrl, type?: string): string;
}
declare function gitUrlParse(url: string): gitUrlParse.GitUrl;
export = gitUrlParse;
````
### Additional Details
* Last updated: Tue, 06 Jul 2021 20:33:04 GMT
* Dependencies: none

@@ -17,2 +69,2 @@ * Global values: none

# Credits
These definitions were written by Klaus Meinhardt <https://github.com/ajafff>.
These definitions were written by [Klaus Meinhardt](https://github.com/ajafff).

Sorry, the diff of this file is not supported yet

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