@saidulbadhon/jssm-cli 1.9.5 → 1.9.7
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 +15 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5012,6 +5012,7 @@ async function pushCommand2(args2) {
|
|
|
5012
5012
|
let updatedFilesCount = 0;
|
|
5013
5013
|
let newFilesCount = 0;
|
|
5014
5014
|
let deletedFilesCount = 0;
|
|
5015
|
+
let deletionEndpointUnavailable = false;
|
|
5015
5016
|
let totalChangedLines = 0;
|
|
5016
5017
|
for (const file of selectedFiles) {
|
|
5017
5018
|
let fileContent = "";
|
|
@@ -5132,6 +5133,19 @@ async function pushCommand2(args2) {
|
|
|
5132
5133
|
}
|
|
5133
5134
|
} catch (error) {
|
|
5134
5135
|
const message = error instanceof Error ? error.message : String(error);
|
|
5136
|
+
if (message.includes("HTTP 404")) {
|
|
5137
|
+
if (!deletionEndpointUnavailable) {
|
|
5138
|
+
console.error(
|
|
5139
|
+
"\u274C Deletion sync is not supported by this server (missing /files/delete endpoint)."
|
|
5140
|
+
);
|
|
5141
|
+
console.error(
|
|
5142
|
+
" \u{1F4A1} Upgrade/redeploy the backend with the latest files route changes, then run jssm push again."
|
|
5143
|
+
);
|
|
5144
|
+
deletionEndpointUnavailable = true;
|
|
5145
|
+
failCount++;
|
|
5146
|
+
}
|
|
5147
|
+
break;
|
|
5148
|
+
}
|
|
5135
5149
|
console.error(`\u274C ${remoteFile}: Failed to delete - ${message}`);
|
|
5136
5150
|
failCount++;
|
|
5137
5151
|
}
|
|
@@ -6027,7 +6041,7 @@ ${import_chalk.default.bold("Usage in Docker:")}
|
|
|
6027
6041
|
|
|
6028
6042
|
// src/utils/versionCheck.ts
|
|
6029
6043
|
var PACKAGE_NAME = "@saidulbadhon/jssm-cli";
|
|
6030
|
-
var CURRENT_VERSION = "1.9.
|
|
6044
|
+
var CURRENT_VERSION = "1.9.7";
|
|
6031
6045
|
async function getLatestVersion() {
|
|
6032
6046
|
try {
|
|
6033
6047
|
const response = await fetch(`https://registry.npmjs.org/${PACKAGE_NAME}`);
|