Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

giturl

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giturl - npm Package Compare versions

Comparing version
0.0.3
to
1.0.0
+2
-2
AUTHORS
# Ordered by date of first contribution.
# Auto-generated by 'contributors' on Mon, 20 Jan 2014 12:45:03 GMT.
# https://github.com/xingrz/node-contributors
fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)
popomore <sakura9515@gmail.com> (https://github.com/popomore)
1.0.0 / 2015-10-15
==================
* chore: update travis config
* fix: parse url that start with git+https://
* ignore 0.8 on travis ci
0.0.3 / 2014-04-24

@@ -3,0 +10,0 @@ ==================

@@ -33,5 +33,5 @@ /**!

if (url.indexOf('@') >= 0) {
url = url.replace(/^[^@]+@/, ''); // git@ || https://jpillora@ => ""
url = url.replace(/^[^@]+@/, ''); // `git@`` || `https://jpillora@` => ""
}
url = url.replace(/^\w+:\/\//, '') // git:// => ""
url = url.replace(/^[\w+]+:\/\//, '') // `git://` || `git+https://` => ""
.replace(/\.git$/, ''); // .git => ""

@@ -38,0 +38,0 @@ var item = RE.exec(url);

{
"name": "giturl",
"version": "0.0.3",
"version": "1.0.0",
"description": "Transfer git url to web url",
"main": "index.js",
"scripts": {
"test": "make test-all"
"test": "mocha test/*.test.js"
},

@@ -9,0 +9,0 @@ "config": {

@@ -30,3 +30,3 @@ giturl

giturl.parse('git@gitlab.alibaba-inc.com:edp/logger.git');
giturl.parse('git@gitlab.com:edp/logger.git');
// => http://gitlab.com/edp/logger

@@ -33,0 +33,0 @@