@tinacms/cli 1.5.16 → 1.5.17
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/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
31
31
|
var import_clipanion7 = require("clipanion");
|
|
32
32
|
|
|
33
33
|
// package.json
|
|
34
|
-
var version = "1.5.
|
|
34
|
+
var version = "1.5.17";
|
|
35
35
|
|
|
36
36
|
// src/next/commands/dev-command/index.ts
|
|
37
37
|
var import_clipanion2 = require("clipanion");
|
|
@@ -922,7 +922,7 @@ var createMediaRouter = (config3) => {
|
|
|
922
922
|
const bb = (0, import_busboy.default)({ headers: req.headers });
|
|
923
923
|
bb.on("file", async (_name, file, _info) => {
|
|
924
924
|
var _a;
|
|
925
|
-
const fullPath = (_a = req.url) == null ? void 0 : _a.slice("/media/upload/".length);
|
|
925
|
+
const fullPath = decodeURI((_a = req.url) == null ? void 0 : _a.slice("/media/upload/".length));
|
|
926
926
|
const saveTo = import_path4.default.join(mediaFolder, ...fullPath.split("/"));
|
|
927
927
|
await import_fs_extra2.default.ensureDir(import_path4.default.dirname(saveTo));
|
|
928
928
|
file.pipe(import_fs_extra2.default.createWriteStream(saveTo));
|
|
@@ -1775,7 +1775,10 @@ var BaseCommand = class extends import_clipanion.Command {
|
|
|
1775
1775
|
process.on("SIGINT", exitHandler);
|
|
1776
1776
|
process.on("SIGUSR1", exitHandler);
|
|
1777
1777
|
process.on("SIGUSR2", exitHandler);
|
|
1778
|
-
process.on("uncaughtException",
|
|
1778
|
+
process.on("uncaughtException", (error) => {
|
|
1779
|
+
logger.error(`Uncaught exception ${error.name}`);
|
|
1780
|
+
console.error(error);
|
|
1781
|
+
});
|
|
1779
1782
|
}
|
|
1780
1783
|
logDeprecationWarnings() {
|
|
1781
1784
|
if (this.isomorphicGitBridge) {
|