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.
@@ -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 (((val) instanceof Stone)) {
251
+ if (typeof val === "function") {
254
252
  return false;
255
253
  };
256
- if (((val) instanceof Router)) {
257
- return false;
254
+ if (typeof val !== "object") {
255
+ return true;
258
256
  };
259
- if (typeof val === "function") {
260
- return false;
257
+ if (((val) instanceof Array)) {
258
+ return true;
261
259
  };
262
- return true;
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.0", "-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();
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whet",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "NodeJS based assets management and project tooling library.",
5
5
  "scripts": {
6
6
  "devinit": "npx dts2hx commander pino-pretty minimatch --modular --noLibWrap",