ci-npm-update
Advanced tools
Comparing version 1.0.6 to 1.0.7
# The Reivision History of ci-npm-update | ||
## v1.0.7 - 2016/09/12 | ||
* Support git+ssh protocols (#37) | ||
## v1.0.6 - 2016/08/27 | ||
@@ -4,0 +8,0 @@ |
@@ -10,6 +10,2 @@ "use strict"; | ||
} | ||
// url can be: | ||
// git+https://github.com/foo/bar.git | ||
// https://github.com/foo/bar.baz.git | ||
// git@github.com:foo/bar.git | ||
static fixupUrl(repository) { | ||
@@ -16,0 +12,0 @@ if (!(repository && repository.url)) { |
@@ -12,3 +12,20 @@ "use strict"; | ||
static parseUrl(url) { | ||
const matched = /^(?:git@|(?:git\+)?https?:\/\/|git:\/\/)([^\/:]+)[\/:]([^\/]+)\/([^\/]+)(?!\.git)/.exec(url); | ||
// url can be: | ||
// git://github.com/foo/bar.git | ||
// git@github.com:foo/bar.git | ||
// git+https://github.com/foo/bar.git | ||
// git+ssh://git@github.com/foo/bar.git | ||
// http://github.com/foo/bar.baz.git | ||
// https://github.com/foo/bar.baz.git | ||
const schemeRegexps = [ | ||
"git:\\/\\/", | ||
"git@", | ||
"git\\+https:\\/\\/", | ||
"git\\+ssh:\\/\\/git@", | ||
"http:\\/\\/", | ||
"https:\\/\\/", | ||
]; | ||
const hostRegexp = "([^\\/:]+)[\\/:]"; | ||
const pathRegexp = "([^\\/]+)\\/([^\\/]+)(?!\\.git)"; | ||
const matched = new RegExp(`^(?:${schemeRegexps.join("|")})${hostRegexp}${pathRegexp}$`).exec(url); | ||
if (!matched) { | ||
@@ -15,0 +32,0 @@ throw Error(`Cannot parse git repository URL: ${url}`); |
{ | ||
"name": "ci-npm-update", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Keep NPM dependencies up-to-date with CI, providing version-to-version diff for each library", | ||
@@ -13,3 +13,4 @@ "repository": { | ||
"dry-run": "npm run build && bin/ci-npm-update", | ||
"prepublish": "npm test", | ||
"preversion": "npm test", | ||
"postpublish": "git push origin master && git push origin --tags", | ||
"setup": "npm install && npm dedupe", | ||
@@ -16,0 +17,0 @@ "build": "npm run lint && tsc", |
@@ -14,3 +14,3 @@ # ci-npm-update [![CircleCI](https://circleci.com/gh/bitjourney/ci-npm-update.svg?style=svg)](https://circleci.com/gh/bitjourney/ci-npm-update) | ||
```sh | ||
npm install --dev ci-npm-update | ||
npm install --save-dev ci-npm-update | ||
``` | ||
@@ -17,0 +17,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
159090
1792