Skip to content

Commit fd401c3

Browse files
authored
chore: add initial sbom (#31)
1 parent 6bc86ba commit fd401c3

File tree

10 files changed

+3201
-890
lines changed

10 files changed

+3201
-890
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22
setup: true
33
orbs:
4-
build: mojaloop/build@1.0.66
4+
build: mojaloop/build@1.1.0
55
workflows:
66
setup:
77
jobs:

package-lock.json

Lines changed: 1844 additions & 859 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@
7070
},
7171
"dependencies": {
7272
"@mojaloop/central-services-logger": "11.9.0",
73-
"@mojaloop/ml-testing-toolkit-shared-lib": "14.0.5",
74-
"@mojaloop/sdk-standard-components": "19.15.2",
73+
"@mojaloop/ml-testing-toolkit-shared-lib": "14.2.0",
74+
"@mojaloop/sdk-standard-components": "19.16.0",
7575
"@slack/webhook": "7.0.5",
7676
"atob": "2.1.2",
7777
"aws-sdk": "2.1692.0",
78-
"axios": "1.9.0",
78+
"axios": "1.10.0",
7979
"cli-table3": "0.6.5",
8080
"commander": "14.0.0",
81-
"dotenv": "16.5.0",
81+
"dotenv": "17.2.0",
8282
"fs": "0.0.1-security",
8383
"lodash": "4.17.21",
8484
"mv": "2.1.1",
@@ -91,14 +91,14 @@
9191
},
9292
"devDependencies": {
9393
"audit-ci": "7.1.0",
94-
"jest": "29.7.0",
94+
"jest": "30.0.4",
9595
"jest-junit": "16.0.0",
9696
"npm-check-updates": "18.0.1",
9797
"nyc": "17.1.0",
9898
"parse-strings-in-object": "1.6.0",
9999
"pre-commit": "1.2.2",
100100
"replace": "1.2.2",
101-
"sinon": "20.0.0",
101+
"sinon": "21.0.0",
102102
"standard": "17.1.2",
103103
"standard-version": "9.5.0"
104104
},

sbom-v1.10.0.csv

Lines changed: 1326 additions & 0 deletions
Large diffs are not rendered by default.

test/unit/client.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ describe('Cli client', () => {
3636
spyRouter.mockReturnValueOnce({})
3737
expect(() => {
3838
require('../../src/client')
39-
}).not.toThrowError();
39+
}).not.toThrow();
4040
})
4141
})

test/unit/listener.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('Cli client', () => {
4545
})
4646
expect(() => {
4747
listeners.outbound()
48-
}).not.toThrowError();
48+
}).not.toThrow();
4949
})
5050
it('running the monitoring listener should not throw an error', async () => {
5151
const monitoring = require('../../src/modes/monitoring')
@@ -57,7 +57,7 @@ describe('Cli client', () => {
5757
})
5858
expect(() => {
5959
listeners.monitoring()
60-
}).not.toThrowError();
60+
}).not.toThrow();
6161
})
6262
})
6363
})

test/unit/logger.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,14 @@ describe('Cli client', () => {
229229
objectStore.get.mockReturnValueOnce({})
230230
expect(() => {
231231
logger.outbound(sampleOutboundProgress)
232-
}).not.toThrowError()
232+
}).not.toThrow()
233233
})
234234
it('when extraSummaryInformation is supplied, it should be logged', async () => {
235235
objectStore.get.mockReturnValueOnce({
236236
extraSummaryInformation: 'Title:Mocktitle,Summary:MockSummary'
237237
})
238238
logger.outbound(sampleOutboundProgress)
239-
expect(spyConsole).toBeCalled()
239+
expect(spyConsole).toHaveBeenCalled()
240240
})
241241
it('when the cli mode is monitoring should not throw an error 1', async () => {
242242
const sampleMonitoringProgress = {
@@ -247,7 +247,7 @@ describe('Cli client', () => {
247247
}
248248
expect(() => {
249249
logger.monitoring(sampleMonitoringProgress)
250-
}).not.toThrowError()
250+
}).not.toThrow()
251251
})
252252
it('when the cli mode is monitoring should not throw an error 2', async () => {
253253
const sampleMonitoringProgress = {
@@ -258,7 +258,7 @@ describe('Cli client', () => {
258258
}
259259
expect(() => {
260260
logger.monitoring(sampleMonitoringProgress)
261-
}).not.toThrowError()
261+
}).not.toThrow()
262262
})
263263
})
264264
})

test/unit/monitoring-mode.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('Cli client', () => {
3737
jest.spyOn(logger, 'monitoring').mockReturnValueOnce({})
3838
expect(() => {
3939
monitoringMode.handleIncomingProgress({})
40-
}).not.toThrowError()
40+
}).not.toThrow()
4141
})
4242
})
4343
})

