c8ctl-plugin-nano 1.13.1 → 1.13.2

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.
Files changed (2) hide show
  1. package/c8ctl-plugin.js +14 -0
  2. package/package.json +8 -8
package/c8ctl-plugin.js CHANGED
@@ -1119,6 +1119,20 @@ function logsCluster(req) {
1119
1119
 
1120
1120
  function controlNode(req, { signal, verb, paused }) {
1121
1121
  const logger = getLogger();
1122
+
1123
+ // pause/resume rely on SIGSTOP/SIGCONT, which are POSIX-only. On Windows
1124
+ // Node throws "Unknown signal: SIGSTOP" from process.kill, so fail fast with
1125
+ // a clear message instead of a raw crash (see nano-bpm#390).
1126
+ if (process.platform === 'win32') {
1127
+ logger.error(
1128
+ `"c8ctl nano ${verb}" isn't supported on Windows yet — it relies on ` +
1129
+ `SIGSTOP/SIGCONT, which Windows doesn't have. To simulate a node ` +
1130
+ `failing and recovering, use "c8ctl nano stop <id>" then ` +
1131
+ `"c8ctl nano start" instead.`,
1132
+ );
1133
+ process.exit(1);
1134
+ }
1135
+
1122
1136
  const state = readState();
1123
1137
 
1124
1138
  if (!state || !Array.isArray(state.nodes) || state.nodes.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c8ctl-plugin-nano",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "type": "module",
5
5
  "description": "c8ctl plugin to start, inspect, and stop a local Nano BPM (nanobpmn) cluster",
6
6
  "main": "c8ctl-plugin.js",
@@ -49,12 +49,12 @@
49
49
  "semantic-release": "^25.0.3"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.13.1",
53
- "@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.13.1",
54
- "@nanobpm/c8ctl-plugin-nano-linux-x64": "1.13.1",
55
- "@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.13.1",
56
- "@nanobpm/c8ctl-plugin-nano-linux-armv7": "1.13.1",
57
- "@nanobpm/c8ctl-plugin-nano-linux-armv6": "1.13.1",
58
- "@nanobpm/c8ctl-plugin-nano-win32-x64": "1.13.1"
52
+ "@nanobpm/c8ctl-plugin-nano-darwin-arm64": "1.13.2",
53
+ "@nanobpm/c8ctl-plugin-nano-darwin-x64": "1.13.2",
54
+ "@nanobpm/c8ctl-plugin-nano-linux-x64": "1.13.2",
55
+ "@nanobpm/c8ctl-plugin-nano-linux-arm64": "1.13.2",
56
+ "@nanobpm/c8ctl-plugin-nano-linux-armv7": "1.13.2",
57
+ "@nanobpm/c8ctl-plugin-nano-linux-armv6": "1.13.2",
58
+ "@nanobpm/c8ctl-plugin-nano-win32-x64": "1.13.2"
59
59
  }
60
60
  }