@elliemae/microfe-common 2.29.2 → 2.31.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.
@@ -1,7 +1,4 @@
1
1
  {
2
2
  "type": "commonjs",
3
- "sideEffects": false,
4
- "publishConfig": {
5
- "access": "public"
6
- }
3
+ "sideEffects": false
7
4
  }
@@ -236,6 +236,12 @@ class Remoting {
236
236
  this.#initializedWindow = null;
237
237
  }
238
238
  this.#stopResponseMonitor();
239
+ this.#invocations.forEach(({ reject }) => {
240
+ reject(new Error("Remoting closed"));
241
+ });
242
+ this.#invocations.clear();
243
+ this.#listeners.clear();
244
+ this.#allowedSenders.clear();
239
245
  this.#logger.debug(`closed remoting id: ${this.#correlationId}`);
240
246
  };
241
247
  /**
@@ -1,7 +1,4 @@
1
1
  {
2
2
  "type": "module",
3
- "sideEffects": false,
4
- "publishConfig": {
5
- "access": "public"
6
- }
3
+ "sideEffects": false
7
4
  }
@@ -212,6 +212,12 @@ class Remoting {
212
212
  this.#initializedWindow = null;
213
213
  }
214
214
  this.#stopResponseMonitor();
215
+ this.#invocations.forEach(({ reject }) => {
216
+ reject(new Error("Remoting closed"));
217
+ });
218
+ this.#invocations.clear();
219
+ this.#listeners.clear();
220
+ this.#allowedSenders.clear();
215
221
  this.#logger.debug(`closed remoting id: ${this.#correlationId}`);
216
222
  };
217
223
  /**