Comparing version 0.1.2 to 0.1.4
@@ -12,6 +12,2 @@ #!/usr/bin/env node | ||
var _githubUrlParse = require('github-url-parse'); | ||
var _githubUrlParse2 = _interopRequireDefault(_githubUrlParse); | ||
var _fs = require('fs'); | ||
@@ -69,4 +65,8 @@ | ||
var meta = (0, _githubUrlParse2.default)(repositoryUrl); | ||
var tail = repositoryUrl.replace(/.*github.com./, ''); | ||
var tailParts = tail.split('/'); | ||
var meta = { | ||
user: tailParts[tailParts.length - 2], | ||
repo: tailParts[tailParts.length - 1] | ||
}; | ||
var index = meta.repo.indexOf('.git'); | ||
@@ -73,0 +73,0 @@ if (index !== -1) { |
#!/usr/bin/env node | ||
import shell from 'shelljs' | ||
import GitHubApi from 'github' | ||
import parser from 'github-url-parse' | ||
import {statSync} from 'fs' | ||
@@ -54,4 +53,8 @@ import path from 'path' | ||
const meta = parser(repositoryUrl) | ||
const tail = repositoryUrl.replace(/.*github.com./, ''); | ||
const tailParts = tail.split('/'); | ||
const meta = { | ||
user: tailParts[tailParts.length - 2], | ||
repo: tailParts[tailParts.length - 1] | ||
}; | ||
const index = meta.repo.indexOf('.git') | ||
@@ -58,0 +61,0 @@ if (index !== -1) { |
{ | ||
"name": "forked", | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"description": "fork from the command line", | ||
@@ -29,3 +29,2 @@ "main": "dist/index.js", | ||
"github": "^0.2.4", | ||
"github-url-parse": "^0.1.0", | ||
"rimraf": "^2.5.2", | ||
@@ -32,0 +31,0 @@ "shelljs": "^0.6.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
226277
4
145
- Removedgithub-url-parse@^0.1.0
- Removedgithub-url-parse@0.1.0(transitive)