update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
9
electron/node_modules/app-builder-lib/out/util/repositoryInfo.js
generated
vendored
9
electron/node_modules/app-builder-lib/out/util/repositoryInfo.js
generated
vendored
|
|
@ -1,16 +1,15 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getRepositoryInfo = void 0;
|
||||
const promise_1 = require("builder-util/out/promise");
|
||||
exports.getRepositoryInfo = getRepositoryInfo;
|
||||
const builder_util_1 = require("builder-util");
|
||||
const fs_extra_1 = require("fs-extra");
|
||||
const hosted_git_info_1 = require("hosted-git-info");
|
||||
const path = require("path");
|
||||
function getRepositoryInfo(projectDir, metadata, devMetadata) {
|
||||
return _getInfo(projectDir, (devMetadata == null ? null : devMetadata.repository) || (metadata == null ? null : metadata.repository));
|
||||
}
|
||||
exports.getRepositoryInfo = getRepositoryInfo;
|
||||
async function getGitUrlFromGitConfig(projectDir) {
|
||||
const data = await promise_1.orNullIfFileNotExist(fs_extra_1.readFile(path.join(projectDir, ".git", "config"), "utf8"));
|
||||
const data = await (0, builder_util_1.orNullIfFileNotExist)((0, fs_extra_1.readFile)(path.join(projectDir, ".git", "config"), "utf8"));
|
||||
if (data == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
@ -51,7 +50,7 @@ async function _getInfo(projectDir, repo) {
|
|||
return url == null ? null : parseRepositoryUrl(url);
|
||||
}
|
||||
function parseRepositoryUrl(url) {
|
||||
const info = hosted_git_info_1.fromUrl(url);
|
||||
const info = (0, hosted_git_info_1.fromUrl)(url);
|
||||
if (info == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue