Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 111 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"ts-jest": "^29.4.11",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.9.3"
"typescript": "^6.0.2"
}
}
2 changes: 1 addition & 1 deletion packages/content/test/attributes/IdentityAttribute.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe("IdentityAttribute", function () {
test("should validate attribute values from JSON", function () {
expect(() =>
IdentityAttribute.from({
value: { "@type": "BirthDate", day: { value: 22 }, month: { value: 13 }, year: { value: 2022 } },
value: { "@type": "BirthDate", day: { value: 22 }, month: { value: 13 }, year: { value: 2022 } } as any,
owner: CoreAddress.from("address")
})
).toThrow("BirthMonth.value:Number :: must be an integer value between 1 and 12");
Expand Down
9 changes: 7 additions & 2 deletions packages/core-types/src/CoreError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { ILogger } from "@js-soft/logging-abstractions";
import stringify from "json-stringify-safe";

export class CoreError extends Error {
private static readonly errorConstructorWithStackTrace = Error as ErrorConstructor & {
captureStackTrace?(errorInstance: object, startAtConstructor?: Function): void;
};

private readonly _code: string;
public get code(): string {
return this._code;
Expand Down Expand Up @@ -58,8 +62,9 @@ export class CoreError extends Error {
this._rootError = rootError;
this._context = context;

if (typeof Error.captureStackTrace !== "undefined") {
Error.captureStackTrace(this, context ?? CoreError);
const { captureStackTrace } = CoreError.errorConstructorWithStackTrace;
if (typeof captureStackTrace !== "undefined") {
captureStackTrace(this, context ?? CoreError);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/runtime/src/useCases/common/Schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17541,9 +17541,9 @@ export const RequestCredentialsRequest: any = {
"$ref": "#/definitions/RequestCredentialsRequest",
"definitions": {
"RequestCredentialsRequest": {
"$ref": "#/definitions/AbstractRequestCredentialsRequest%3Calias-2033348025-74138-74264-2033348025-0-218439%3Cstring%2Cany%3E%3E"
"$ref": "#/definitions/AbstractRequestCredentialsRequest%3Calias-1782228875-74138-74264-1782228875-0-218439%3Cstring%2Cany%3E%3E"
},
"AbstractRequestCredentialsRequest<alias-2033348025-74138-74264-2033348025-0-218439<string,any>>": {
"AbstractRequestCredentialsRequest<alias-1782228875-74138-74264-1782228875-0-218439<string,any>>": {
"anyOf": [
{
"type": "object",
Expand Down
Loading