@reactful/create 0.0.78 → 0.0.79
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
@@ -64,7 +64,7 @@ async function downloadGitHub(user, repository, subdir, destination) {
|
|
64
64
|
const response = await fetch(`${prefix}/contents/installation/${subdir}`)
|
65
65
|
const contents = response.json()
|
66
66
|
|
67
|
-
if (!response.ok) {
|
67
|
+
if (!Array.isArray(contents) || !response.ok) {
|
68
68
|
console.error('failed to download scafold from github...')
|
69
69
|
console.log('textual: ', await response.text())
|
70
70
|
console.log('array: ', Array.isArray(contents))
|