@hominis/fireforge 0.18.5 → 0.18.6

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.
@@ -66,10 +66,15 @@ function formatValue(value) {
66
66
  if (value === undefined) {
67
67
  return '(not set)';
68
68
  }
69
- if (value === null || typeof value === 'object' || typeof value === 'function') {
70
- return JSON.stringify(value, null, 2);
69
+ if (typeof value === 'string')
70
+ return value;
71
+ if (typeof value === 'number' || typeof value === 'boolean' || typeof value === 'bigint') {
72
+ return String(value);
73
+ }
74
+ if (typeof value === 'symbol') {
75
+ return value.toString();
71
76
  }
72
- return String(value);
77
+ return JSON.stringify(value, null, 2);
73
78
  }
74
79
  /**
75
80
  * Runs the config command to get or set configuration values.
@@ -70,9 +70,7 @@ function isInsideDOMContentLoaded(ancestors, content) {
70
70
  call.callee.property.type === 'Identifier' &&
71
71
  call.callee.property.name === 'addEventListener') {
72
72
  const firstArg = call.arguments[0];
73
- if (firstArg &&
74
- firstArg.type === 'Literal' &&
75
- firstArg.value === 'DOMContentLoaded') {
73
+ if (firstArg && firstArg.type === 'Literal' && firstArg.value === 'DOMContentLoaded') {
76
74
  return true;
77
75
  }
78
76
  // Check if "DOMContentLoaded" appears in the call's source (handles edge cases)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hominis/fireforge",
3
- "version": "0.18.5",
3
+ "version": "0.18.6",
4
4
  "description": "FireForge — a build tool for customizing Firefox",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",