miqro 6.2.3 → 6.2.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/build/esm/src/common/arguments.js +25 -15
- package/build/esm/src/inflate/setup-http.js +327 -324
- package/build/lib.cjs +305 -302
- package/package.json +1 -1
- package/src/common/arguments.ts +23 -15
- package/src/inflate/setup-http.ts +341 -338
package/package.json
CHANGED
package/src/common/arguments.ts
CHANGED
|
@@ -187,13 +187,14 @@ export function parseArguments(): Arguments {
|
|
|
187
187
|
console.error(usage);
|
|
188
188
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
if (typeof cPath !== "string") {
|
|
190
|
+
if (typeof args[i + 1] !== "string") {
|
|
192
191
|
console.error("bad arguments. --config must be a string.");
|
|
193
192
|
console.error(usage);
|
|
194
193
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
194
|
+
} else {
|
|
195
|
+
const cPath = String(args[i + 1]) as any;
|
|
196
|
+
flags.miqroJSONPath = cPath;
|
|
195
197
|
}
|
|
196
|
-
flags.miqroJSONPath = cPath;
|
|
197
198
|
i++;
|
|
198
199
|
continue;
|
|
199
200
|
case "--install-tsconfig":
|
|
@@ -271,13 +272,14 @@ export function parseArguments(): Arguments {
|
|
|
271
272
|
console.error(usage);
|
|
272
273
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
273
274
|
}
|
|
274
|
-
|
|
275
|
-
if (typeof cPort !== "string") {
|
|
275
|
+
if (typeof args[i + 1] !== "string") {
|
|
276
276
|
console.error("bad arguments. --port must be a string.");
|
|
277
277
|
console.error(usage);
|
|
278
278
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
279
|
+
} else {
|
|
280
|
+
const cPort = String(args[i + 1]) as any;
|
|
281
|
+
flags.port = cPort;
|
|
279
282
|
}
|
|
280
|
-
flags.port = cPort;
|
|
281
283
|
i++;
|
|
282
284
|
continue;
|
|
283
285
|
case "--name":
|
|
@@ -286,13 +288,15 @@ export function parseArguments(): Arguments {
|
|
|
286
288
|
console.error(usage);
|
|
287
289
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
288
290
|
}
|
|
289
|
-
|
|
290
|
-
if (typeof cName !== "string") {
|
|
291
|
+
if (typeof args[i + 1] !== "string") {
|
|
291
292
|
console.error("bad arguments. --port must be a string.");
|
|
292
293
|
console.error(usage);
|
|
293
294
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
295
|
+
} else {
|
|
296
|
+
const cName = String(args[i + 1]).toUpperCase() as any;
|
|
297
|
+
flags.name = cName;
|
|
294
298
|
}
|
|
295
|
-
|
|
299
|
+
|
|
296
300
|
i++;
|
|
297
301
|
continue;
|
|
298
302
|
case "--log-file":
|
|
@@ -301,13 +305,15 @@ export function parseArguments(): Arguments {
|
|
|
301
305
|
console.error(usage);
|
|
302
306
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
303
307
|
}
|
|
304
|
-
|
|
305
|
-
if (typeof
|
|
308
|
+
|
|
309
|
+
if (typeof args[i + 1] !== "string") {
|
|
306
310
|
console.error("bad arguments. --port must be a string.");
|
|
307
311
|
console.error(usage);
|
|
308
312
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
313
|
+
} else {
|
|
314
|
+
const cLofFile = String(args[i + 1]) as any;
|
|
315
|
+
flags.logFile = cLofFile;
|
|
309
316
|
}
|
|
310
|
-
flags.logFile = cLofFile;
|
|
311
317
|
i++;
|
|
312
318
|
continue;
|
|
313
319
|
case "--browser":
|
|
@@ -316,13 +322,15 @@ export function parseArguments(): Arguments {
|
|
|
316
322
|
console.error(usage);
|
|
317
323
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
318
324
|
}
|
|
319
|
-
|
|
320
|
-
if (typeof
|
|
325
|
+
|
|
326
|
+
if (typeof args[i + 1] !== "string") {
|
|
321
327
|
console.error("bad arguments. --port must be a string.");
|
|
322
328
|
console.error(usage);
|
|
323
329
|
process.exit(EXIT_CODES.BAD_ARGUMENTS);
|
|
330
|
+
} else {
|
|
331
|
+
const cBrowser = String(args[i + 1]) as any;
|
|
332
|
+
flags.browser = cBrowser;
|
|
324
333
|
}
|
|
325
|
-
flags.browser = cBrowser;
|
|
326
334
|
i++;
|
|
327
335
|
continue;
|
|
328
336
|
case "--generate-doc":
|