@learnpack/learnpack 5.0.244 → 5.0.250

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/ui/app.tar.gz CHANGED
Binary file
package/src/utils/api.ts CHANGED
@@ -536,7 +536,7 @@ const updateRigoAssetID = async (
536
536
  ) => {
537
537
  const url = `${RIGOBOT_HOST}/v1/learnpack/package/${slug}/`
538
538
  const headers = {
539
- Authorization: `Token ${token}`,
539
+ Authorization: `Token ${token.trim()}`,
540
540
  }
541
541
  try {
542
542
  const response = await axios.put(url, { asset_id }, { headers })
@@ -627,8 +627,6 @@ async function updateTechnologiesPeriodically() {
627
627
  }
628
628
  }
629
629
 
630
- updateTechnologiesPeriodically()
631
-
632
630
  export const getCurrentTechnologies = () => technologiesCache
633
631
 
634
632
  export default {
@@ -649,4 +647,5 @@ export default {
649
647
  updateRigoAssetID,
650
648
  createRigoPackage,
651
649
  getCurrentTechnologies,
650
+ updateTechnologiesPeriodically,
652
651
  }