Update basaltPackageManager.lua
This commit is contained in:
@@ -1062,7 +1062,7 @@ local animTime = 0.2
|
|||||||
local animFrames = 8
|
local animFrames = 8
|
||||||
|
|
||||||
local function download(url, file)
|
local function download(url, file)
|
||||||
local httpReq = http.get(url, _G._GIT_API_KEY and {Authorization = token.." ".._G._GIT_API_KEY})
|
local httpReq = http.get(url, _G._GIT_API_KEY and {Authorization = "token ".._G._GIT_API_KEY})
|
||||||
if(httpReq~=nil)then
|
if(httpReq~=nil)then
|
||||||
local content = httpReq.readAll()
|
local content = httpReq.readAll()
|
||||||
if not content then
|
if not content then
|
||||||
@@ -1076,7 +1076,7 @@ end
|
|||||||
|
|
||||||
local function createTree(page)
|
local function createTree(page)
|
||||||
local tree = {}
|
local tree = {}
|
||||||
local request = http.get(page, _G._GIT_API_KEY and {Authorization = basaltGithubToken.." ".._G._GIT_API_KEY})
|
local request = http.get(page, _G._GIT_API_KEY and {Authorization = "token ".._G._GIT_API_KEY})
|
||||||
if not(request)then return end
|
if not(request)then return end
|
||||||
for k,v in pairs(textutils.unserialiseJSON(request.readAll()).tree)do
|
for k,v in pairs(textutils.unserialiseJSON(request.readAll()).tree)do
|
||||||
if(v.type=="blob")then
|
if(v.type=="blob")then
|
||||||
|
|||||||
Reference in New Issue
Block a user