Comparing version 3.0.0 to 3.0.1
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type URLInfo from './url'; | ||
@@ -3,0 +2,0 @@ import type { AxiosHeaders, RawAxiosRequestHeaders } from 'axios'; |
@@ -6,2 +6,2 @@ import * as tar from 'tar'; | ||
export declare function getArchivePath(info: URLInfo, options?: GitlyOptions): string; | ||
export declare const extract: typeof tar.extract; | ||
export declare const extract: import("tar/dist/commonjs/make-command").TarCommand<tar.Unpack, tar.UnpackSync>; |
@@ -29,3 +29,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extract = exports.getArchivePath = exports.getArchiveUrl = void 0; | ||
exports.extract = void 0; | ||
exports.getArchiveUrl = getArchiveUrl; | ||
exports.getArchivePath = getArchivePath; | ||
const node_os_1 = __importDefault(require("node:os")); | ||
@@ -49,3 +51,2 @@ const node_path_1 = require("node:path"); | ||
} | ||
exports.getArchiveUrl = getArchiveUrl; | ||
function getArchivePath(info, options = {}) { | ||
@@ -55,3 +56,2 @@ const { path, type, hostname: site } = info; | ||
} | ||
exports.getArchivePath = getArchivePath; | ||
exports.extract = tar.extract; |
@@ -29,2 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = clone; | ||
const cross_spawn_1 = __importDefault(require("cross-spawn")); | ||
@@ -139,2 +140,1 @@ const promises_1 = require("node:fs/promises"); | ||
} | ||
exports.default = clone; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = download; | ||
const shelljs_1 = require("shelljs"); | ||
@@ -60,2 +61,1 @@ const archive_1 = require("./archive"); | ||
} | ||
exports.default = download; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
export declare enum GitlyErrorType { | ||
@@ -26,6 +25,6 @@ Fetch = "fetch", | ||
name: string; | ||
stack?: string | undefined; | ||
stack?: string; | ||
}; | ||
type: GitlyErrorType; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
@@ -42,6 +41,6 @@ stackTraceLimit: number; | ||
name: string; | ||
stack?: string | undefined; | ||
stack?: string; | ||
}; | ||
type: GitlyErrorType; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
@@ -58,6 +57,6 @@ stackTraceLimit: number; | ||
name: string; | ||
stack?: string | undefined; | ||
stack?: string; | ||
}; | ||
type: GitlyErrorType; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
@@ -74,6 +73,6 @@ stackTraceLimit: number; | ||
name: string; | ||
stack?: string | undefined; | ||
stack?: string; | ||
}; | ||
type: GitlyErrorType; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
@@ -90,8 +89,8 @@ stackTraceLimit: number; | ||
name: string; | ||
stack?: string | undefined; | ||
stack?: string; | ||
}; | ||
type: GitlyErrorType; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
captureStackTrace(targetObject: object, constructorOpt?: Function): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
stackTraceLimit: number; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = execute; | ||
async function execute(tasks) { | ||
@@ -11,2 +12,1 @@ return new Promise((resolve, reject) => { | ||
} | ||
exports.default = execute; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = exists; | ||
const node_fs_1 = require("node:fs"); | ||
@@ -24,2 +25,1 @@ const node_path_1 = require("node:path"); | ||
} | ||
exports.default = exists; |
@@ -29,2 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = fetch; | ||
const axios_1 = __importDefault(require("axios")); | ||
@@ -51,2 +52,1 @@ const stream = __importStar(require("node:stream")); | ||
} | ||
exports.default = fetch; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = gitly; | ||
const clone_1 = __importDefault(require("./clone")); | ||
@@ -28,2 +29,1 @@ const download_1 = __importDefault(require("./download")); | ||
} | ||
exports.default = gitly; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isOffline = void 0; | ||
exports.isOffline = isOffline; | ||
const node_dns_1 = require("node:dns"); | ||
@@ -15,2 +15,1 @@ const { lookup } = node_dns_1.promises; | ||
} | ||
exports.isOffline = isOffline; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = parse; | ||
const node_url_1 = require("node:url"); | ||
@@ -36,3 +37,2 @@ /** | ||
} | ||
exports.default = parse; | ||
function normalizeURL(url, options) { | ||
@@ -39,0 +39,0 @@ const { host } = options; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { WriteStream } from 'node:fs'; | ||
@@ -3,0 +2,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = write; | ||
const node_fs_1 = require("node:fs"); | ||
@@ -15,2 +16,1 @@ const node_path_1 = require("node:path"); | ||
} | ||
exports.default = write; |
{ | ||
"name": "gitly", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "An API to download and/or extract git repositories", | ||
@@ -13,5 +13,5 @@ "main": "lib/main.js", | ||
"dependencies": { | ||
"axios": "^1.6.8", | ||
"axios": "^1.7.2", | ||
"cross-spawn": "^7.0.3", | ||
"tar": "^7.1.0", | ||
"tar": "^7.4.3", | ||
"shelljs": "^0.8.5" | ||
@@ -22,14 +22,14 @@ }, | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.12.11", | ||
"@types/node": "^22.0.0", | ||
"@types/shelljs": "^0.8.15", | ||
"@types/tar": "^6.1.13", | ||
"jest": "^29.7.0", | ||
"prettier": "^3.2.5", | ||
"ts-jest": "^29.1.2", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.4.5" | ||
"prettier": "^3.3.3", | ||
"ts-jest": "^29.2.3", | ||
"tslib": "^2.6.3", | ||
"typescript": "^5.5.4" | ||
}, | ||
"scripts": { | ||
"prepare": "npm run build", | ||
"preversion": "npm run lint", | ||
"preversion": "", | ||
"prepublishOnly": "npm run test", | ||
@@ -36,0 +36,0 @@ "build": "tsc", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67514
55
1525
Updatedaxios@^1.7.2
Updatedtar@^7.4.3