@reactful/create 0.0.66 → 0.0.68
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -61,11 +61,12 @@ const downloadRepo = async (subfolder, destination) =>
|
|
61
61
|
downloadGitHub('jsenaribeiro', 'reactful', subfolder, destination)
|
62
62
|
|
63
63
|
async function downloadGitHub(user, repository, subfolder, destination) {
|
64
|
-
const
|
64
|
+
const prefix = `https://api.github.com/repos/${user}/${repository}`
|
65
|
+
const url = `${prefix}/contents/installation/${subfolder}`
|
65
66
|
const content = await fetch(url).then(x => x.json())
|
66
67
|
|
67
68
|
console.log('- url', url)
|
68
|
-
console.log('- res', JSON.stringify(
|
69
|
+
console.log('- res', JSON.stringify(content))
|
69
70
|
|
70
71
|
for (const item of content) {
|
71
72
|
if (item.type != 'file') continue
|