@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/lib/commands/serve.js +4 -9
- package/lib/creatorDist/assets/{index-BWHp9KF3.js → index-CZYzWk3G.js} +1094 -1100
- package/lib/creatorDist/index.html +1 -1
- package/lib/utils/api.d.ts +2 -0
- package/lib/utils/api.js +2 -2
- package/package.json +1 -1
- package/src/commands/serve.ts +5 -10
- package/src/creator/src/components/syllabus/SyllabusEditor.tsx +2 -4
- package/src/creator/src/utils/rigo.ts +3 -2
- package/src/creatorDist/assets/{index-BWHp9KF3.js → index-CZYzWk3G.js} +1094 -1100
- package/src/creatorDist/index.html +1 -1
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +347 -347
- package/src/ui/app.tar.gz +0 -0
- package/src/utils/api.ts +2 -3
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
|
}
|