whet 0.5.0 → 0.5.1
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/bin/whet/ConfigStore.js +6 -8
- package/bin/whet/Whet.js +1 -1
- package/package.json +1 -1
package/bin/whet/ConfigStore.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {Router} from "./route/Router.js"
|
|
2
1
|
import {Utils} from "./Utils.js"
|
|
3
|
-
import {Stone} from "./Stone.js"
|
|
4
2
|
import * as Path from "path"
|
|
5
3
|
import {Register} from "../genes/Register.js"
|
|
6
4
|
import * as Fs from "fs"
|
|
@@ -250,16 +248,16 @@ class ConfigStore extends Register.inherits() {
|
|
|
250
248
|
if (val == null) {
|
|
251
249
|
return true;
|
|
252
250
|
};
|
|
253
|
-
if (
|
|
251
|
+
if (typeof val === "function") {
|
|
254
252
|
return false;
|
|
255
253
|
};
|
|
256
|
-
if (
|
|
257
|
-
return
|
|
254
|
+
if (typeof val !== "object") {
|
|
255
|
+
return true;
|
|
258
256
|
};
|
|
259
|
-
if (
|
|
260
|
-
return
|
|
257
|
+
if (((val) instanceof Array)) {
|
|
258
|
+
return true;
|
|
261
259
|
};
|
|
262
|
-
return
|
|
260
|
+
return (Object.getPrototypeOf(val) === null || Object.getPrototypeOf(val) === Object.prototype);
|
|
263
261
|
}
|
|
264
262
|
static deepClone(val) {
|
|
265
263
|
if (val == null) {
|
package/bin/whet/Whet.js
CHANGED
|
@@ -26,7 +26,7 @@ class Whet_Fields_ {
|
|
|
26
26
|
if (entryUrl != thisUrl) {
|
|
27
27
|
return;
|
|
28
28
|
};
|
|
29
|
-
Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.5.
|
|
29
|
+
Whet_Fields_.program.enablePositionalOptions().passThroughOptions().description("Project tooling.").usage("[options] [command] [+ [command]...]").version("0.5.1", "-v, --version").allowUnknownOption(true).allowExcessArguments(true).showSuggestionAfterError(true).option("-p, --project <file>", "project to run", "Project.mjs").option("-l, --log-level <level>", "log level, a string/number", "info").option("--no-pretty", "disable pretty logging").option("--profile <format>", "enable profiling, export to whet-profile.json on exit (format: json or trace, default: json)").exitOverride();
|
|
30
30
|
try {
|
|
31
31
|
Whet_Fields_.program.parse();
|
|
32
32
|
}catch (_g) {
|
package/package.json
CHANGED