@oxog/devinspector 1.5.0 → 1.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/dist/index.cjs CHANGED
@@ -471,9 +471,10 @@ var init_xhr_interceptor = __esm({
471
471
  install() {
472
472
  if (this.installed || typeof XMLHttpRequest === "undefined") return;
473
473
  const self = this;
474
- XMLHttpRequest.prototype.open = function(method, url, async = true, username, password) {
474
+ XMLHttpRequest.prototype.open = function(...args) {
475
475
  var _a;
476
- const result = self.originalOpen.apply(this, [method, url, async, username, password]);
476
+ const result = self.originalOpen.apply(this, args);
477
+ const [method, url] = args;
477
478
  (_a = this._devinspectorCancel) == null ? void 0 : _a.call(this);
478
479
  this._devinspectorId = generateId();
479
480
  this._devinspectorMethod = method;
@@ -4287,7 +4288,7 @@ var BasePlugin = class {
4287
4288
  };
4288
4289
 
4289
4290
  // src/version.ts
4290
- var VERSION = "1.5.0";
4291
+ var VERSION = "1.5.1";
4291
4292
 
4292
4293
  // src/enhanced-simple.ts
4293
4294
  var CONSOLE_METHODS = ["log", "info", "warn", "error", "debug"];
@@ -4536,7 +4537,7 @@ var _EnhancedDevInspector = class _EnhancedDevInspector {
4536
4537
  minimize() {
4537
4538
  if (!this.isEnabled) return;
4538
4539
  this.isMinimized = !this.isMinimized;
4539
- if (this.panel) this.panel.style.height = this.isMinimized ? "48px" : "650px";
4540
+ if (this.panel) this.panel.style.height = this.isMinimized ? "auto" : "650px";
4540
4541
  this.render();
4541
4542
  this.events.emit("inspector:minimize", this.isMinimized);
4542
4543
  }