@tmlmobilidade/utils 20260911.1727.59 → 20260911.1754.53

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.
@@ -2,9 +2,9 @@
2
2
  * Creates a recursive async proxy for a singleton class that delays method and property access until the instance is initialized.
3
3
  * Supports nested property chains like `await proxy.core.agencies.findById(id)` by recursively wrapping each property access
4
4
  * in a new proxy, resolving the full path only when the chain is invoked (called as a function or awaited).
5
- *
6
5
  * @param cls - A class with a static `getInstance` method that returns a promise resolving to the class instance.
7
6
  * @returns A proxy object that intercepts property access and method calls, ensuring the instance is initialized before resolving.
7
+ * @deprecated Use the `asyncSingletonProxy` function from the `@tmlmobilidade/go-utils-exec` package instead.
8
8
  */
9
9
  export declare function asyncSingletonProxy<T extends object>(cls: {
10
10
  getInstance: () => Promise<T>;
@@ -2,9 +2,9 @@
2
2
  * Creates a recursive async proxy for a singleton class that delays method and property access until the instance is initialized.
3
3
  * Supports nested property chains like `await proxy.core.agencies.findById(id)` by recursively wrapping each property access
4
4
  * in a new proxy, resolving the full path only when the chain is invoked (called as a function or awaited).
5
- *
6
5
  * @param cls - A class with a static `getInstance` method that returns a promise resolving to the class instance.
7
6
  * @returns A proxy object that intercepts property access and method calls, ensuring the instance is initialized before resolving.
7
+ * @deprecated Use the `asyncSingletonProxy` function from the `@tmlmobilidade/go-utils-exec` package instead.
8
8
  */
9
9
  export function asyncSingletonProxy(cls) {
10
10
  function createProxy(pathSegments) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/utils",
3
- "version": "20260911.1727.59",
3
+ "version": "20260911.1754.53",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"