@reactful/create 0.0.80 → 0.0.81
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -62,7 +62,7 @@ const downloadRepo = async (subfolder, destination) =>
|
|
62
62
|
async function downloadGitHub(user, repository, subdir, destination) {
|
63
63
|
const prefix = `https://api.github.com/repos/${user}/${repository}`
|
64
64
|
const response = await fetch(`${prefix}/contents/installation/${subdir}`)
|
65
|
-
const contents = response.json()
|
65
|
+
const contents = await response.json()
|
66
66
|
|
67
67
|
if (!Array.isArray(contents) || !response.ok) {
|
68
68
|
console.error('failed to download scafold from github...')
|