dazscript-framework 1.0.19 → 1.0.21

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/README.md CHANGED
@@ -175,7 +175,7 @@ npx dazscript init --menu-path /MyScripts --scripts-path ./src --out-dir ./out -
175
175
  | `--out-dir` | Where `build` writes `.dsa` files and copies icons |
176
176
  | `--app-data-path` | AppData namespace for launcher fallback (`Author/Product` format) |
177
177
 
178
- Builds also accept `--log-level <trace|debug|info|warn|error|off>`. This sets the minimum runtime log level for the compiled scripts. Use `debug` or `trace` during development and `warn` for release packages.
178
+ Builds also accept `--log-level <trace|debug|info|warn|error|off>`. This sets the minimum runtime log level for the compiled scripts. When omitted, builds default to `debug`; use `warn` for release packages.
179
179
 
180
180
  Use `--scripts-path ./src/scripts` when runnable files live under a subfolder; use `--scripts-path ./src` when they are at the source root.
181
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dazscript-framework",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "author": "Freddy Diaz",
5
5
  "license": "MPL-2.0",
6
6
  "description": "",
@@ -42,4 +42,12 @@ describe('log levels', () => {
42
42
  expect(getLogLevel()).toBe('debug')
43
43
  expect(shouldLog('debug')).toBe(true)
44
44
  })
45
+
46
+ it('normalizes an empty build level to debug', () => {
47
+ setLogLevel('')
48
+
49
+ expect(getLogLevel()).toBe('debug')
50
+ expect(shouldLog('debug')).toBe(true)
51
+ expect(shouldLog('trace')).toBe(false)
52
+ })
45
53
  })