@learnpack/learnpack 5.0.354 → 5.0.355
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 +1 -1
- package/package.json +1 -1
- package/src/commands/serve.ts +1 -1
package/lib/commands/serve.js
CHANGED
|
@@ -4698,7 +4698,7 @@ class ServeCommand extends SessionCommand_1.default {
|
|
|
4698
4698
|
continue;
|
|
4699
4699
|
}
|
|
4700
4700
|
const buffer = buffer_1.Buffer.from(content, "base64");
|
|
4701
|
-
if (isImageFile(item.relativePath)) {
|
|
4701
|
+
if (item.isAsset || isImageFile(item.relativePath)) {
|
|
4702
4702
|
// eslint-disable-next-line no-await-in-loop -- Sequential processing to avoid rate limits
|
|
4703
4703
|
await uploadBinaryToBucket(bucket, buffer, item.bucketPath, "application/octet-stream");
|
|
4704
4704
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learnpack/learnpack",
|
|
3
3
|
"description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.355",
|
|
5
5
|
"author": "Alejandro Sanchez @alesanchezr",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
package/src/commands/serve.ts
CHANGED
|
@@ -6731,7 +6731,7 @@ class ServeCommand extends SessionCommand {
|
|
|
6731
6731
|
|
|
6732
6732
|
const buffer = Buffer.from(content, "base64")
|
|
6733
6733
|
|
|
6734
|
-
if (isImageFile(item.relativePath)) {
|
|
6734
|
+
if (item.isAsset || isImageFile(item.relativePath)) {
|
|
6735
6735
|
// eslint-disable-next-line no-await-in-loop -- Sequential processing to avoid rate limits
|
|
6736
6736
|
await uploadBinaryToBucket(
|
|
6737
6737
|
bucket,
|