@lob-ox/core-darwin-x64 0.0.4 → 0.0.5
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/core.cjs +19 -2
- package/package.json +1 -1
package/core.cjs
CHANGED
|
@@ -1169,10 +1169,19 @@ var require_config = __commonJS({
|
|
|
1169
1169
|
return out;
|
|
1170
1170
|
}
|
|
1171
1171
|
var DEFAULTS = buildDefaults2(null);
|
|
1172
|
+
var DEPRECATED_API_PORTS = [36360];
|
|
1173
|
+
function isDeprecatedApiPort(v) {
|
|
1174
|
+
const n = Number(v);
|
|
1175
|
+
return Number.isInteger(n) && DEPRECATED_API_PORTS.includes(n);
|
|
1176
|
+
}
|
|
1172
1177
|
function normalize(raw, ext) {
|
|
1173
1178
|
const extension = normalizeExtension(ext);
|
|
1174
1179
|
const provided = raw || {};
|
|
1175
1180
|
const cfg = Object.assign(buildDefaults2(extension), provided);
|
|
1181
|
+
if (isDeprecatedApiPort(provided.apiPort)) {
|
|
1182
|
+
cfg.apiPort = BASE_DEFAULTS.apiPort;
|
|
1183
|
+
cfg.__deprecatedOverridden = ["apiPort"];
|
|
1184
|
+
}
|
|
1176
1185
|
cfg.stateFile = expandHome(cfg.stateFile);
|
|
1177
1186
|
cfg.logFile = expandHome(cfg.logFile);
|
|
1178
1187
|
cfg.supervisorLogFile = expandHome(cfg.supervisorLogFile);
|
|
@@ -1220,7 +1229,15 @@ var require_config = __commonJS({
|
|
|
1220
1229
|
}
|
|
1221
1230
|
return null;
|
|
1222
1231
|
}
|
|
1223
|
-
module2.exports = {
|
|
1232
|
+
module2.exports = {
|
|
1233
|
+
DEFAULTS,
|
|
1234
|
+
BASE_DEFAULTS,
|
|
1235
|
+
buildDefaults: buildDefaults2,
|
|
1236
|
+
normalize,
|
|
1237
|
+
extractPortFromCommand,
|
|
1238
|
+
DEPRECATED_API_PORTS,
|
|
1239
|
+
isDeprecatedApiPort
|
|
1240
|
+
};
|
|
1224
1241
|
}
|
|
1225
1242
|
});
|
|
1226
1243
|
|
|
@@ -1263,7 +1280,7 @@ var require_version = __commonJS({
|
|
|
1263
1280
|
var fs2 = require("node:fs");
|
|
1264
1281
|
var path2 = require("node:path");
|
|
1265
1282
|
function guardVersion() {
|
|
1266
|
-
if (true) return String("0.0.
|
|
1283
|
+
if (true) return String("0.0.5");
|
|
1267
1284
|
try {
|
|
1268
1285
|
return JSON.parse(fs2.readFileSync(path2.join(__dirname, "..", "..", "package.json"), "utf8")).version || "unknown";
|
|
1269
1286
|
} catch {
|