@mojaloop/api-snippets 18.1.1 → 18.2.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/CHANGELOG.md +7 -0
- package/README.md +4 -0
- package/package.json +19 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
# Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
|
|
2
|
+
## [18.2.0](https://github.com/mojaloop/api-snippets/compare/v18.1.1...v18.2.0) (2025-09-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* use ml orb and grype src scan ([#208](https://github.com/mojaloop/api-snippets/issues/208)) ([06520ca](https://github.com/mojaloop/api-snippets/commit/06520cac633e5e5f0860549b51d301e3a785505f))
|
|
8
|
+
|
|
2
9
|
### [18.1.1](https://github.com/mojaloop/api-snippets/compare/v18.1.0...v18.1.1) (2025-07-23)
|
|
3
10
|
|
|
4
11
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@ API Snippets makes it easy to work with Mojaloop's APIs, by breaking down the de
|
|
|
6
6
|
|
|
7
7
|
https://docs.mojaloop.io/api-snippets/
|
|
8
8
|
|
|
9
|
+
## CI/CD
|
|
10
|
+
|
|
11
|
+
This repository uses the [mojaloop/build](https://github.com/mojaloop/ci-config-orb-build) CircleCI orb for standardized CI/CD workflows, including automated Grype vulnerability scanning for source code security.
|
|
12
|
+
|
|
9
13
|
## Usage
|
|
10
14
|
|
|
11
15
|
Install the snippet library
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/api-snippets",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.0",
|
|
4
4
|
"description": "Mojaloop API specification reusable snippets",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -46,15 +46,19 @@
|
|
|
46
46
|
"build:refactor:fspiop:v1.1": "npx ts-node --transpile-only src/scripts/openapi-refactor.ts docs/fspiop-rest-v1.1-openapi3-snippets.yaml docs/fspiop-rest-v1.1-openapi3-snippets.yaml",
|
|
47
47
|
"build:refactor:fspiop:v2.0": "npx ts-node --transpile-only src/scripts/openapi-refactor.ts docs/fspiop-rest-v2.0-openapi3-snippets.yaml docs/fspiop-rest-v2.0-openapi3-snippets.yaml",
|
|
48
48
|
"build:refactor:fspiop:v2.0_ISO20022": "npx ts-node --transpile-only src/scripts/openapi-refactor.ts docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml",
|
|
49
|
-
"lint": "eslint --ext ts --ext js test src",
|
|
50
|
-
"lint:fix": "eslint --fix --ext ts --ext js test src",
|
|
49
|
+
"lint": "npm run build && eslint --ext ts --ext js test src",
|
|
50
|
+
"lint:fix": "npm run build && eslint --fix --ext ts --ext js test src",
|
|
51
51
|
"prepare": "husky install && npm run build",
|
|
52
52
|
"dep:check": "ncu -e 2",
|
|
53
53
|
"dep:update": "ncu -u",
|
|
54
54
|
"release": "standard-version --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'",
|
|
55
55
|
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'",
|
|
56
56
|
"test": "npm run test:unit",
|
|
57
|
-
"test:unit": "jest --testMatch '**/test/dto/*.(test|spec).ts'",
|
|
57
|
+
"test:unit": "npm run build && jest --testMatch '**/test/dto/*.(test|spec).ts'",
|
|
58
|
+
"test:xunit": "npm -s run test:unit",
|
|
59
|
+
"test:integration": "echo 'No integration tests'",
|
|
60
|
+
"test:functional": "echo 'No functional tests'",
|
|
61
|
+
"test:coverage-check": "echo 'No coverage check'",
|
|
58
62
|
"dev:watch": "browser-sync start --server 'docs' --cwd 'docs' --files '*.yaml'"
|
|
59
63
|
},
|
|
60
64
|
"lint-staged": {
|
|
@@ -81,12 +85,12 @@
|
|
|
81
85
|
"dependencies": {
|
|
82
86
|
"@apidevtools/json-schema-ref-parser": "^9.1.2",
|
|
83
87
|
"@redocly/openapi-core": "^1.5.0",
|
|
84
|
-
"commander": "^14.0.
|
|
88
|
+
"commander": "^14.0.1",
|
|
85
89
|
"jest-ts-auto-mock": "^2.1.0",
|
|
86
90
|
"js-yaml": "^4.1.0",
|
|
87
91
|
"json-refs": "^3.0.15",
|
|
88
92
|
"openapi-types": "^12.1.3",
|
|
89
|
-
"openapi-typescript": "^7.
|
|
93
|
+
"openapi-typescript": "^7.9.1",
|
|
90
94
|
"ts-auto-mock": "^3.7.4"
|
|
91
95
|
},
|
|
92
96
|
"overrides": {
|
|
@@ -103,8 +107,8 @@
|
|
|
103
107
|
"@redocly/openapi-cli": "^1.0.0-beta.95",
|
|
104
108
|
"@types/jest": "^30.0.0",
|
|
105
109
|
"@types/js-yaml": "^4.0.9",
|
|
106
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
107
|
-
"@typescript-eslint/parser": "^8.
|
|
110
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
111
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
108
112
|
"audit-ci": "^7.1.0",
|
|
109
113
|
"browser-sync": "^3.0.4",
|
|
110
114
|
"diff": "^8.0.2",
|
|
@@ -115,28 +119,28 @@
|
|
|
115
119
|
"eslint-plugin-cucumber": "^2.0.0",
|
|
116
120
|
"eslint-plugin-import": "^2.32.0",
|
|
117
121
|
"eslint-plugin-node": "^11.1.0",
|
|
118
|
-
"eslint-plugin-prettier": "^5.5.
|
|
122
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
119
123
|
"eslint-plugin-promise": "^6.2.0",
|
|
120
124
|
"eslint-plugin-standard": "^5.0.0",
|
|
121
125
|
"husky": "9.1.7",
|
|
122
|
-
"jest": "^30.
|
|
126
|
+
"jest": "^30.1.3",
|
|
123
127
|
"jest-junit": "^16.0.0",
|
|
124
128
|
"json-schema-to-ts": "^3.1.1",
|
|
125
|
-
"lint-staged": "^16.
|
|
126
|
-
"npm-check-updates": "^18.0
|
|
129
|
+
"lint-staged": "^16.2.0",
|
|
130
|
+
"npm-check-updates": "^18.3.0",
|
|
127
131
|
"prettier": "^3.6.2",
|
|
128
132
|
"standard-version": "^9.5.0",
|
|
129
133
|
"swagger-cli": "^4.0.4",
|
|
130
|
-
"ts-jest": "^29.4.
|
|
134
|
+
"ts-jest": "^29.4.4",
|
|
131
135
|
"ts-node": "^10.9.2",
|
|
132
136
|
"ts-patch": "^3.3.0",
|
|
133
137
|
"tslib": "^2.8.1",
|
|
134
|
-
"typescript": "^5.
|
|
138
|
+
"typescript": "^5.9.2"
|
|
135
139
|
},
|
|
136
140
|
"publishConfig": {
|
|
137
141
|
"registry": "https://registry.npmjs.org/"
|
|
138
142
|
},
|
|
139
143
|
"engines": {
|
|
140
|
-
"node": "22.
|
|
144
|
+
"node": ">=22.x"
|
|
141
145
|
}
|
|
142
146
|
}
|