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

git-diff-apply

Package Overview
Dependencies
Maintainers
1
Versions
132
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 0.19.8 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;
};
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