Skip to content

Commit

Permalink
Use @nmshd/typescript-ioc to get rid of vulnerabilities (#296)
Browse files Browse the repository at this point in the history
* chore: switch dependencies

* chore: update code

* chore: remove audit exclude
  • Loading branch information
jkoenig134 authored Oct 14, 2024
1 parent 2da60aa commit 5bcc4ef
Show file tree
Hide file tree
Showing 164 changed files with 175 additions and 186 deletions.
2 changes: 1 addition & 1 deletion .ci/runChecks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ npm run build:node
npm run lint:eslint
npm run lint:prettier
npx -ws license-check
npx better-npm-audit audit --exclude 1096302
npx better-npm-audit audit
35 changes: 12 additions & 23 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 packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"qrcode": "1.5.4",
"reflect-metadata": "^0.2.2",
"ts-simple-nameof": "^1.3.1",
"typescript-ioc": "3.2.2"
"@nmshd/typescript-ioc": "3.2.4"
},
"devDependencies": {
"@js-soft/docdb-access-loki": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/Runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
TokenController,
Transport
} from "@nmshd/transport";
import { Container, Scope } from "typescript-ioc";
import { Container, Scope } from "@nmshd/typescript-ioc";
import { buildInformation } from "./buildInformation";
import { DatabaseSchemaUpgrader } from "./DatabaseSchemaUpgrader";
import { DataViewExpander } from "./dataViews";
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/dataViews/DataViewExpander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ import {
} from "@nmshd/content";
import { CoreAddress, CoreId } from "@nmshd/core-types";
import { IdentityController } from "@nmshd/transport";
import { Inject } from "@nmshd/typescript-ioc";
import _ from "lodash";
import { Inject } from "typescript-ioc";
import {
AuthenticationRequestItemDVO,
ConsentRequestItemDVO,
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/extensibility/AnonymousServices.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { AnonymousTokensFacade, BackboneCompatibilityFacade } from "./facades/anonymous";

export class AnonymousServices {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/extensibility/ConsumptionServices.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import {
AttributeListenersFacade,
AttributesFacade,
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/extensibility/TransportServices.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import {
AccountFacade,
ChallengesFacade,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApplicationError, Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { TokenDTO } from "../../../types";
import { LoadPeerTokenAnonymousRequest, LoadPeerTokenAnonymousUseCase } from "../../../useCases";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { CheckBackboneCompatibilityResponse, CheckBackboneCompatibilityUseCase } from "../../../useCases";

export class BackboneCompatibilityFacade {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeListenerDTO } from "../../../types";
import { GetAttributeListenerRequest, GetAttributeListenersUseCase, GetAttributeListenerUseCase } from "../../../useCases";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeDTO, LocalRequestDTO } from "../../../types";
import {
ChangeDefaultRepositoryAttributeRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { DraftDTO } from "../../../types";
import {
CreateDraftRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { IdentityMetadataDTO } from "../../../types";
import {
DeleteIdentityMetadataRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalRequestDTO, RequestValidationResultDTO } from "../../../types";
import {
AcceptIncomingRequestRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalNotificationDTO } from "../../../types";
import {
GetNotificationRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalRequestDTO, RequestValidationResultDTO } from "../../../types";
import {
CanCreateOutgoingRequestRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApplicationError, Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { SettingDTO } from "../../../types";
import {
CreateSettingRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApplicationError, Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { DeviceDTO } from "../../../types";
import {
DisableAutoSyncUseCase,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { ChallengeDTO } from "../../../types";
import { CreateChallengeRequest, CreateChallengeUseCase, ValidateChallengeRequest, ValidateChallengeResponse, ValidateChallengeUseCase } from "../../../useCases";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApplicationError, Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { DeviceDTO, DeviceOnboardingInfoDTO, TokenDTO } from "../../..";
import {
CreateDeviceOnboardingTokenRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { FileDTO, TokenDTO } from "../../../types";
import {
CreateQRCodeForFileRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { IdentityDeletionProcessDTO } from "../../../types";
import {
ApproveIdentityDeletionProcessUseCase,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { FileDTO, MessageDTO, MessageWithAttachmentsDTO } from "../../../types";
import {
DownloadAttachmentRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { RelationshipTemplateDTO, TokenDTO } from "../../../types";
import {
CreateOwnRelationshipTemplateRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { RelationshipDTO } from "../../../types";
import {
AcceptRelationshipReactivationRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "@js-soft/ts-utils";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { TokenDTO } from "../../../types";
import {
CreateOwnTokenRequest,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Result } from "@js-soft/ts-utils";
import { BackboneCompatibilityController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { UseCase } from "../../common";

export interface CheckBackboneCompatibilityResponse {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Result } from "@js-soft/ts-utils";
import { AnonymousTokenController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { TokenDTO } from "../../../types";
import { SchemaRepository, SchemaValidator, TokenReferenceString, UseCase } from "../../common";
import { TokenMapper } from "../../transport/tokens/TokenMapper";
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/useCases/common/UseCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { ParsingError, ServalError, ValidationError } from "@js-soft/ts-serval";
import { ApplicationError, Result } from "@js-soft/ts-utils";
import { CoreError } from "@nmshd/core-types";
import { RequestError } from "@nmshd/transport";
import { Inject } from "@nmshd/typescript-ioc";
import stringifySafe from "json-stringify-safe";
import { Inject } from "typescript-ioc";
import { AbstractCorrelator } from "./AbstractCorrelator";
import { PlatformErrorCodes } from "./PlatformErrorCodes";
import { RuntimeErrors } from "./RuntimeErrors";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Result } from "@js-soft/ts-utils";
import { AttributeListenersController, LocalAttributeListener } from "@nmshd/consumption";
import { CoreId } from "@nmshd/core-types";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeListenerDTO } from "../../../types";
import { AttributeListenerIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";
import { AttributeListenerMapper } from "./AttributeListenerMapper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Result } from "@js-soft/ts-utils";
import { AttributeListenersController } from "@nmshd/consumption";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeListenerDTO } from "../../../types";
import { UseCase } from "../../common";
import { AttributeListenerMapper } from "./AttributeListenerMapper";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Result } from "@js-soft/ts-utils";
import { AttributesController, LocalAttribute } from "@nmshd/consumption";
import { CoreId } from "@nmshd/core-types";
import { AccountController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeDTO } from "../../../types";
import { AttributeIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";
import { AttributeMapper } from "./AttributeMapper";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CreateOutgoingRequestParameters, OutgoingRequestsController } from "@nm
import { AttributeValues, CreateAttributeRequestItem, RelationshipAttribute, RelationshipAttributeConfidentiality, Request } from "@nmshd/content";
import { CoreAddress } from "@nmshd/core-types";
import { AccountController, MessageController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalRequestDTO } from "../../../types";
import { AddressString, ISO8601DateTimeString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
import { RequestMapper } from "../requests";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Result } from "@js-soft/ts-utils";
import { AttributesController, CreateRepositoryAttributeParams } from "@nmshd/consumption";
import { AttributeValues } from "@nmshd/content";
import { AccountController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeDTO } from "../../../types";
import { ISO8601DateTimeString, SchemaRepository, SchemaValidator, UseCase } from "../../common";
import { AttributeMapper } from "./AttributeMapper";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AttributesController, ConsumptionIds, LocalAttribute } from "@nmshd/con
import { Notification, OwnSharedAttributeDeletedByOwnerNotificationItem } from "@nmshd/content";
import { CoreId } from "@nmshd/core-types";
import { AccountController, MessageController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { AttributeIdString, NotificationIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";

export interface DeleteOwnSharedAttributeAndNotifyPeerRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AttributesController, ConsumptionIds, LocalAttribute } from "@nmshd/con
import { Notification, PeerSharedAttributeDeletedByPeerNotificationItem } from "@nmshd/content";
import { CoreId } from "@nmshd/core-types";
import { AccountController, MessageController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { AttributeIdString, NotificationIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";

export interface DeletePeerSharedAttributeAndNotifyOwnerRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Result } from "@js-soft/ts-utils";
import { AttributesController, LocalAttribute } from "@nmshd/consumption";
import { CoreId } from "@nmshd/core-types";
import { AccountController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { AttributeIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";

export interface DeleteRepositoryAttributeRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Result } from "@js-soft/ts-utils";
import { AttributesController } from "@nmshd/consumption";
import { CoreId } from "@nmshd/core-types";
import { AccountController, Relationship, RelationshipsController, RelationshipStatus } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { RelationshipIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";

export interface DeleteSharedAttributesForRejectedOrRevokedRelationshipRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AttributesController, ConsumptionIds, LocalAttribute } from "@nmshd/con
import { Notification, ThirdPartyOwnedRelationshipAttributeDeletedByPeerNotificationItem } from "@nmshd/content";
import { CoreId } from "@nmshd/core-types";
import { AccountController, MessageController } from "@nmshd/transport";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { AttributeIdString, NotificationIdString, RuntimeErrors, SchemaRepository, SchemaValidator, UseCase } from "../../common";

export interface DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerRequest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Result } from "@js-soft/ts-utils";
import { AttributesController } from "@nmshd/consumption";
import { IQLQuery, IQLQueryJSON } from "@nmshd/content";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeDTO } from "../../../types";
import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
import { AttributeMapper } from "./AttributeMapper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Result } from "@js-soft/ts-utils";
import { AttributesController } from "@nmshd/consumption";
import { IdentityAttributeQuery, IdentityAttributeQueryJSON } from "@nmshd/content";
import { Inject } from "typescript-ioc";
import { Inject } from "@nmshd/typescript-ioc";
import { LocalAttributeDTO } from "../../../types";
import { UseCase } from "../../common";
import { AttributeMapper } from "./AttributeMapper";
Expand Down
Loading

0 comments on commit 5bcc4ef

Please sign in to comment.