@esposter/shared 3.9.0 → 4.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -464,7 +464,7 @@ const checkIsNestedInteraction = (event) => {
464
464
  if (!(currentTarget instanceof Element) || !(target instanceof Element)) return false;
465
465
  const interactiveElement = target.closest(NESTED_INTERACTION_SELECTOR);
466
466
  if (interactiveElement && interactiveElement !== currentTarget && currentTarget.contains(interactiveElement)) return true;
467
- return Boolean(window.getSelection()?.toString());
467
+ else return Boolean(window.getSelection()?.toString());
468
468
  };
469
469
  //#endregion
470
470
  //#region src/util/environment/checkIsServer.ts
@@ -601,7 +601,9 @@ const now = () => {
601
601
  //#endregion
602
602
  //#region src/util/time/sleep.ts
603
603
  const sleep = (durationMs) => new Promise((resolve) => {
604
- setTimeout(resolve, durationMs);
604
+ setTimeout(() => {
605
+ resolve();
606
+ }, durationMs);
605
607
  });
606
608
  //#endregion
607
609
  //#region src/util/validation/exhaustiveGuard.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esposter/shared",
3
- "version": "3.9.0",
3
+ "version": "4.0.0",
4
4
  "description": "A library that contains shared typescript code.",
5
5
  "keywords": [
6
6
  "error-handling",
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@arethetypeswrong/core": "^0.18.5",
57
57
  "@azure/data-tables": "^13.3.2",
58
- "@esposter/configuration": "3.9.0",
58
+ "@esposter/configuration": "4.0.0",
59
59
  "@types/node": "^26.6.4",
60
60
  "@types/sanitize-html": "^2.16.2",
61
61
  "happy-dom": "^20.14.5",
@@ -71,5 +71,5 @@
71
71
  "inlinedDependencies": {
72
72
  "type-fest": "5.10.0"
73
73
  },
74
- "gitHead": "f9f6208c35e6cff4ed33910623c798cd88f09301"
74
+ "gitHead": "7667bc8c9a2b4e9dcacd6b845ee8cc9951250ae7"
75
75
  }