windmill-cli 1.620.0 → 1.620.1
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/esm/gen/core/OpenAPI.js
CHANGED
|
@@ -857,8 +857,7 @@ async function preview(opts, filePath) {
|
|
|
857
857
|
const fil = new File([file.contents], file.path.substring(1));
|
|
858
858
|
tarball.append(fil);
|
|
859
859
|
}
|
|
860
|
-
|
|
861
|
-
bundledContent = btoa(await blob.text());
|
|
860
|
+
bundledContent = await streamToBlob(tarball.stream());
|
|
862
861
|
isTar = true;
|
|
863
862
|
}
|
|
864
863
|
else if (Array.isArray(codebase.assets) && codebase.assets.length > 0) {
|
|
@@ -875,12 +874,12 @@ async function preview(opts, filePath) {
|
|
|
875
874
|
const file = new File([blob], asset.to);
|
|
876
875
|
tarball.append(file);
|
|
877
876
|
}
|
|
878
|
-
|
|
879
|
-
bundledContent = btoa(await blob.text());
|
|
877
|
+
bundledContent = await streamToBlob(tarball.stream());
|
|
880
878
|
isTar = true;
|
|
881
879
|
}
|
|
882
880
|
if (!opts.silent) {
|
|
883
|
-
|
|
881
|
+
const size = typeof bundledContent === "string" ? bundledContent.length : bundledContent.size;
|
|
882
|
+
log.info(`Bundled ${filePath}: ${(size / 1024).toFixed(0)}kB (${(endTime - startTime).toFixed(0)}ms)`);
|
|
884
883
|
}
|
|
885
884
|
}
|
|
886
885
|
}
|
|
@@ -899,7 +898,9 @@ async function preview(opts, filePath) {
|
|
|
899
898
|
format: codebase?.format ?? "cjs",
|
|
900
899
|
};
|
|
901
900
|
form.append("preview", JSON.stringify(previewPayload));
|
|
902
|
-
form.append("file",
|
|
901
|
+
form.append("file", typeof bundledContent === "string"
|
|
902
|
+
? new Blob([bundledContent], { type: "application/javascript" })
|
|
903
|
+
: bundledContent);
|
|
903
904
|
const url = workspace.remote +
|
|
904
905
|
"api/w/" +
|
|
905
906
|
workspace.workspaceId +
|
package/esm/src/main.js
CHANGED
|
@@ -46,7 +46,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
|
|
|
46
46
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
47
47
|
// }
|
|
48
48
|
// });
|
|
49
|
-
export const VERSION = "1.620.
|
|
49
|
+
export const VERSION = "1.620.1";
|
|
50
50
|
// Re-exported from constants.ts to maintain backwards compatibility
|
|
51
51
|
export { WM_FORK_PREFIX } from "./core/constants.js";
|
|
52
52
|
const command = new Command()
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../../src/src/commands/script/script.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAEL,OAAO,EAQR,MAAM,kBAAkB,CAAC;AAW1B,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAMtD,OAAO,EACL,6BAA6B,EAC7B,cAAc,EAGf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAIL,KAAK,EAEN,MAAM,iBAAiB,CAAC;AAQzB,OAAO,EAAE,YAAY,EAAqB,MAAM,yBAAyB,CAAC;AAc1E,MAAM,WAAW,UAAU;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;CAClE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAE/D;AAED;;;GAGG;AACH,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CAO1D;AAuCD,wBAAsB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAiBzE;AA8CD,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,iBA6E5D;AAuED,MAAM,MAAM,UAAU,GAAG,GAAG,CAC1B,6BAA6B,EAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACvB,CAAC;AAwTF,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;oBA4DqB,CAAC;AAEnC,eAAe,OAAO,CAAC"}
|
package/types/src/main.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
|
|
|
22
22
|
import { pull, push } from "./commands/sync/sync.js";
|
|
23
23
|
import { add as workspaceAdd } from "./commands/workspace/workspace.js";
|
|
24
24
|
export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
25
|
-
export declare const VERSION = "1.620.
|
|
25
|
+
export declare const VERSION = "1.620.1";
|
|
26
26
|
export { WM_FORK_PREFIX } from "./core/constants.js";
|
|
27
27
|
declare const command: Command<{
|
|
28
28
|
workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
|