@nmshd/transport 6.5.0 → 6.6.1
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/LICENSE +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/core/CoreCrypto.d.ts +7 -9
- package/dist/core/CoreCrypto.d.ts.map +1 -1
- package/dist/core/CoreCrypto.js +24 -12
- package/dist/core/CoreCrypto.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js +2 -2
- package/dist/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.js.map +1 -1
- package/dist/modules/sync/externalEventProcessors/{IdentityDeletionProcessChangedExternalEventProcessor.d.ts → IdentityDeletionProcessStatusChangedExternalEventProcessor.d.ts} +2 -2
- package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.d.ts.map +1 -0
- package/dist/modules/sync/externalEventProcessors/{IdentityDeletionProcessChangedExternalEventProcessor.js → IdentityDeletionProcessStatusChangedExternalEventProcessor.js} +7 -7
- package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.js.map +1 -0
- package/package.json +6 -6
- package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessChangedExternalEventProcessor.d.ts.map +0 -1
- package/dist/modules/sync/externalEventProcessors/IdentityDeletionProcessChangedExternalEventProcessor.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2024 j&s-soft
|
|
1
|
+
Copyright 2024 j&s-soft AG
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
package/dist/buildInformation.js
CHANGED
|
@@ -4,11 +4,11 @@ exports.buildInformation = void 0;
|
|
|
4
4
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
5
5
|
const crypto_1 = require("@nmshd/crypto");
|
|
6
6
|
exports.buildInformation = {
|
|
7
|
-
version: "6.
|
|
8
|
-
build: "
|
|
9
|
-
date: "2024-
|
|
10
|
-
commit: "
|
|
11
|
-
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.4","@js-soft/logging-abstractions":"^1.0.1","@js-soft/simple-logger":"1.0.5","@js-soft/ts-utils":"^2.3.3","@nmshd/core-types":"*","@nmshd/crypto":"2.0
|
|
7
|
+
version: "6.6.1",
|
|
8
|
+
build: "170",
|
|
9
|
+
date: "2024-11-05T08:37:30+00:00",
|
|
10
|
+
commit: "0420eadea4e748c37326e951b27feb8634060d32",
|
|
11
|
+
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.4","@js-soft/logging-abstractions":"^1.0.1","@js-soft/simple-logger":"1.0.5","@js-soft/ts-utils":"^2.3.3","@nmshd/core-types":"*","@nmshd/crypto":"2.1.0","axios":"^1.7.7","fast-json-patch":"^3.1.1","form-data":"^4.0.1","https-proxy-agent":"^7.0.5","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^3.5.0","qs":"^6.13.0","reflect-metadata":"^0.2.2","ts-simple-nameof":"^1.3.1","uuid":"^11.0.2"},
|
|
12
12
|
libraries: {
|
|
13
13
|
crypto: crypto_1.buildInformation,
|
|
14
14
|
serval: ts_serval_1.buildInformation
|
|
@@ -30,21 +30,19 @@ export declare abstract class CoreCrypto {
|
|
|
30
30
|
*/
|
|
31
31
|
static generateSecretKey(version?: TransportVersion): Promise<CryptoSecretKey>;
|
|
32
32
|
/**
|
|
33
|
-
* Generates a
|
|
34
|
-
* algorithm and the version. Depending on the given version, different key derivation algorithms are used.
|
|
33
|
+
* Generates a high entropy key / hash derived from a low entropy human readable/memorable master password, a unique salt,
|
|
34
|
+
* the given symmetric algorithm and the version. Depending on the given version, different key derivation algorithms are used.
|
|
35
35
|
* Careful, the symmetric algorithm possibly needs to be manually changed depending on the version in addition to
|
|
36
36
|
* the version.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* @param
|
|
41
|
-
* @param salt A salt which is unique to this user/password instance.
|
|
42
|
-
* @param keyAlgorithm The [[CryptoSymmetricAlgorithm]] for which the key should be generated.
|
|
43
|
-
* Default is AES256_GCM.
|
|
38
|
+
* @param password The master password as utf-8 encoded string
|
|
39
|
+
* @param salt A salt which is unique to this user/password instance, needs to by 16 byte long.
|
|
40
|
+
* @param algorithm The CryptoEncryptionAlgorithm for which the secret needs to be created
|
|
44
41
|
* @param version The version which should be used, "latest" is the default.
|
|
45
42
|
* @returns A Promise object resolving in a [[CryptoSecretKey]].
|
|
46
43
|
*/
|
|
47
|
-
static
|
|
44
|
+
static deriveKeyFromPassword(password: string, salt: CoreBuffer, algorithm?: CryptoEncryptionAlgorithm, version?: TransportVersion): Promise<CryptoSecretKey>;
|
|
45
|
+
static deriveHashOutOfPassword(password: string, salt: CoreBuffer, version?: TransportVersion): Promise<CoreBuffer>;
|
|
48
46
|
static deriveKeyFromBase(secret: CryptoSecretKey | CoreBuffer, keyId: number, context: string, keyAlgorithm?: CryptoEncryptionAlgorithm): Promise<CryptoSecretKey>;
|
|
49
47
|
static deriveClient(client: CryptoExchangeKeypair, serverPublicKey: CryptoExchangePublicKey, keyAlgorithm?: CryptoEncryptionAlgorithm, version?: TransportVersion): Promise<CryptoExchangeSecrets>;
|
|
50
48
|
static deriveServer(server: CryptoExchangeKeypair, clientPublicKey: CryptoExchangePublicKey, keyAlgorithm?: CryptoEncryptionAlgorithm, version?: TransportVersion): Promise<CryptoExchangeSecrets>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreCrypto.d.ts","sourceRoot":"","sources":["../../src/core/CoreCrypto.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"CoreCrypto.d.ts","sourceRoot":"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Ae,EAAE,uBAAuB,EACxC,YAAY,GAAE,yBAAwE,EACtF,OAAO,GAAE,gBAA0C,GACpD,OAAO,CAAC,qBAAqB,CAAC;IAWjC;;;;;;;;;OASG;WACiB,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,yBAAyB,EAAE,OAAO,GAAE,gBAA0C,GAAG,OAAO,CAAC,eAAe,CAAC;IAUnK;;;;;;;;;;OAUG;WACiB,MAAM,CACtB,OAAO,EAAE,UAAU,EACnB,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,wBAAwB,EACnC,OAAO,GAAE,gBAA0C,GACpD,OAAO,CAAC,OAAO,CAAC;IAUnB;;;;;;;;;;;OAWG;WACiB,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,GAAE,gBAA0C,GAAG,OAAO,CAAC,YAAY,CAAC;IAUxJ;;;;;;;;;;;OAWG;WACiB,OAAO,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,OAAO,GAAE,gBAA0C,GAAG,OAAO,CAAC,UAAU,CAAC;IAUvJ;;;;;OAKG;WACiB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;WAIzC,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;IAI5D,OAAO,CAAC,MAAM,CAAC,cAAc;CAGhC"}
|
package/dist/core/CoreCrypto.js
CHANGED
|
@@ -59,27 +59,39 @@ class CoreCrypto {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* Generates a
|
|
63
|
-
* algorithm and the version. Depending on the given version, different key derivation algorithms are used.
|
|
62
|
+
* Generates a high entropy key / hash derived from a low entropy human readable/memorable master password, a unique salt,
|
|
63
|
+
* the given symmetric algorithm and the version. Depending on the given version, different key derivation algorithms are used.
|
|
64
64
|
* Careful, the symmetric algorithm possibly needs to be manually changed depending on the version in addition to
|
|
65
65
|
* the version.
|
|
66
66
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* @param
|
|
70
|
-
* @param salt A salt which is unique to this user/password instance.
|
|
71
|
-
* @param keyAlgorithm The [[CryptoSymmetricAlgorithm]] for which the key should be generated.
|
|
72
|
-
* Default is AES256_GCM.
|
|
67
|
+
* @param password The master password as utf-8 encoded string
|
|
68
|
+
* @param salt A salt which is unique to this user/password instance, needs to by 16 byte long.
|
|
69
|
+
* @param algorithm The CryptoEncryptionAlgorithm for which the secret needs to be created
|
|
73
70
|
* @param version The version which should be used, "latest" is the default.
|
|
74
71
|
* @returns A Promise object resolving in a [[CryptoSecretKey]].
|
|
75
72
|
*/
|
|
76
|
-
static async
|
|
77
|
-
const
|
|
78
|
-
|
|
73
|
+
static async deriveKeyFromPassword(password, salt, algorithm = 3 /* CryptoEncryptionAlgorithm.XCHACHA20_POLY1305 */, version = TransportVersion_1.TransportVersion.Latest) {
|
|
74
|
+
const passwordBuffer = crypto_1.CoreBuffer.fromString(password, crypto_1.Encoding.Utf8);
|
|
75
|
+
switch (version) {
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
77
|
+
case TransportVersion_1.TransportVersion.V1:
|
|
78
|
+
// See https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html for recommendations of default values
|
|
79
|
+
// Libsodium uses Argon2id as the pwhash function, we need to look at the minimum setup for Apps (smartphones) and virtualized
|
|
80
|
+
// environments like Connectors. Thus, we cannot expect high end pcs to make the pw derivation.
|
|
81
|
+
const opslimit = 3;
|
|
82
|
+
const memlimit = 20 * 1024 * 1024; // 20MB
|
|
83
|
+
return await crypto_1.CryptoDerivation.deriveKeyFromPassword(passwordBuffer, salt, algorithm, "argon2id" /* CryptoDerivationAlgorithm.ARGON2ID */, opslimit, memlimit);
|
|
84
|
+
default:
|
|
85
|
+
throw this.invalidVersion(version);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
static async deriveHashOutOfPassword(password, salt, version = TransportVersion_1.TransportVersion.Latest) {
|
|
79
89
|
switch (version) {
|
|
80
90
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
81
91
|
case TransportVersion_1.TransportVersion.V1:
|
|
82
|
-
|
|
92
|
+
const pwhash = await this.deriveKeyFromPassword(password, salt);
|
|
93
|
+
// No pepper required, as even the salt is not stored in the Backbone
|
|
94
|
+
return pwhash.secretKey;
|
|
83
95
|
default:
|
|
84
96
|
throw this.invalidVersion(version);
|
|
85
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreCrypto.js","sourceRoot":"","sources":["../../src/core/CoreCrypto.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"CoreCrypto.js","sourceRoot":"","sources":["../../src/core/CoreCrypto.ts"],"names":[],"mappings":";;;AAAA,0CAsBuB;AACvB,kCAA4C;AAC5C,qDAAkD;AAClD,+DAA4D;AAE5D,MAAsB,UAAU;IAC5B;;;;;;;OAOG;IACI,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,UAA4B,mCAAgB,CAAC,MAAM;QAC5F,QAAQ,OAAO,EAAE,CAAC;YACd,uEAAuE;YACvE,KAAK,mCAAgB,CAAC,EAAE;gBACpB,OAAO,MAAM,yBAAgB,CAAC,eAAe,gDAAwC,CAAC;YAC1F;gBACI,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,UAA4B,mCAAgB,CAAC,MAAM;QAC3F,QAAQ,OAAO,EAAE,CAAC;YACd,uEAAuE;YACvE,KAAK,mCAAgB,CAAC,EAAE;gBACpB,OAAO,MAAM,uBAAc,CAAC,eAAe,6CAAqC,CAAC;YACrF;gBACI,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;IACL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;gBACI,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACI,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAoB,EAAE,SAA0B,EAAE,UAA4B,mCAAgB,CAAC,MAAM;QAC7H,QAAQ,OAAO,EAAE,CAAC;YACd,uEAAuE;YACvE,KAAK,mCAAgB,CAAC,EAAE;gBACpB,OAAO,MAAM,yBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YAC7D;gBACI,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAY;QACnC,OAAO,MAAM,qBAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,qBAAqB;QACrC,OAAO,MAAM,wBAAiB,CAAC,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IAClE,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,OAAyB;QACnD,OAAO,IAAI,+BAAc,CAAC,eAAe,OAAO,oBAAoB,CAAC,CAAC;IAC1E,CAAC;CACJ;AAnQD,gCAmQC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExternalEventProcessorRegistry = void 0;
|
|
4
4
|
const core_1 = require("../../../core");
|
|
5
|
-
const IdentityDeletionProcessChangedExternalEventProcessor_1 = require("./IdentityDeletionProcessChangedExternalEventProcessor");
|
|
6
5
|
const IdentityDeletionProcessStartedExternalEventProcessor_1 = require("./IdentityDeletionProcessStartedExternalEventProcessor");
|
|
6
|
+
const IdentityDeletionProcessStatusChangedExternalEventProcessor_1 = require("./IdentityDeletionProcessStatusChangedExternalEventProcessor");
|
|
7
7
|
const MessageDeliveredExternalEventProcessor_1 = require("./MessageDeliveredExternalEventProcessor");
|
|
8
8
|
const MessageReceivedExternalEventProcessor_1 = require("./MessageReceivedExternalEventProcessor");
|
|
9
9
|
const PeerDeletedExternalEventProcessor_1 = require("./PeerDeletedExternalEventProcessor");
|
|
@@ -21,7 +21,7 @@ class ExternalEventProcessorRegistry {
|
|
|
21
21
|
this.registerProcessor("RelationshipReactivationRequested", RelationshipReactivationRequestedExternalEventProcessor_1.RelationshipReactivationRequestedExternalEventProcessor);
|
|
22
22
|
this.registerProcessor("RelationshipReactivationCompleted", RelationshipReactivationCompletedExternalEventProcessor_1.RelationshipReactivationCompletedExternalEventProcessor);
|
|
23
23
|
this.registerProcessor("IdentityDeletionProcessStarted", IdentityDeletionProcessStartedExternalEventProcessor_1.IdentityDeletionProcessStartedExternalEventProcessor);
|
|
24
|
-
this.registerProcessor("IdentityDeletionProcessStatusChanged",
|
|
24
|
+
this.registerProcessor("IdentityDeletionProcessStatusChanged", IdentityDeletionProcessStatusChangedExternalEventProcessor_1.IdentityDeletionProcessStatusChangedExternalEventProcessor);
|
|
25
25
|
this.registerProcessor("PeerDeleted", PeerDeletedExternalEventProcessor_1.PeerDeletedExternalEventProcessor);
|
|
26
26
|
this.registerProcessor("PeerDeletionCancelled", PeerDeletionCancelledExternalEventProcessor_1.PeerDeletionCancelledExternalEventProcessor);
|
|
27
27
|
this.registerProcessor("PeerToBeDeleted", PeerToBeDeletedExternalEventProcessor_1.PeerToBeDeletedExternalEventProcessor);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalEventProcessorRegistry.js","sourceRoot":"","sources":["../../../../src/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.ts"],"names":[],"mappings":";;;AAAA,wCAA+C;AAE/C,iIAA8H;AAC9H,
|
|
1
|
+
{"version":3,"file":"ExternalEventProcessorRegistry.js","sourceRoot":"","sources":["../../../../src/modules/sync/externalEventProcessors/ExternalEventProcessorRegistry.ts"],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,0BAA0B,CAAC,iBAAyB,EAAE,sBAAyD;QAClH,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC;IACnE,CAAC;IAEM,mBAAmB,CAAC,iBAAyB;QAChD,MAAM,sBAAsB,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACtE,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAC1B,MAAM,IAAI,qBAAc,CAAC,0CAA0C,iBAAiB,IAAI,CAAC,CAAC;QAC9F,CAAC;QACD,OAAO,sBAAsB,CAAC;IAClC,CAAC;CACJ;AAjCD,wEAiCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IdentityDeletionProcess } from "../../accounts/data/IdentityDeletionProcess";
|
|
2
2
|
import { BackboneExternalEvent } from "../backbone/BackboneExternalEvent";
|
|
3
3
|
import { ExternalEventProcessor } from "./ExternalEventProcessor";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class IdentityDeletionProcessStatusChangedExternalEventProcessor extends ExternalEventProcessor {
|
|
5
5
|
execute(externalEvent: BackboneExternalEvent): Promise<IdentityDeletionProcess>;
|
|
6
6
|
}
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=IdentityDeletionProcessStatusChangedExternalEventProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityDeletionProcessStatusChangedExternalEventProcessor.d.ts","sourceRoot":"","sources":["../../../../src/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQlE,qBAAa,0DAA2D,SAAQ,sBAAsB;IAC5E,OAAO,CAAC,aAAa,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CASxG"}
|
|
@@ -9,22 +9,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.IdentityDeletionProcessStatusChangedExternalEventProcessor = void 0;
|
|
13
13
|
const ts_serval_1 = require("@js-soft/ts-serval");
|
|
14
14
|
const ExternalEventProcessor_1 = require("./ExternalEventProcessor");
|
|
15
|
-
class
|
|
15
|
+
class IdentityDeletionProcessStatusChangedEventData extends ts_serval_1.Serializable {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, ts_serval_1.serialize)(),
|
|
19
19
|
(0, ts_serval_1.validate)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
22
|
-
class
|
|
21
|
+
], IdentityDeletionProcessStatusChangedEventData.prototype, "deletionProcessId", void 0);
|
|
22
|
+
class IdentityDeletionProcessStatusChangedExternalEventProcessor extends ExternalEventProcessor_1.ExternalEventProcessor {
|
|
23
23
|
async execute(externalEvent) {
|
|
24
|
-
const messageReceivedPayload =
|
|
24
|
+
const messageReceivedPayload = IdentityDeletionProcessStatusChangedEventData.fromAny(externalEvent.payload);
|
|
25
25
|
const newIdentityDeletionProcess = await this.accountController.identityDeletionProcess.updateCacheOfExistingIdentityDeletionProcess(messageReceivedPayload.deletionProcessId);
|
|
26
26
|
return newIdentityDeletionProcess;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
exports.
|
|
30
|
-
//# sourceMappingURL=
|
|
29
|
+
exports.IdentityDeletionProcessStatusChangedExternalEventProcessor = IdentityDeletionProcessStatusChangedExternalEventProcessor;
|
|
30
|
+
//# sourceMappingURL=IdentityDeletionProcessStatusChangedExternalEventProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityDeletionProcessStatusChangedExternalEventProcessor.js","sourceRoot":"","sources":["../../../../src/modules/sync/externalEventProcessors/IdentityDeletionProcessStatusChangedExternalEventProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAuE;AAGvE,qEAAkE;AAElE,MAAM,6CAA8C,SAAQ,wBAAY;CAIvE;AADU;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;wFACsB;AAGrC,MAAa,0DAA2D,SAAQ,+CAAsB;IAClF,KAAK,CAAC,OAAO,CAAC,aAAoC;QAC9D,MAAM,sBAAsB,GAAG,6CAA6C,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE5G,MAAM,0BAA0B,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,4CAA4C,CAChI,sBAAsB,CAAC,iBAAiB,CAC3C,CAAC;QAEF,OAAO,0BAA0B,CAAC;IACtC,CAAC;CACJ;AAVD,gIAUC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"directory": "packages/transport"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"author": "j&s-soft
|
|
11
|
+
"author": "j&s-soft AG",
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"files": [
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"@js-soft/logging-abstractions": "^1.0.1",
|
|
71
71
|
"@js-soft/simple-logger": "1.0.5",
|
|
72
72
|
"@js-soft/ts-utils": "^2.3.3",
|
|
73
|
-
"@nmshd/core-types": "6.
|
|
74
|
-
"@nmshd/crypto": "2.0
|
|
73
|
+
"@nmshd/core-types": "6.6.1",
|
|
74
|
+
"@nmshd/crypto": "2.1.0",
|
|
75
75
|
"axios": "^1.7.7",
|
|
76
76
|
"fast-json-patch": "^3.1.1",
|
|
77
77
|
"form-data": "^4.0.1",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"qs": "^6.13.0",
|
|
83
83
|
"reflect-metadata": "^0.2.2",
|
|
84
84
|
"ts-simple-nameof": "^1.3.1",
|
|
85
|
-
"uuid": "^
|
|
85
|
+
"uuid": "^11.0.2"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@js-soft/docdb-access-loki": "1.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@js-soft/node-logger": "1.2.0",
|
|
91
91
|
"@js-soft/ts-serval": "2.0.11",
|
|
92
92
|
"@types/json-stringify-safe": "^5.0.3",
|
|
93
|
-
"@types/lodash": "^4.17.
|
|
93
|
+
"@types/lodash": "^4.17.13",
|
|
94
94
|
"@types/luxon": "^3.4.2",
|
|
95
95
|
"@types/qs": "^6.9.16",
|
|
96
96
|
"@types/uuid": "^10.0.0",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"access": "public",
|
|
103
103
|
"provenance": true
|
|
104
104
|
},
|
|
105
|
-
"version": "6.
|
|
105
|
+
"version": "6.6.1"
|
|
106
106
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityDeletionProcessChangedExternalEventProcessor.d.ts","sourceRoot":"","sources":["../../../../src/modules/sync/externalEventProcessors/IdentityDeletionProcessChangedExternalEventProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAQlE,qBAAa,oDAAqD,SAAQ,sBAAsB;IACtE,OAAO,CAAC,aAAa,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;CASxG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityDeletionProcessChangedExternalEventProcessor.js","sourceRoot":"","sources":["../../../../src/modules/sync/externalEventProcessors/IdentityDeletionProcessChangedExternalEventProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAuE;AAGvE,qEAAkE;AAElE,MAAM,uCAAwC,SAAQ,wBAAY;CAIjE;AADU;IAFN,IAAA,qBAAS,GAAE;IACX,IAAA,oBAAQ,GAAE;;kFACsB;AAGrC,MAAa,oDAAqD,SAAQ,+CAAsB;IAC5E,KAAK,CAAC,OAAO,CAAC,aAAoC;QAC9D,MAAM,sBAAsB,GAAG,uCAAuC,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEtG,MAAM,0BAA0B,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,4CAA4C,CAChI,sBAAsB,CAAC,iBAAiB,CAC3C,CAAC;QAEF,OAAO,0BAA0B,CAAC;IACtC,CAAC;CACJ;AAVD,oHAUC"}
|