@reactful/create 0.0.79 → 0.0.81
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -62,11 +62,11 @@ 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...')
|
69
|
-
console.log('textual: ',
|
69
|
+
console.log('textual: ', JSON.stringify(contents))
|
70
70
|
console.log('array: ', Array.isArray(contents))
|
71
71
|
console.log('code: ', response.status)
|
72
72
|
console.log('url: ', response.url)
|