Compare commits

..

No commits in common. "7c0fe1e8d5eac342c7b7073b0d50bcc4d2a61228" and "895b63961d89bd88f69de5853170d26ca027736c" have entirely different histories.

4 changed files with 12 additions and 16 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@nulo/isogit-lfs",
"version": "0.2.2",
"version": "0.2.0",
"description": "LFS helpers for Isomorphic Git",
"main": "src/index.ts",
"repository": "git@github.com:riboseinc/isogit-lfs.git",

View file

@ -1,5 +1,3 @@
export { default as downloadBlobFromPointer } from "./download";
export { default as populateCache } from "./populateCache";
export { readPointer } from "./pointers";
export { default as uploadBlob } from "./upload";
export { default as downloadBlobFromPointer } from './download';
export { default as populateCache } from './populateCache';
export { readPointer } from './pointers';

View file

@ -1,10 +1,7 @@
import { Buffer } from "buffer";
import git, {
GitProgressEvent,
HttpClient,
PromiseFsClient,
} from "isomorphic-git";
import git, { PromiseFsClient } from "isomorphic-git";
import http, { GitProgressEvent } from "isomorphic-git/http/node";
import { isVacantAndWriteable, pointsToLFS } from "./util";
import downloadBlobFromPointer from "./download";
@ -29,7 +26,6 @@ type ProgressHandler = (progress: GitProgressEvent) => void;
*/
export default async function populateCache(
fs: PromiseFsClient,
http: HttpClient,
workDir: string,
remoteURL: string,
ref: string = "HEAD",

View file

@ -1,10 +1,12 @@
import type { HttpClient } from "isomorphic-git";
import type { HttpClient } from 'isomorphic-git/http/node';
export interface BasicAuth {
username: string;
password: string;
username: string
password: string
}
// TODO: Restructure HTTPRequest to reuse Isomorphic Gits GitHttpRequest?
export interface HTTPRequest {
@ -15,5 +17,5 @@ export interface HTTPRequest {
url: string;
/** Auth data for basic HTTP auth. */
auth?: BasicAuth;
auth?: BasicAuth
}