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

git-cherrypicker

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-cherrypicker - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

5

lib/CherryPicker.d.ts

@@ -19,6 +19,1 @@ export declare const giteaArg = "{{host}}/{{reponame}}/raw/branch/{{branchname}}/{{filename}}";

}
export declare class GitCloner {
private url;
constructor(host: string, owner: string, repo: string, cred?: [string, string]);
clone(dest: string): void;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const node_fetch_1 = require("node-fetch");
const git = require("simple-git/promise");
const path = require("path");
const fs_1 = require("fs");

@@ -57,17 +55,1 @@ exports.giteaArg = "{{host}}/{{reponame}}/raw/branch/{{branchname}}/{{filename}}";

exports.FrontblockCherryPicker = FrontblockCherryPicker;
class GitCloner {
constructor(host, owner, repo, cred) {
if (cred) {
this.url = 'https://' + cred[0] + ':' + cred[1] + '@' + path.join(host, owner, repo);
}
else {
this.url = 'https://' + path.join(host, owner, repo);
}
}
clone(dest) {
git().clone(this.url, dest)
.then(() => console.log('finished'))
.catch((err) => console.error('failed: ', err));
}
}
exports.GitCloner = GitCloner;

6

package.json
{
"name": "git-cherrypicker",
"version": "0.0.3",
"version": "0.0.4",
"description": "Read files from popular git implementations as string or write them to a file",

@@ -17,6 +17,4 @@ "main": "lib/CherryPicker.js",

"fs": "0.0.1-security",
"node-fetch": "^2.6.0",
"path": "^0.12.7",
"simple-git": "^1.124.0"
"node-fetch": "^2.6.0"
}
}
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