🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

git-diff-apply

Package Overview
Dependencies
Maintainers
1
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-diff-apply - npm Package Compare versions

Comparing version

to
0.19.9

2

package.json
{
"name": "git-diff-apply",
"version": "0.19.8",
"version": "0.19.9",
"description": "Use an unrelated remote repository to apply a git diff",

@@ -5,0 +5,0 @@ "main": "src",

@@ -5,5 +5,5 @@ 'use strict';

module.exports = async function getSubDir() {
module.exports = async function getRootDir() {
let root = (await run('git rev-parse --show-toplevel')).trim();
return root;
};
'use strict';
const path = require('path');
module.exports = function getSubDir(root) {
let subDir = process.cwd().substr(root.length + 1);
let subDir = path.relative(root, process.cwd());
return subDir;
};