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

forked

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forked - npm Package Compare versions

Comparing version 0.1.2 to 0.1.4

12

dist/index.js

@@ -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

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