presenter 0.6.5 → 0.7.0
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/dist/export.js +19 -19
- package/dist/export.mjs +2 -2
- package/package.json +1 -1
- package/dist/__vite-browser-external-DYxpcVy9.mjs +0 -4
package/dist/export.mjs
CHANGED
|
@@ -4575,7 +4575,7 @@ function Xt(e) {
|
|
|
4575
4575
|
const A = typeof process < "u" && !!(!((n = process.versions) === null || n === void 0) && n.node) && ((t = process.release) === null || t === void 0 ? void 0 : t.name) === "node";
|
|
4576
4576
|
let a, i;
|
|
4577
4577
|
const s = A ? () => Re(this, void 0, void 0, function* () {
|
|
4578
|
-
({ default: a } = yield import("
|
|
4578
|
+
({ default: a } = yield import("node:fs")), { default: i } = yield import("node:https");
|
|
4579
4579
|
}) : () => Re(this, void 0, void 0, function* () {
|
|
4580
4580
|
});
|
|
4581
4581
|
A && s();
|
|
@@ -5319,7 +5319,7 @@ class pn {
|
|
|
5319
5319
|
typeof n == "string" && (console.warn("[WARNING] writeFile(string) is deprecated - pass { fileName } instead."), n = { fileName: n });
|
|
5320
5320
|
const { fileName: i = "Presentation.pptx", compression: s = !1 } = n, c = i.toLowerCase().endsWith(".pptx") ? i : `${i}.pptx`, l = a ? "nodebuffer" : null, r = yield this.exportPresentation({ compression: s, outputType: l });
|
|
5321
5321
|
if (a) {
|
|
5322
|
-
const { promises: o } = yield import("
|
|
5322
|
+
const { promises: o } = yield import("node:fs"), { writeFile: f } = o;
|
|
5323
5323
|
return yield f(c, r), c;
|
|
5324
5324
|
}
|
|
5325
5325
|
return yield this.writeFileToBrowser(c, r), c;
|
package/package.json
CHANGED