mirror of
https://github.com/pomber/git-history.git
synced 2024-11-22 14:02:24 +03:00
Fix build
This commit is contained in:
parent
d5bee400a9
commit
5ba772d853
@ -4,7 +4,7 @@
|
||||
"repository": "pomber/git-history",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@craco/craco": "^3.4.1",
|
||||
"@craco/craco": "^3.5.0",
|
||||
"diff": "^4.0.1",
|
||||
"js-base64": "^2.5.1",
|
||||
"netlify-auth-providers": "^1.0.0-alpha5",
|
||||
@ -18,7 +18,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"start": "craco start",
|
||||
"build": "react-scripts build",
|
||||
"build": "craco build",
|
||||
"format": "prettier --write \"**/*.{js,jsx,md,json,html,css,yml}\" --ignore-path .gitignore",
|
||||
"test-prettier": "prettier --check \"**/*.{js,jsx,md,json,html,css,yml}\" --ignore-path .gitignore",
|
||||
"test-cra": "react-scripts test",
|
||||
|
@ -60,7 +60,7 @@ async function getContent(repo, sha, path, token) {
|
||||
if (!contentResponse.ok) {
|
||||
throw {
|
||||
status: contentResponse.status,
|
||||
body: contentJson
|
||||
body: await contentResponse.json()
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,8 @@ async function getContent(repo, sha, path, token) {
|
||||
return { content: "" };
|
||||
}
|
||||
|
||||
const contentJson = await contentResponse.json();
|
||||
|
||||
if (!contentResponse.ok) {
|
||||
throw {
|
||||
status: contentResponse.status,
|
||||
@ -64,7 +66,6 @@ async function getContent(repo, sha, path, token) {
|
||||
};
|
||||
}
|
||||
|
||||
const contentJson = await contentResponse.json();
|
||||
const content = Base64.decode(contentJson.content);
|
||||
return { content, url: contentJson.html_url };
|
||||
}
|
||||
|
@ -57,6 +57,8 @@ async function getContent(repo, sha, path, token) {
|
||||
return { content: "" };
|
||||
}
|
||||
|
||||
const contentJson = await contentResponse.json();
|
||||
|
||||
if (!contentResponse.ok) {
|
||||
throw {
|
||||
status: contentResponse.status,
|
||||
@ -64,7 +66,6 @@ async function getContent(repo, sha, path, token) {
|
||||
};
|
||||
}
|
||||
|
||||
const contentJson = await contentResponse.json();
|
||||
const content = Base64.decode(contentJson.content);
|
||||
return { content };
|
||||
}
|
||||
|
@ -865,10 +865,10 @@
|
||||
lodash "^4.17.10"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@craco/craco@^3.4.1":
|
||||
version "3.4.1"
|
||||
resolved "https://registry.yarnpkg.com/@craco/craco/-/craco-3.4.1.tgz#a65e29d7cb661e09e68269ba09ade39d174ec359"
|
||||
integrity sha512-PVuDx5iLzoYeFrjNUVbblQCGzFyw/DoBBHFI4+JlSCvgEkp07jbBm5fe+z/MqzYJUQm1bFbxe6qbQWI5LFl6XA==
|
||||
"@craco/craco@^3.5.0":
|
||||
version "3.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@craco/craco/-/craco-3.5.0.tgz#698e9f808e4fc5723345a38d8b505a465d885234"
|
||||
integrity sha512-peQtKgJawPGq5D8qqW2oxkSzCp1wwWL7H8G98Run3UxF5fVJjJLIcnxoRKvXFmrMQYuKBOOsO54ApEeJdTzC0Q==
|
||||
dependencies:
|
||||
cross-spawn "6.0.5"
|
||||
lodash.mergewith "4.6.1"
|
||||
|
Loading…
Reference in New Issue
Block a user