@learnpack/learnpack 5.0.130 → 5.0.134

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.
@@ -10,7 +10,7 @@
10
10
  />
11
11
 
12
12
  <title>Learnpack Creator: Craft tutorials in seconds!</title>
13
- <script type="module" crossorigin src="/creator/assets/index-wpTTgviz.js"></script>
13
+ <script type="module" crossorigin src="/creator/assets/index-D-toUNNO.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/creator/assets/index-1sKQbOKY.css">
15
15
  </head>
16
16
  <body>
@@ -1,24 +1,24 @@
1
- import { Bucket } from "@google-cloud/storage"
2
- import { Storage } from "@google-cloud/storage"
3
- import * as path from "path"
4
-
5
- /**
6
- * Sube contenido de texto directamente a un bucket de GCS.
7
- * @param bucket Instancia de Bucket
8
- * @param destination Ruta destino dentro del bucket (incluye carpeta/nombre)
9
- * @param textContent Contenido textual a subir
10
- */
11
- export async function uploadTextToBucket(
12
- bucket: Bucket,
13
- destination: string,
14
- textContent: string
15
- ): Promise<void> {
16
- const file = bucket.file(destination)
17
-
18
- await file.save(textContent, {
19
- resumable: false,
20
- contentType: "text/plain",
21
- })
22
-
23
- console.log(`✅ Texto subido a gs://${bucket.name}/${destination}`)
24
- }
1
+ import { Bucket } from "@google-cloud/storage"
2
+ import { Storage } from "@google-cloud/storage"
3
+ import * as path from "path"
4
+
5
+ /**
6
+ * Sube contenido de texto directamente a un bucket de GCS.
7
+ * @param bucket Instancia de Bucket
8
+ * @param destination Ruta destino dentro del bucket (incluye carpeta/nombre)
9
+ * @param textContent Contenido textual a subir
10
+ */
11
+ export async function uploadTextToBucket(
12
+ bucket: Bucket,
13
+ destination: string,
14
+ textContent: string
15
+ ): Promise<void> {
16
+ const file = bucket.file(destination)
17
+
18
+ await file.save(textContent, {
19
+ resumable: false,
20
+ contentType: "text/plain",
21
+ })
22
+
23
+ console.log(`✅ Texto subido a gs://${bucket.name}/${destination}`)
24
+ }