@prestizni-software/client-dem 0.2.2 → 0.2.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/AutoUpdatedClientObjectClass.ts +1 -1
- package/CHANGELOG.md +4 -0
- package/CommonTypes.ts +3 -6
- package/package.json +2 -2
|
@@ -418,7 +418,7 @@ export function processIsRefProperties(
|
|
|
418
418
|
(loggers ?? console).debug("Changing isRef:", path);
|
|
419
419
|
|
|
420
420
|
// Example: replace with a proxy or a marker object
|
|
421
|
-
instance[prop] = instance[prop]._id;
|
|
421
|
+
instance[prop] = typeof instance[prop] === "string" ? instance[prop] : instance[prop]._id;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
// recurse into nested objects
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.4](https://github.com/Prestizni-Software/client-dem/compare/v0.2.3...v0.2.4) (2025-11-06)
|
|
6
|
+
|
|
7
|
+
### [0.2.3](https://github.com/Prestizni-Software/client-dem/compare/v0.2.2...v0.2.3) (2025-11-04)
|
|
8
|
+
|
|
5
9
|
### [0.2.2](https://github.com/Prestizni-Software/client-dem/compare/v0.2.1...v0.2.2) (2025-11-04)
|
|
6
10
|
|
|
7
11
|
### [0.2.1](https://github.com/Prestizni-Software/client-dem/compare/v0.1.27...v0.2.1) (2025-11-04)
|
package/CommonTypes.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DefaultEventsMap, Server } from "socket.io";
|
|
2
2
|
import { Socket as SocketClient } from "socket.io-client";
|
|
3
3
|
import { ObjectId } from "bson";
|
|
4
|
-
import {
|
|
4
|
+
import { AutoUpdated } from "./AutoUpdatedClientObjectClass.js";
|
|
5
5
|
|
|
6
|
-
export type Ref<T
|
|
6
|
+
export type Ref<T extends Constructor<any>> = T & { _id: string } | string | AutoUpdated<T>;
|
|
7
7
|
export type LoggersTypeInternal = LoggersType & {
|
|
8
8
|
warn: (...args: any[]) => void;
|
|
9
9
|
};
|
|
@@ -153,7 +153,4 @@ export type PathValueOf<
|
|
|
153
153
|
> = PathValue<DeRef<InstanceOf<T>>, Split<P>, Depth>;
|
|
154
154
|
|
|
155
155
|
// ---------------------- Pretty ----------------------
|
|
156
|
-
export type Pretty<T> = { [K in keyof T]: T[K] };
|
|
157
|
-
|
|
158
|
-
let test1: Paths<Test> = "test2";
|
|
159
|
-
let test2: PathValueOf<Test, "test2.loggers2">;
|
|
156
|
+
export type Pretty<T> = { [K in keyof T]: T[K] };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prestizni-software/client-dem",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "An solution for when making http requests is not a good solution",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"websockets"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"author": "xx0055",
|
|
10
10
|
"type": "module",
|
|
11
|
-
"main": "
|
|
11
|
+
"main": "client.ts",
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public",
|
|
14
14
|
"registry": "https://registry.npmjs.org/"
|