@mojaloop/database-lib 11.3.2 → 11.3.4
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/.circleci/config.yml +22 -1
- package/.grype.yaml +36 -10
- package/CHANGELOG.md +4 -0
- package/README.md +4 -0
- package/package.json +8 -7
package/.circleci/config.yml
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
|
+
# CircleCI configuration using the mojaloop/build orb
|
|
2
|
+
# This streamlined config uses the mojaloop/build orb for standardized CI/CD workflows
|
|
3
|
+
#
|
|
4
|
+
# The orb automatically handles:
|
|
5
|
+
# - PR title checking
|
|
6
|
+
# - Dependency installation and caching
|
|
7
|
+
# - Linting
|
|
8
|
+
# - Unit, integration, and functional testing
|
|
9
|
+
# - Vulnerability checking (npm audit)
|
|
10
|
+
# - License scanning
|
|
11
|
+
# - Grype security scanning (source code scanning for this library)
|
|
12
|
+
# - Automated releases to npm and GitHub
|
|
13
|
+
# - Slack notifications
|
|
14
|
+
#
|
|
15
|
+
# To enable this configuration:
|
|
16
|
+
# 1. Go to CircleCI project settings → Advanced
|
|
17
|
+
# 2. Ensure "Enable dynamic config using setup workflows" is enabled
|
|
18
|
+
|
|
1
19
|
version: 2.1
|
|
2
20
|
setup: true
|
|
21
|
+
|
|
3
22
|
orbs:
|
|
4
|
-
build: mojaloop/build@1.1.
|
|
23
|
+
build: mojaloop/build@1.1.6
|
|
24
|
+
|
|
5
25
|
workflows:
|
|
6
26
|
setup:
|
|
7
27
|
jobs:
|
|
8
28
|
- build/workflow:
|
|
29
|
+
context: org-global
|
|
9
30
|
filters:
|
|
10
31
|
tags:
|
|
11
32
|
only: /v\d+(\.\d+){2}(-[a-zA-Z-][0-9a-zA-Z-]*\.\d+)?/
|
package/.grype.yaml
CHANGED
|
@@ -1,14 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
# Grype vulnerability scanning configuration for database-lib
|
|
2
|
+
# This is a library project without Docker images, so we use source scanning
|
|
3
|
+
scan-type: source
|
|
2
4
|
|
|
5
|
+
# Enable vulnerability scanning
|
|
6
|
+
disabled: false
|
|
7
|
+
|
|
8
|
+
# Vulnerability ignore rules
|
|
9
|
+
# Add specific CVEs here if they are false positives or acceptable risks
|
|
3
10
|
ignore:
|
|
11
|
+
# Example format for ignoring specific vulnerabilities:
|
|
12
|
+
# - vulnerability: "CVE-2023-xxxxx"
|
|
13
|
+
# reason: "False positive in dev dependency that doesn't affect production"
|
|
14
|
+
# - vulnerability: "GHSA-xxxx-xxxx-xxxx"
|
|
15
|
+
# package:
|
|
16
|
+
# name: "package-name"
|
|
17
|
+
# version: "1.0.0"
|
|
18
|
+
# reason: "Not exploitable in our usage context"
|
|
4
19
|
|
|
5
|
-
#
|
|
20
|
+
# Output formats for scan results
|
|
6
21
|
output:
|
|
7
|
-
- "table"
|
|
8
|
-
- "json"
|
|
9
|
-
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
22
|
+
- "table" # Human-readable table format
|
|
23
|
+
- "json" # Machine-readable JSON for further processing
|
|
24
|
+
|
|
25
|
+
# Grype configuration options
|
|
26
|
+
quiet: false # Show progress and status messages
|
|
27
|
+
check-for-app-update: false # Don't check for Grype updates during CI
|
|
28
|
+
only-fixed: false # Show all vulnerabilities, not just those with fixes
|
|
29
|
+
add-cpes-if-none: false # Don't add CPEs if none are found
|
|
30
|
+
by-cve: false # Group by vulnerability rather than CVE
|
|
31
|
+
|
|
32
|
+
# Database settings
|
|
33
|
+
db:
|
|
34
|
+
auto-update: true # Auto-update the vulnerability database
|
|
35
|
+
validate-age: true # Validate the age of the vulnerability database
|
|
36
|
+
max-allowed-built-age: 120h # Maximum age of the vulnerability database (5 days)
|
|
37
|
+
|
|
38
|
+
# Severity thresholds (handled by the orb, but documented here for clarity)
|
|
39
|
+
# The build will fail on Critical, High, or Medium severity vulnerabilities
|
|
40
|
+
# Low and Negligible severities are reported but won't fail the build
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [11.3.4](https://github.com/mojaloop/database-lib/compare/v11.3.3...v11.3.4) (2025-11-05)
|
|
6
|
+
|
|
7
|
+
### [11.3.3](https://github.com/mojaloop/database-lib/compare/v11.3.2...v11.3.3) (2025-09-26)
|
|
8
|
+
|
|
5
9
|
### [11.3.2](https://github.com/mojaloop/database-lib/compare/v11.3.1...v11.3.2) (2025-07-23)
|
|
6
10
|
|
|
7
11
|
### [11.3.1](https://github.com/mojaloop/database-lib/compare/v11.3.0...v11.3.1) (2025-07-21)
|
package/README.md
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
Shared database code for central services
|
|
9
9
|
|
|
10
|
+
## CI/CD
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
10
14
|
Contents:
|
|
11
15
|
|
|
12
16
|
- [Usage](#usage)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/database-lib",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.4",
|
|
4
4
|
"description": "Shared database code for central services",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"release": "standard-version --releaseCommitMessageFormat 'chore(release): {{currentTag}} [skip ci]'"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@mojaloop/central-services-error-handling": "13.1.
|
|
47
|
+
"@mojaloop/central-services-error-handling": "13.1.3",
|
|
48
48
|
"async-exit-hook": "^2.0.1",
|
|
49
49
|
"knex": "3.1.0",
|
|
50
50
|
"lodash": "4.17.21",
|
|
51
51
|
"mysql": "^2.18.1",
|
|
52
|
-
"mysql2": "^3.
|
|
52
|
+
"mysql2": "^3.15.3"
|
|
53
53
|
},
|
|
54
54
|
"overrides": {
|
|
55
55
|
"form-data": "4.0.4",
|
|
@@ -71,13 +71,14 @@
|
|
|
71
71
|
"cross-spawn": "7.0.6",
|
|
72
72
|
"trim": "0.0.3",
|
|
73
73
|
"undici": "6.21.2",
|
|
74
|
-
"yargs-parser": "21.1.1"
|
|
74
|
+
"yargs-parser": "21.1.1",
|
|
75
|
+
"validator": "13.15.20"
|
|
75
76
|
},
|
|
76
77
|
"devDependencies": {
|
|
77
|
-
"@mojaloop/sdk-standard-components": "19.
|
|
78
|
+
"@mojaloop/sdk-standard-components": "19.18.0",
|
|
78
79
|
"audit-ci": "^7.1.0",
|
|
79
|
-
"jest": "^30.0
|
|
80
|
-
"npm-check-updates": "
|
|
80
|
+
"jest": "^30.2.0",
|
|
81
|
+
"npm-check-updates": "19.1.2",
|
|
81
82
|
"nyc": "17.1.0",
|
|
82
83
|
"pre-commit": "1.2.2",
|
|
83
84
|
"proxyquire": "2.1.3",
|