tsondb 0.17.2 → 0.17.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.
|
@@ -11,7 +11,7 @@ import { isObjectType } from "./types/generic/ObjectType.js";
|
|
|
11
11
|
import { isStringType } from "./types/primitives/StringType.js";
|
|
12
12
|
import { isChildEntitiesType } from "./types/references/ChildEntitiesType.js";
|
|
13
13
|
import { isIncludeIdentifierType } from "./types/references/IncludeIdentifierType.js";
|
|
14
|
-
import { isNestedEntityMapType } from "./types/references/NestedEntityMapType.js";
|
|
14
|
+
import { isNestedEntityMapType, } from "./types/references/NestedEntityMapType.js";
|
|
15
15
|
import { isReferenceIdentifierType, } from "./types/references/ReferenceIdentifierType.js";
|
|
16
16
|
import { findTypeAtPath } from "./types/Type.js";
|
|
17
17
|
const debug = Debug("tsondb:schema");
|
|
@@ -3,11 +3,13 @@ import type { EntityDecl } from "../../declarations/EntityDecl.js";
|
|
|
3
3
|
import type { TypeAliasDecl } from "../../declarations/TypeAliasDecl.js";
|
|
4
4
|
import type { GetNestedDeclarations, GetReferences, Predicate, Serializer, TypeArgumentsResolver, Validator } from "../../Node.ts";
|
|
5
5
|
import { NodeKind } from "../../Node.ts";
|
|
6
|
+
import type { TypeParameter } from "../../TypeParameter.ts";
|
|
6
7
|
import type { MemberDecl, ObjectType } from "../generic/ObjectType.ts";
|
|
7
8
|
import type { BaseType, StructureFormatter } from "../Type.ts";
|
|
8
9
|
import { type IncludeIdentifier } from "./IncludeIdentifierType.ts";
|
|
9
10
|
type TConstraint = Record<string, MemberDecl>;
|
|
10
|
-
export type
|
|
11
|
+
export type PossibleNestedType<T extends TConstraint> = ObjectType<T> | IncludeIdentifier<TypeParameter[], TypeAliasDecl<string, PossibleNestedType<T>, TypeParameter[]>>;
|
|
12
|
+
export type PossibleType<T extends TConstraint> = ObjectType<T> | IncludeIdentifier<[], TypeAliasDecl<string, PossibleNestedType<T>, []>>;
|
|
11
13
|
export interface NestedEntityMapType<Name extends string = string, T extends TConstraint = TConstraint> extends BaseType {
|
|
12
14
|
kind: NodeKind["NestedEntityMapType"];
|
|
13
15
|
name: Name;
|
|
@@ -59,7 +59,7 @@ export class WorkerPool extends EventEmitter {
|
|
|
59
59
|
worker.on("error", err => {
|
|
60
60
|
// In case of an uncaught exception: Call the callback that was passed to
|
|
61
61
|
// `runTask` with the error.
|
|
62
|
-
if (worker[kTaskInfo])
|
|
62
|
+
if (worker[kTaskInfo] && err instanceof Error)
|
|
63
63
|
worker[kTaskInfo].done(error(err));
|
|
64
64
|
else
|
|
65
65
|
this.emit("error", err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsondb",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Lukas Obermann",
|
|
@@ -32,27 +32,27 @@
|
|
|
32
32
|
"release:sign": "commit-and-tag-version --sign --signoff"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint/js": "^9.39.
|
|
35
|
+
"@eslint/js": "^9.39.2",
|
|
36
36
|
"@types/debug": "^4.1.12",
|
|
37
|
-
"@types/express": "^5.0.
|
|
38
|
-
"@types/node": "^
|
|
39
|
-
"commit-and-tag-version": "^12.6.
|
|
40
|
-
"eslint": "^9.39.
|
|
37
|
+
"@types/express": "^5.0.6",
|
|
38
|
+
"@types/node": "^25.0.3",
|
|
39
|
+
"commit-and-tag-version": "^12.6.1",
|
|
40
|
+
"eslint": "^9.39.2",
|
|
41
41
|
"eslint-plugin-react": "^7.37.5",
|
|
42
42
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
43
|
-
"globals": "^
|
|
44
|
-
"prettier": "^3.
|
|
45
|
-
"tsx": "^4.
|
|
43
|
+
"globals": "^17.0.0",
|
|
44
|
+
"prettier": "^3.7.4",
|
|
45
|
+
"tsx": "^4.21.0",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"typescript-eslint": "^8.
|
|
47
|
+
"typescript-eslint": "^8.51.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@preact/signals": "^2.5.1",
|
|
51
51
|
"debug": "^4.4.3",
|
|
52
|
-
"express": "^5.1
|
|
52
|
+
"express": "^5.2.1",
|
|
53
53
|
"messageformat": "^4.0.0",
|
|
54
|
-
"preact": "^10.
|
|
55
|
-
"preact-iso": "^2.11.
|
|
54
|
+
"preact": "^10.28.1",
|
|
55
|
+
"preact-iso": "^2.11.1",
|
|
56
56
|
"simple-cli-args": "^0.1.3",
|
|
57
57
|
"simple-git": "^3.30.0"
|
|
58
58
|
},
|