@salesforcedevs/dx-components 1.15.3 → 1.15.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.15.3",
3
+ "version": "1.15.4",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -46,5 +46,5 @@
46
46
  "volta": {
47
47
  "node": "20.19.0"
48
48
  },
49
- "gitHead": "f8d314c2694651bca752ec3a45bd0673c4a4ada4"
49
+ "gitHead": "a38fed3ac661372c8d4dd9ba7f2848f0c511703a"
50
50
  }
@@ -1,9 +1,9 @@
1
1
  // urlWatcherComponent.ts
2
2
  import { LightningElement } from "lwc";
3
- import UrlWatcher from "dxUtils/urlWatcher";
3
+ import { UrlWatcher } from "dxUtils/urlWatcher";
4
4
 
5
5
  export default class UrlWatcherComponent extends LightningElement {
6
- watcher = UrlWatcher;
6
+ watcher = UrlWatcher.getInstance();
7
7
  connectedCallback() {
8
8
  // Just ensure the singleton initializes
9
9
  }
@@ -1,7 +1,7 @@
1
1
  // utils/urlWatcher.ts
2
2
  // there's a _lot_ of typescript fuckery happening here, because this whole class violates the laws of nature
3
3
  // please do not be alarmed.
4
- class UrlWatcher {
4
+ export class UrlWatcher {
5
5
  // eslint-disable-next-line no-use-before-define
6
6
  private static instance: UrlWatcher;
7
7
  private lastUrl: string = window.location.href;
@@ -77,5 +77,3 @@ class UrlWatcher {
77
77
  }
78
78
  }
79
79
  }
80
-
81
- export default UrlWatcher.getInstance();
@@ -1 +0,0 @@
1
- <template></template>