@reactful/create 0.0.75 → 0.0.77

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -64,10 +64,10 @@ 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 (!Array.isArray(contents) || !response.ok) {
67
+ if (!response.ok) {
68
68
  console.error('failed to download scafold from github...')
69
- console.log('response: ', response.statusText)
70
- console.log('type: ', typeof contents)
69
+ console.log('array: ', Array.isArray(contents))
70
+ console.log('code: ', response.status)
71
71
  console.log('url: ', response.url)
72
72
  }
73
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactful/create",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "description": "reactful scafold tool",