@crimsonsunset/jsg-logger 1.5.3 → 1.5.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.
Files changed (2) hide show
  1. package/index.js +11 -0
  2. package/package.json +4 -9
package/index.js CHANGED
@@ -42,9 +42,20 @@ class JSGLogger {
42
42
  // First time initialization
43
43
  JSGLogger._instance = new JSGLogger();
44
44
  JSGLogger._enhancedLoggers = await JSGLogger._instance.init(options);
45
+
46
+ // Make runtime controls available globally in browser for debugging
47
+ if (isBrowser() && typeof window !== 'undefined' && JSGLogger._enhancedLoggers?.controls) {
48
+ window.JSG_Logger = JSGLogger._enhancedLoggers.controls;
49
+ }
45
50
  } else if (hasOptions) {
46
51
  // Instance exists but new options provided - reinitialize
47
52
  JSGLogger._enhancedLoggers = await JSGLogger._instance.init(options);
53
+
54
+ // Make runtime controls available globally in browser for debugging
55
+ // (same as getInstanceSync behavior)
56
+ if (isBrowser() && typeof window !== 'undefined' && JSGLogger._enhancedLoggers?.controls) {
57
+ window.JSG_Logger = JSGLogger._enhancedLoggers.controls;
58
+ }
48
59
  }
49
60
 
50
61
  return JSGLogger._enhancedLoggers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crimsonsunset/jsg-logger",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "type": "module",
5
5
  "description": "Multi-environment logger with smart detection, file-level overrides, and beautiful console formatting. Test it live: https://logger.joesangiorgio.com/",
6
6
  "main": "index.js",
@@ -87,16 +87,11 @@
87
87
  "build:devtools": "cd devtools && npm run build",
88
88
  "build:devtools:netlify": "npm install && cd devtools && npm install && npm run build:netlify",
89
89
  "preview:devtools": "cd devtools && npm run preview",
90
- "release:patch": "npm version patch && npm publish --access public",
91
- "release:minor": "npm version minor && npm publish --access public",
92
- "release:major": "npm version major && npm publish --access public",
93
- "release": "npm run release:patch",
90
+ "release:patch": "node scripts/release.js patch",
91
+ "release:minor": "node scripts/release.js minor",
92
+ "release:major": "node scripts/release.js major",
94
93
  "publish:public": "npm publish --access public",
95
94
  "publish:github": "npm publish --registry=https://npm.pkg.github.com/ --access public",
96
- "publish:dual": "npm publish --access public && npm publish --registry=https://npm.pkg.github.com/ --access public",
97
- "release:dual:patch": "npm version patch && npm run publish:dual",
98
- "release:dual:minor": "npm version minor && npm run publish:dual",
99
- "release:dual:major": "npm version major && npm run publish:dual",
100
95
  "check": "npm run test && echo 'Package ready for publishing'"
101
96
  }
102
97
  }