@volontariapp/config 1.1.3 → 1.1.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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@ import { DBConfig } from './db-config.js';
|
|
|
2
2
|
import type { INeo4jAuthToken, INeo4jConfig } from '../../interfaces/database.config.interface.js';
|
|
3
3
|
export declare class Neo4jConfig extends DBConfig implements INeo4jConfig {
|
|
4
4
|
scheme: string;
|
|
5
|
+
authScheme: string;
|
|
6
|
+
realm: string;
|
|
5
7
|
get url(): string;
|
|
6
8
|
get authToken(): INeo4jAuthToken;
|
|
7
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j-config.d.ts","sourceRoot":"","sources":["../../../src/configs/db/neo4j-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEnG,qBAAa,WAAY,SAAQ,QAAS,YAAW,YAAY;IAI/D,MAAM,EAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"neo4j-config.d.ts","sourceRoot":"","sources":["../../../src/configs/db/neo4j-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAEnG,qBAAa,WAAY,SAAQ,QAAS,YAAW,YAAY;IAI/D,MAAM,EAAG,MAAM,CAAC;IAKhB,UAAU,EAAG,MAAM,CAAC;IAKpB,KAAK,EAAG,MAAM,CAAC;IAEf,IAAI,GAAG,IAAI,MAAM,CAEhB;IAED,IAAI,SAAS,IAAI,eAAe,CAO/B;CACF"}
|
|
@@ -11,13 +11,17 @@ import { IsDefined, IsNotEmpty, IsString } from 'class-validator';
|
|
|
11
11
|
import { DBConfig } from './db-config.js';
|
|
12
12
|
export class Neo4jConfig extends DBConfig {
|
|
13
13
|
scheme;
|
|
14
|
+
authScheme;
|
|
15
|
+
realm;
|
|
14
16
|
get url() {
|
|
15
17
|
return `${this.scheme}://${this.host}:${this.port.toString()}`;
|
|
16
18
|
}
|
|
17
19
|
get authToken() {
|
|
18
20
|
return {
|
|
21
|
+
scheme: this.authScheme,
|
|
19
22
|
principal: this.username,
|
|
20
23
|
credentials: this.password,
|
|
24
|
+
realm: this.realm,
|
|
21
25
|
};
|
|
22
26
|
}
|
|
23
27
|
}
|
|
@@ -27,4 +31,16 @@ __decorate([
|
|
|
27
31
|
IsString(),
|
|
28
32
|
__metadata("design:type", String)
|
|
29
33
|
], Neo4jConfig.prototype, "scheme", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsDefined(),
|
|
36
|
+
IsNotEmpty(),
|
|
37
|
+
IsString(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Neo4jConfig.prototype, "authScheme", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
IsDefined(),
|
|
42
|
+
IsNotEmpty(),
|
|
43
|
+
IsString(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Neo4jConfig.prototype, "realm", void 0);
|
|
30
46
|
//# sourceMappingURL=neo4j-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neo4j-config.js","sourceRoot":"","sources":["../../../src/configs/db/neo4j-config.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,MAAM,OAAO,WAAY,SAAQ,QAAQ;IAIvC,MAAM,CAAU;
|
|
1
|
+
{"version":3,"file":"neo4j-config.js","sourceRoot":"","sources":["../../../src/configs/db/neo4j-config.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,MAAM,OAAO,WAAY,SAAQ,QAAQ;IAIvC,MAAM,CAAU;IAKhB,UAAU,CAAU;IAKpB,KAAK,CAAU;IAEf,IAAI,GAAG;QACL,OAAO,GAAG,IAAI,CAAC,MAAM,MAAM,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;IACjE,CAAC;IAED,IAAI,SAAS;QACX,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,UAAU;YACvB,SAAS,EAAE,IAAI,CAAC,QAAQ;YACxB,WAAW,EAAE,IAAI,CAAC,QAAQ;YAC1B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF;AAxBC;IAHC,SAAS,EAAE;IACX,UAAU,EAAE;IACZ,QAAQ,EAAE;;2CACK;AAKhB;IAHC,SAAS,EAAE;IACX,UAAU,EAAE;IACZ,QAAQ,EAAE;;+CACS;AAKpB;IAHC,SAAS,EAAE;IACX,UAAU,EAAE;IACZ,QAAQ,EAAE;;0CACI"}
|