New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jestaubach/cloner-git

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jestaubach/cloner-git - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

10

dist/src/mock.js

@@ -11,9 +11,7 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
function mock(fsHelpers) {
return jest.fn().mockImplementation((args, cwd) => __awaiter(this, void 0, void 0, function* () {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pathLocal = require(`path`);
const fullDest = fsHelpers.getAbsolutePath(cwd || args.slice(-1)[0]).value;

@@ -23,7 +21,7 @@ const usePath = args.filter((cur) => {

}).length > 0
? path_1.default.resolve(fsHelpers.getAbsolutePath(fullDest).value, args.slice(-1)[0].slice(1))
? pathLocal.resolve(fsHelpers.getAbsolutePath(fullDest).value, args.slice(-1)[0].slice(1))
: fullDest;
if (!fsHelpers.checkIfDirExists(usePath).value) {
fsHelpers.createDir(fsHelpers.getAbsolutePath(usePath).value);
fsHelpers.touchFile(`${usePath}${path_1.default.sep}main.tf`);
fsHelpers.touchFile(`${usePath}${pathLocal.sep}main.tf`);
}

@@ -30,0 +28,0 @@ return Promise.resolve({

2

package.json
{
"name": "@jestaubach/cloner-git",
"version": "0.1.2",
"version": "0.1.3",
"description": "typescript library template",

@@ -5,0 +5,0 @@ "keywords": [],

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