@velocitycareerlabs/server-careerwallet 1.25.0-dev-build.16bf6aabd → 1.25.0-dev-build.17bda9234
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
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velocitycareerlabs/server-careerwallet",
|
|
3
|
-
"version": "1.25.0-dev-build.
|
|
3
|
+
"version": "1.25.0-dev-build.17bda9234",
|
|
4
4
|
"description": "Career Wallet application",
|
|
5
5
|
"repository": "https://github.com/velocitycareerlabs/packages",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=22.11.0"
|
|
8
8
|
},
|
|
9
9
|
"main": "src/index.js",
|
|
10
10
|
"scripts": {
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
"@fastify/static": "7.0.4",
|
|
30
30
|
"@getyoti/sdk-sandbox": "1.7.0",
|
|
31
31
|
"@spencejs/spence-mongo-repos": "^0.10.2",
|
|
32
|
-
"@velocitycareerlabs/auth": "1.25.0-dev-build.
|
|
33
|
-
"@velocitycareerlabs/aws-clients": "1.25.0-dev-build.
|
|
34
|
-
"@velocitycareerlabs/common-fetchers": "1.25.0-dev-build.
|
|
35
|
-
"@velocitycareerlabs/common-functions": "1.25.0-dev-build.
|
|
36
|
-
"@velocitycareerlabs/common-schemas": "1.25.0-dev-build.
|
|
37
|
-
"@velocitycareerlabs/config": "1.25.0-dev-build.
|
|
38
|
-
"@velocitycareerlabs/country-data": "1.25.0-dev-build.
|
|
39
|
-
"@velocitycareerlabs/crypto": "1.25.0-dev-build.
|
|
40
|
-
"@velocitycareerlabs/did-doc": "1.25.0-dev-build.
|
|
41
|
-
"@velocitycareerlabs/fastify-plugins": "1.25.0-dev-build.
|
|
42
|
-
"@velocitycareerlabs/jwt": "1.25.0-dev-build.
|
|
43
|
-
"@velocitycareerlabs/migrations": "1.25.0-dev-build.
|
|
44
|
-
"@velocitycareerlabs/organizations-registry": "1.25.0-dev-build.
|
|
45
|
-
"@velocitycareerlabs/request": "1.25.0-dev-build.
|
|
46
|
-
"@velocitycareerlabs/server-provider": "1.25.0-dev-build.
|
|
47
|
-
"@velocitycareerlabs/spencer-mongo-extensions": "1.25.0-dev-build.
|
|
48
|
-
"@velocitycareerlabs/verifiable-credentials": "1.25.0-dev-build.
|
|
49
|
-
"@velocitycareerlabs/yoti-integration-plugin": "1.25.0-dev-build.
|
|
32
|
+
"@velocitycareerlabs/auth": "1.25.0-dev-build.17bda9234",
|
|
33
|
+
"@velocitycareerlabs/aws-clients": "1.25.0-dev-build.17bda9234",
|
|
34
|
+
"@velocitycareerlabs/common-fetchers": "1.25.0-dev-build.17bda9234",
|
|
35
|
+
"@velocitycareerlabs/common-functions": "1.25.0-dev-build.17bda9234",
|
|
36
|
+
"@velocitycareerlabs/common-schemas": "1.25.0-dev-build.17bda9234",
|
|
37
|
+
"@velocitycareerlabs/config": "1.25.0-dev-build.17bda9234",
|
|
38
|
+
"@velocitycareerlabs/country-data": "1.25.0-dev-build.17bda9234",
|
|
39
|
+
"@velocitycareerlabs/crypto": "1.25.0-dev-build.17bda9234",
|
|
40
|
+
"@velocitycareerlabs/did-doc": "1.25.0-dev-build.17bda9234",
|
|
41
|
+
"@velocitycareerlabs/fastify-plugins": "1.25.0-dev-build.17bda9234",
|
|
42
|
+
"@velocitycareerlabs/jwt": "1.25.0-dev-build.17bda9234",
|
|
43
|
+
"@velocitycareerlabs/migrations": "1.25.0-dev-build.17bda9234",
|
|
44
|
+
"@velocitycareerlabs/organizations-registry": "1.25.0-dev-build.17bda9234",
|
|
45
|
+
"@velocitycareerlabs/request": "1.25.0-dev-build.17bda9234",
|
|
46
|
+
"@velocitycareerlabs/server-provider": "1.25.0-dev-build.17bda9234",
|
|
47
|
+
"@velocitycareerlabs/spencer-mongo-extensions": "1.25.0-dev-build.17bda9234",
|
|
48
|
+
"@velocitycareerlabs/verifiable-credentials": "1.25.0-dev-build.17bda9234",
|
|
49
|
+
"@velocitycareerlabs/yoti-integration-plugin": "1.25.0-dev-build.17bda9234",
|
|
50
50
|
"aws-sdk": "2.1692.0",
|
|
51
51
|
"canonicalize": "^2.0.0",
|
|
52
52
|
"date-fns": "^3.0.0",
|
|
@@ -62,9 +62,11 @@
|
|
|
62
62
|
"uuid": "11.0.5"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
+
"@aws-sdk/client-ses": "^3.731.1",
|
|
66
|
+
"@aws-sdk/client-sns": "^3.731.1",
|
|
65
67
|
"@spencejs/spence-factories": "0.10.2",
|
|
66
|
-
"@velocitycareerlabs/test-regexes": "1.25.0-dev-build.
|
|
67
|
-
"@velocitycareerlabs/tests-helpers": "1.25.0-dev-build.
|
|
68
|
+
"@velocitycareerlabs/test-regexes": "1.25.0-dev-build.17bda9234",
|
|
69
|
+
"@velocitycareerlabs/tests-helpers": "1.25.0-dev-build.17bda9234",
|
|
68
70
|
"dotenv": "16.4.7",
|
|
69
71
|
"eslint": "8.57.1",
|
|
70
72
|
"eslint-config-airbnb-base": "14.2.1",
|
|
@@ -80,5 +82,5 @@
|
|
|
80
82
|
"nodemon": "3.1.9",
|
|
81
83
|
"prettier": "2.8.8"
|
|
82
84
|
},
|
|
83
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "074a23a94e8653649e08e2a69408dab75037c436"
|
|
84
86
|
}
|
|
@@ -2,11 +2,13 @@ require('aws-sdk');
|
|
|
2
2
|
const { errorResponseMatcher } = require('@velocitycareerlabs/tests-helpers');
|
|
3
3
|
const buildFastify = require('./helpers/careerwallet-build-fastify');
|
|
4
4
|
|
|
5
|
-
const mockSendEmail = jest.fn()
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
const mockSendEmail = jest.fn((payload) => payload);
|
|
6
|
+
|
|
7
|
+
jest.mock('@aws-sdk/client-ses', () => ({
|
|
8
|
+
SendEmailCommand: jest.fn((args) => args),
|
|
9
|
+
SESClient: jest.fn().mockImplementation(() => ({
|
|
10
|
+
send: mockSendEmail,
|
|
11
|
+
})),
|
|
10
12
|
}));
|
|
11
13
|
|
|
12
14
|
describe('Feedback controller test suite', () => {
|
|
@@ -4,7 +4,6 @@ const { subMinutes, addHours } = require('date-fns/fp');
|
|
|
4
4
|
const { forEach } = require('lodash/fp');
|
|
5
5
|
const { nanoid } = require('nanoid/non-secure');
|
|
6
6
|
const { decodeCredentialJwt } = require('@velocitycareerlabs/jwt');
|
|
7
|
-
const { initVerifyDomain } = require('@velocitycareerlabs/aws-clients');
|
|
8
7
|
const { errorResponseMatcher } = require('@velocitycareerlabs/tests-helpers');
|
|
9
8
|
const { ObjectId } = require('mongodb');
|
|
10
9
|
const { hashAndEncodeHex } = require('@velocitycareerlabs/crypto/src/crypto');
|
|
@@ -23,6 +22,22 @@ const {
|
|
|
23
22
|
incorrectScopeExpectation,
|
|
24
23
|
} = require('./helpers/access-token');
|
|
25
24
|
|
|
25
|
+
const mockSend = jest.fn((payload) => payload);
|
|
26
|
+
|
|
27
|
+
jest.mock('@aws-sdk/client-ses', () => ({
|
|
28
|
+
SendEmailCommand: jest.fn((args) => args),
|
|
29
|
+
SESClient: jest.fn().mockImplementation(() => ({
|
|
30
|
+
send: mockSend,
|
|
31
|
+
})),
|
|
32
|
+
}));
|
|
33
|
+
|
|
34
|
+
jest.mock('@aws-sdk/client-sns', () => ({
|
|
35
|
+
PublishCommand: jest.fn((args) => args),
|
|
36
|
+
SNSClient: jest.fn().mockImplementation(() => ({
|
|
37
|
+
send: mockSend,
|
|
38
|
+
})),
|
|
39
|
+
}));
|
|
40
|
+
|
|
26
41
|
describe('Email & Phone Verification', () => {
|
|
27
42
|
let fastify;
|
|
28
43
|
let persistVerification;
|
|
@@ -49,7 +64,6 @@ describe('Email & Phone Verification', () => {
|
|
|
49
64
|
({ persistVerificationOffer } = initVerificationOfferFactory(fastify));
|
|
50
65
|
({ persistVerificationCodeAttempt } =
|
|
51
66
|
initVerificationCodeAttemptsFactory(fastify));
|
|
52
|
-
await initVerifyDomain(fastify.config)('example.com');
|
|
53
67
|
}, 30000);
|
|
54
68
|
|
|
55
69
|
beforeEach(async () => {
|