Skip to content

Commit df78450

Browse files
committed
feat: drop Node.js < 14 support
keep orignal protocol, e.g. https => https, it's a breaking change
1 parent 07d1458 commit df78450

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

Diff for: lib/giturl.js

-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
/**!
2-
* giturl - lib/giturl.js
3-
*
4-
* Copyright(c) 2014
5-
* MIT Licensed
6-
*
7-
* Authors:
8-
* fengmk2 <[email protected]> (http://fengmk2.github.com)
9-
*/
10-
111
"use strict";
122

13-
/**
14-
* Module dependencies.
15-
*/
16-
173
// host[:/]n1/n2
184
var RE = /^([^:\/]+)[:\/](.+)$/i;
195

Diff for: package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"homepage": "https://github.com/repo-utils/giturl",
2424
"repository": {
2525
"type": "git",
26-
"url": "git://github.com/repo-utils/giturl.git",
27-
"web": "https://github.com/repo-utils/giturl"
26+
"url": "git://github.com/repo-utils/giturl.git"
2827
},
2928
"bugs": {
3029
"url": "https://github.com/repo-utils/giturl/issues"
@@ -37,7 +36,7 @@
3736
"url"
3837
],
3938
"engines": {
40-
"node": ">= 0.10.0"
39+
"node": ">= 14.17.0"
4140
},
4241
"author": "fengmk2 <[email protected]> (http://github.com/fengmk2)",
4342
"license": "MIT"

0 commit comments

Comments
 (0)