@embedpdf/core 2.0.0-next.3 → 2.0.0

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.js CHANGED
@@ -772,7 +772,6 @@ class PluginRegistry {
772
772
  this.capabilities = /* @__PURE__ */ new Map();
773
773
  this.status = /* @__PURE__ */ new Map();
774
774
  this.configurations = /* @__PURE__ */ new Map();
775
- this.engineInitialized = false;
776
775
  this.initPromise = null;
777
776
  this.pendingRegistrations = [];
778
777
  this.processingRegistrations = [];
@@ -792,21 +791,6 @@ class PluginRegistry {
792
791
  getLogger() {
793
792
  return this.logger;
794
793
  }
795
- /**
796
- * Ensure engine is initialized before proceeding
797
- */
798
- async ensureEngineInitialized() {
799
- if (this.engineInitialized) {
800
- return;
801
- }
802
- if (this.engine.initialize) {
803
- const task = this.engine.initialize();
804
- await task.toPromise();
805
- this.engineInitialized = true;
806
- } else {
807
- this.engineInitialized = true;
808
- }
809
- }
810
794
  /**
811
795
  * Register a plugin without initializing it
812
796
  */
@@ -879,7 +863,6 @@ class PluginRegistry {
879
863
  }
880
864
  this.isInitializing = true;
881
865
  try {
882
- await this.ensureEngineInitialized();
883
866
  if (this.destroyed) return;
884
867
  while (this.pendingRegistrations.length > 0) {
885
868
  if (this.destroyed) return;