src/utils/data.js
// This saves meta to the github repo
This saves meta to the github repo
This saves meta to the github repo
async function saveMetaFromRepo(token, meta) {
  meta.tileInfo = JSON.stringify(meta.tileInfo)
  let response = await oK.writeFile(
    token,
    dataConfig.metaDirectory + '/' + meta.file + '.json',
    base64.encode(utf8.encode(JSON.stringify(meta, null, 2))),
    'Updated meta'
  )
  return response
}
async function saveMetaFromRepo ( token , meta ) { meta . tileInfo = JSON . stringify ( meta . tileInfo ) let response = await oK . writeFile ( token , dataConfig . metaDirectory + '/' + meta . file + '.json' , base64 . encode ( utf8 . encode ( JSON . stringify ( meta , null , 2 ) ) ) , 'Updated meta' ) return response }
This saves meta to the github repo
This saves meta to the github repo
// Package tileInfo as a string