@friggframework/core 2.0.0--canary.549.6674256.0 → 2.0.0--canary.549.70ef06a.0
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/package.json +5 -5
- package/src/database/encryption/field-encryption-service.test.ts +3 -3
- package/src/database/use-cases/check-database-state-use-case.test.ts +1 -1
- package/src/database/use-cases/get-migration-status-use-case.test.ts +1 -1
- package/src/database/use-cases/trigger-database-migration-use-case.test.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.549.
|
|
4
|
+
"version": "2.0.0--canary.549.70ef06a.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@friggframework/eslint-config": "2.0.0--canary.549.
|
|
44
|
-
"@friggframework/prettier-config": "2.0.0--canary.549.
|
|
45
|
-
"@friggframework/test": "2.0.0--canary.549.
|
|
43
|
+
"@friggframework/eslint-config": "2.0.0--canary.549.70ef06a.0",
|
|
44
|
+
"@friggframework/prettier-config": "2.0.0--canary.549.70ef06a.0",
|
|
45
|
+
"@friggframework/test": "2.0.0--canary.549.70ef06a.0",
|
|
46
46
|
"@prisma/client": "^6.17.0",
|
|
47
47
|
"@types/common-tags": "^1.8.4",
|
|
48
48
|
"@types/express": "^4.17.21",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "70ef06aee70c4dc031cba33e4efc076f0b317ec5"
|
|
106
106
|
}
|
|
@@ -52,19 +52,19 @@ describe('FieldEncryptionService', () => {
|
|
|
52
52
|
describe('constructor', () => {
|
|
53
53
|
it('should throw if cryptor not provided', () => {
|
|
54
54
|
expect(() => {
|
|
55
|
-
new FieldEncryptionService({ schema: mockSchema } as any);
|
|
55
|
+
const _instance = new FieldEncryptionService({ schema: mockSchema } as any);
|
|
56
56
|
}).toThrow('Cryptor instance required');
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
it('should throw if schema not provided', () => {
|
|
60
60
|
expect(() => {
|
|
61
|
-
new FieldEncryptionService({ cryptor: mockCryptor } as any);
|
|
61
|
+
const _instance = new FieldEncryptionService({ cryptor: mockCryptor } as any);
|
|
62
62
|
}).toThrow('Schema with getEncryptedFields method required');
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
it('should throw if schema missing getEncryptedFields', () => {
|
|
66
66
|
expect(() => {
|
|
67
|
-
new FieldEncryptionService({
|
|
67
|
+
const _instance = new FieldEncryptionService({
|
|
68
68
|
cryptor: mockCryptor,
|
|
69
69
|
schema: {},
|
|
70
70
|
} as any);
|
|
@@ -20,7 +20,7 @@ describe('CheckDatabaseStateUseCase', () => {
|
|
|
20
20
|
describe('constructor', () => {
|
|
21
21
|
it('should throw error if prismaRunner not provided', () => {
|
|
22
22
|
expect(() => {
|
|
23
|
-
new CheckDatabaseStateUseCase({} as any);
|
|
23
|
+
const _instance = new CheckDatabaseStateUseCase({} as any);
|
|
24
24
|
}).toThrow('prismaRunner dependency is required');
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -25,7 +25,7 @@ describe('GetMigrationStatusUseCase', () => {
|
|
|
25
25
|
describe('constructor', () => {
|
|
26
26
|
it('should throw error if migrationStatusRepository not provided', () => {
|
|
27
27
|
expect(() => {
|
|
28
|
-
new GetMigrationStatusUseCase({} as any);
|
|
28
|
+
const _instance = new GetMigrationStatusUseCase({} as any);
|
|
29
29
|
}).toThrow('migrationStatusRepository dependency is required');
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -50,7 +50,7 @@ describe('TriggerDatabaseMigrationUseCase', () => {
|
|
|
50
50
|
describe('constructor', () => {
|
|
51
51
|
it('should throw error if migrationStatusRepository not provided', () => {
|
|
52
52
|
expect(() => {
|
|
53
|
-
new TriggerDatabaseMigrationUseCase({} as any);
|
|
53
|
+
const _instance = new TriggerDatabaseMigrationUseCase({} as any);
|
|
54
54
|
}).toThrow('migrationStatusRepository dependency is required');
|
|
55
55
|
});
|
|
56
56
|
|