test/unit/outbound-mode.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('Cli client', () => {
5050
spyExit.mockReturnValueOnce({})
5151
expect(() => {
5252
outbound.handleIncomingProgress(progress)
53-
}).not.toThrowError()
53+
}).not.toThrow()
5454
})
5555
it('when status is FINISHED, assertions passed and there is an error should not throw an error', async () => {
5656
const progress = {
@@ -61,7 +61,7 @@ describe('Cli client', () => {
6161
spyExit.mockReturnValueOnce({})
6262
expect(() => {
6363
outbound.handleIncomingProgress(progress)
64-
}).not.toThrowError()
64+
}).not.toThrow()
6565
})
6666
it('when status is FINISHED and assertions failed should not throw an error', async () => {
6767
const progress = {
@@ -72,7 +72,7 @@ describe('Cli client', () => {
7272
spyExit.mockReturnValueOnce({})
7373
expect(() => {
7474
outbound.handleIncomingProgress(progress)
75-
}).not.toThrowError()
75+
}).not.toThrow()
7676
})
7777
it('when status is not FINISHED should not throw an error', async () => {
7878
const progress = {
@@ -81,7 +81,7 @@ describe('Cli client', () => {
8181
spyExit.mockReturnValueOnce({})
8282
expect(() => {
8383
outbound.handleIncomingProgress(progress)
84-
}).not.toThrowError()
84+
}).not.toThrow()
8585
})
8686
})
8787
describe('when status is not FINISHED should not throw an error where there are assertions', () => {
@@ -125,7 +125,7 @@ describe('Cli client', () => {
125125
spyExit.mockReturnValueOnce({})
126126
expect(() => {
127127
outbound.handleIncomingProgress(progress)
128-
}).not.toThrowError()
128+
}).not.toThrow()
129129
})
130130
it('With loglevel 1', async () => {
131131
const config = {
@@ -138,7 +138,7 @@ describe('Cli client', () => {
138138
spyExit.mockReturnValueOnce({})
139139
expect(() => {
140140
outbound.handleIncomingProgress(progress)
141-
}).not.toThrowError()
141+
}).not.toThrow()
142142
})
143143
it('With loglevel 2', async () => {
144144
const config = {
@@ -151,7 +151,7 @@ describe('Cli client', () => {
151151
spyExit.mockReturnValueOnce({})
152152
expect(() => {
153153
outbound.handleIncomingProgress(progress)
154-
}).not.toThrowError()
154+
}).not.toThrow()
155155
})
156156
})
157157
describe('run sendTemplate', () => {

test/unit/router.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('Cli client', () => {
5959
spyExit.mockImplementationOnce(jest.fn())
6060
expect(() => {
6161
cli(config)
62-
}).not.toThrowError()
62+
}).not.toThrow()
6363
})
6464
it('when mode is outbound and inputFiles is provided should not throw an error', async () => {
6565
const config = {
@@ -69,7 +69,7 @@ describe('Cli client', () => {
6969
spyExit.mockImplementationOnce(jest.fn())
7070
expect(() => {
7171
cli(config)
72-
}).not.toThrowError()
72+
}).not.toThrow()
7373
expect(spyExit).toHaveBeenCalledWith(1)
7474
})
7575
it('when mode is outbound, inputFiles and environmentFile is provided should not throw an error', async () => {
@@ -81,7 +81,7 @@ describe('Cli client', () => {
8181
spyExit.mockImplementationOnce(jest.fn())
8282
expect(() => {
8383
cli(config)
84-
}).not.toThrowError()
84+
}).not.toThrow()
8585
jest.advanceTimersByTime(1000 * 60 * 15)
8686
expect(spyExit).toHaveBeenCalledWith(1)
8787
})
@@ -92,7 +92,7 @@ describe('Cli client', () => {
9292
spyExit.mockImplementationOnce(jest.fn())
9393
expect(() => {
9494
cli(config)
95-
}).not.toThrowError()
95+
}).not.toThrow()
9696
expect(spyExit).toHaveBeenCalledWith(1)
9797
})
9898
it('when mode is testcaseDefinitionReport and inputFile was provided should not throw an error', async () => {
@@ -103,7 +103,7 @@ describe('Cli client', () => {
103103
spyExit.mockImplementationOnce(jest.fn())
104104
expect(() => {
105105
cli(config)
106-
}).not.toThrowError()
106+
}).not.toThrow()
107107
})
108108
it('when mode is testcaseDefinitionReport and inputFile was not provided should not throw an error', async () => {
109109
const config = {
@@ -112,7 +112,7 @@ describe('Cli client', () => {
112112
spyExit.mockImplementationOnce(jest.fn())
113113
expect(() => {
114114
cli(config)
115-
}).not.toThrowError()
115+
}).not.toThrow()
116116
expect(spyExit).toHaveBeenCalledWith(1)
117117
})
118118
it('when mode is not supported should not throw an error', async () => {
@@ -122,16 +122,16 @@ describe('Cli client', () => {
122122
spyExit.mockImplementationOnce(jest.fn())
123123
expect(() => {
124124
cli(config)
125-
}).not.toThrowError()
125+
}).not.toThrow()
126126
expect(spyExit).toHaveBeenCalledWith(1)
127127
})
128128
it('when mode is not provided should not throw an error', async () => {
129129
const config = {}
130130
spyExit.mockImplementationOnce(jest.fn())
131131
expect(() => {
132132
cli(config)
133-
}).not.toThrowError()
133+
}).not.toThrow()
134134
expect(spyExit).toHaveBeenCalledWith(1)
135135
})
136136
})
137-
})
137+
})

0 commit comments

Comments
 (0)