generated from mojaloop/typescript-svc-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpackage.json
213 lines (213 loc) · 8.83 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
{
"name": "@mojaloop/thirdparty-sdk",
"version": "15.1.3",
"description": "SDK for DFSPs and PISPs to easily integrate with Mojaloop's Third Party API",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=18.x"
},
"scripts": {
"postinstall": "husky install",
"audit:fix": "npm audit fix",
"audit:check": "npx audit-ci --config ./audit-ci.jsonc",
"dep:check": "npx ncu -e 2",
"dep:update": "npx ncu -u",
"build": "npm run build:api && tsc -p ./tsconfig.build.json && cp -R config dist && cp ./src/interface/*.yaml ./dist/src/interface/",
"build:api": "npm run build:openapi",
"build:openapi": "npm run build:openapi:inbound && npm run build:openapi:outbound && npm run build:dto:inbound && npm run build:dto:outbound",
"build:openapi:inbound": "openapi bundle --output ./src/interface/api-inbound.yaml --ext yaml ./src/interface/inbound/api_template/api-inbound-template.yaml",
"build:dto:inbound": "openapi-typescript ./src/interface/api-inbound.yaml --output ./src/interface/inbound/api_interfaces/openapi.d.ts",
"build:openapi:outbound": "openapi bundle --output ./src/interface/api-outbound.yaml --ext yaml ./src/interface/outbound/api_template/api-outbound-template.yaml",
"build:dto:outbound": "openapi-typescript ./src/interface/api-outbound.yaml --output ./src/interface/outbound/api_interfaces/openapi.d.ts; eslint ./src/interface/outbound/api_interfaces/openapi.d.ts --fix",
"validate:api": "npm run validate:api:in; npm run validate:api:out",
"validate:api:in": "swagger-cli validate ./src/interface/api-inbound.yaml",
"validate:api:out": "swagger-cli validate ./src/interface/api-outbound.yaml",
"build:api:ttk": "npm run build:ttk-fspiop:api && npm run build:ttk-3p:api",
"build:ttk-fspiop:api": "openapi bundle --output ./docker/contract/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/api_spec.yaml --ext yaml ./docker/contract/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/api-template.yaml",
"build:ttk-3p:api": "openapi bundle --output ./docker/contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_pisp/api_spec.yaml --ext yaml ./docker/contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_pisp/thirdparty-pisp-api-template.yaml",
"validate:api:ttk": "swagger-cli validate ./docker/contract/ml-testing-toolkit/spec_files/api_definitions/fspiop_1.0/api_spec.yaml; swagger-cli validate ./docker/contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_pisp/thirdparty-pisp-api-template.yaml",
"docker:build": "docker build -t thirdparty-sdk:local -f ./Dockerfile ./",
"docker:run:inbound": "docker run -p 4005:4005 thirdparty-sdk:local npm run start:inbound",
"docker:run:outbound": "docker run -p 4006:4006 thirdparty-sdk:local npm run start:outbound",
"lint": "eslint ./src/**/*.ts ./test/**/*.ts",
"lint:fix": "npm run lint -- --fix",
"pretest": "echo \"pretest - TODO...\"",
"release": "standard-version --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'",
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'",
"standard": "echo '\\033[1;33m This project uses eslint instead of standard. Use `npm run lint` instead.'",
"start:ts": "ts-node --project ./tsconfig.json --files --require tsconfig-paths/register ./src/cli.ts all",
"start": "node ./dist/src/cli.js all",
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/cli.ts",
"test": "npm run test:unit",
"test:bdd": "jest --config './jest.bdd.config.js' --runInBand --testMatch '**/test/step-definitions/**/*.step.ts'",
"test:coverage": "jest --coverage --testMatch '**/test/unit/**/*.(test|spec).ts'",
"test:coverage-check": "jest -w 1 --coverage --testMatch '**/test/unit/**/*.(test|spec).ts'",
"test:integration": "jest --config './jest.integration.config.js' --reporters=default --reporters=jest-junit --testMatch '**/test/integration/**/*.(test|spec).ts' --runInBand",
"test:unit": "jest -w 1 --coverageThreshold='{}' --reporters=default --reporters=jest-junit --testMatch '**/test/unit/**/*.(test|spec).ts'",
"test:junit": "jest -w 1 --coverageThreshold='{}' --reporters=default --reporters=jest-junit --testMatch '**/test/unit/**/*.(test|spec).ts'",
"updates:check": "npm-check-updates",
"updates:update": "npm-check-updates -u && npm install",
"watch": "tsc -w",
"wait-4-docker": "node ./scripts/_wait4_all.js"
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix"
},
"_moduleAliases": {
"~": "dist/src"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mojaloop/thirdparty-sdk.git"
},
"keywords": [
"metrics",
"central",
"services",
"pisp"
],
"author": "Paweł Marzec <pawel.marzec@modusbox.com>",
"contributors": [
"Sridhar Voruganti <sridhar.voruganti@modusbox.com>",
"Lewis Daly <lewisd@crosslaketech.com>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/mojaloop/thirdparty-sdk/issues"
},
"homepage": "https://github.com/mojaloop/thirdparty-sdk#readme",
"dependencies": {
"@hapi/boom": "10.0.1",
"@hapi/good": "9.0.1",
"@hapi/hapi": "21.3.12",
"@hapi/inert": "7.1.0",
"@hapi/vision": "7.0.3",
"@mojaloop/api-snippets": "17.8.0",
"@mojaloop/central-services-error-handling": "13.x.x",
"@mojaloop/central-services-metrics": "12.4.5",
"@mojaloop/central-services-shared": "18.19.0",
"@mojaloop/sdk-scheme-adapter": "18.0.2",
"@mojaloop/sdk-standard-components": "17.1.3",
"ajv": "8.x.x",
"ajv-keywords": "5.x.x",
"atob": "^2.1.2",
"axios": "1.7.9",
"blipp": "^4.0.2",
"commander": "7.2.0",
"convict": "^6.2.4",
"crypto-js": "4.2.0",
"javascript-state-machine": "^3.1.0",
"json-canonicalize": "^1.0.6",
"lodash": "^4.17.21",
"module-alias": "^2.2.3",
"openapi-backend": "5.11.1",
"openapi-jsonschema-parameters": "^12.1.3",
"path": "^0.12.7",
"promise-timeout": "^1.3.0",
"random-word-slugs": "^0.1.7",
"redis": "3.1.2",
"typescript": "5.7.3",
"uuid": "11.1.0",
"ws": "8.18.1"
},
"peerDependencies": {
"ajv": "8.x.x",
"ajv-keywords": "5.x.x"
},
"peerDependenciesMeta": {
"ajv": {
"optional": false
},
"ajv-keyboards": {
"optional": false
}
},
"@comment devDependencies": [
"Caution advised in upgrading redis-mock past 0.52.0. Investigation needed."
],
"devDependencies": {
"@commitlint/cli": "19.7.1",
"@commitlint/config-conventional": "19.7.1",
"@immobiliarelabs/standard-version": "10.3.1",
"@redocly/cli": "1.31.1",
"@types/convict": "6.1.6",
"@types/crypto-js": "4.2.2",
"@types/hapi": "18.0.14",
"@types/hapi__hapi": "21.0.0",
"@types/hapi__inert": "5.2.10",
"@types/hapi__vision": "7.0.2",
"@types/javascript-state-machine": "2.4.6",
"@types/jest": "29.5.14",
"@types/lodash": "4.17.15",
"@types/node": "22.13.5",
"@types/promise-timeout": "1.3.3",
"@types/redis": "2.8.32",
"@types/redis-mock": "0.17.3",
"@types/ws": "8.5.14",
"@typescript-eslint/eslint-plugin": "8.25.0",
"@typescript-eslint/parser": "8.25.0",
"add": "^2.0.6",
"audit-ci": "7.1.0",
"eslint": "9.21.0",
"eslint-config-prettier": "10.0.1",
"eslint-import-resolver-typescript": "3.8.3",
"eslint-plugin-cucumber": "2.0.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "5.2.3",
"eslint-plugin-promise": "7.2.1",
"husky": "9.1.7",
"jest": "29.7.0",
"jest-cucumber": "4.5.0",
"jest-junit": "16.0.0",
"jest-mock-process": "^2.0.0",
"lint-staged": "15.4.3",
"multi-file-swagger": "^2.3.0",
"npm-check-updates": "17.1.15",
"openapi-response-validator": "^12.1.3",
"openapi-typescript": "7.6.1",
"prettier": "3.5.2",
"redis-mock": "0.52.0",
"release-please": "16.17.0",
"source-map-support": "0.5.21",
"swagger-cli": "^4.0.4",
"ts-jest": "29.2.6",
"ts-node": "10.9.2",
"tsconfig-paths": "^4.2.0"
},
"overrides": {
"@mojaloop/central-services-shared": {
"axios": "1.7.9"
},
"@mojaloop/sdk-scheme-adapter": {
"@koa/cors": "5.0.0",
"axios": "1.7.9",
"koa": "2.15.4"
},
"@mojaloop/event-sdk": {
"moment": "2.30.1"
},
"@octokit/plugin-paginate-rest": "11.4.3",
"@octokit/request": "9.2.1",
"@octokit/request-error": "5.1.1",
"ejs": "3.1.10",
"jsonpointer": "5.0.0",
"markdown-it": "12.3.2",
"micromatch": "4.0.8",
"oas-validator": {
"ajv": "6.12.6"
},
"protobufjs": "7.4.0",
"shins": {
"sanitize-html": "2.12.1"
},
"yaml": "2.7.0",
"yargs": "17.6.2",
"yargs-parser": "21.1.1"
}
}