@mojaloop/ml-number 11.2.5 → 11.2.7

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.
@@ -77,7 +77,7 @@ defaults_configure_nvm: &defaults_configure_nvm
77
77
 
78
78
  if [ -f "$NVM_DIR" ]; then
79
79
  echo "==> $NVM_DIR exists. Skipping steps 2-4!"
80
- else
80
+ else
81
81
  echo "==> $NVM_DIR does not exists. Executing steps 2-4!"
82
82
 
83
83
  echo "2. Installing NVM"
@@ -206,8 +206,8 @@ jobs:
206
206
  key: dependency-cache-{{ .Environment.CIRCLE_SHA1 }}
207
207
  - run:
208
208
  # This is needed for legacy core tests. Remove this once 'tape' is fully deprecated.
209
- name: Install tape, tapes and tap-xunit
210
- command: npm install tape tapes tap-xunit
209
+ name: Install tape and tap-xunit
210
+ command: npm install tape tap-xunit
211
211
  - run:
212
212
  name: Create dir for test results
213
213
  command: mkdir -p ./test/results
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18.17.1
1
+ 18.20.4
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.2.7](https://github.com/mojaloop/ml-number/compare/v11.2.6...v11.2.7) (2025-02-19)
6
+
7
+ ### [11.2.6](https://github.com/mojaloop/ml-number/compare/v11.2.5...v11.2.6) (2025-01-24)
8
+
5
9
  ### [11.2.5](https://github.com/mojaloop/ml-number/compare/v11.2.4...v11.2.5) (2025-01-08)
6
10
 
7
11
  ### [11.2.4](https://github.com/mojaloop/ml-number/compare/v11.2.3...v11.2.4) (2024-04-24)
package/CODEOWNERS CHANGED
@@ -6,7 +6,7 @@
6
6
  ## @global-owner1 and @global-owner2 will be requested for
7
7
  ## review when someone opens a pull request.
8
8
  #* @global-owner1 @global-owner2
9
- * @vijayg10 @mdebarros @elnyry-sam-k @lewisdaly
9
+ * @elnyry-sam-k @bushjames @shashi165 @gibaros
10
10
 
11
11
  ## Order is important; the last matching pattern takes the most
12
12
  ## precedence. When someone opens a pull request that only
package/LICENSE.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # LICENSE
2
2
 
3
- Copyright © 2020 Mojaloop Foundation
3
+ Copyright © 2020-2025 Mojaloop Foundation
4
4
 
5
- The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0
6
- (the "License") and you may not use these files except in compliance with the [License](http://www.apache.org/licenses/LICENSE-2.0).
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License.
7
6
 
8
- You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
7
+ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
9
8
 
10
- Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the [License](http://www.apache.org/licenses/LICENSE-2.0).
9
+ Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/ml-number",
3
- "version": "11.2.5",
3
+ "version": "11.2.7",
4
4
  "description": "Mojaloop Number Library implementation that handles decimal processing of amounts/numbers",
5
5
  "author": "ModusBox",
6
6
  "contributors": [
@@ -29,9 +29,9 @@
29
29
  "standard:fix": "npx standard --fix",
30
30
  "lint": "npm run standard",
31
31
  "lint:fix": "npm run standard:fix",
32
- "test:unit": "tapes 'test/unit/**/**.test.js'",
32
+ "test:unit": "tape 'test/unit/**/**.test.js'",
33
33
  "test:xunit": "npm run test:unit | tap-xunit",
34
- "test:coverage": "nyc --reporter=lcov --reporter=text-summary tapes -- 'test/unit/**/**.test.js'",
34
+ "test:coverage": "nyc --reporter=lcov --reporter=text-summary tape -- 'test/unit/**/**.test.js'",
35
35
  "test:coverage-check": "npm run test:coverage && nyc check-coverage",
36
36
  "audit:fix": "npm audit fix",
37
37
  "audit:check": "npx audit-ci --config ./audit-ci.jsonc",
@@ -50,16 +50,15 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "audit-ci": "^7.1.0",
53
- "eslint": "9.17.0",
53
+ "eslint": "9.20.1",
54
54
  "faucet": "0.0.4",
55
- "npm-check-updates": "17.1.13",
55
+ "npm-check-updates": "17.1.14",
56
56
  "nyc": "17.1.0",
57
57
  "pre-commit": "1.2.2",
58
58
  "standard": "17.1.2",
59
59
  "standard-version": "^9.5.0",
60
60
  "tap-xunit": "2.4.1",
61
- "tape": "5.9.0",
62
- "tapes": "4.1.0"
61
+ "tape": "5.9.0"
63
62
  },
64
63
  "overrides": {
65
64
  "cross-spawn": "7.0.6"
package/src/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
 
7
7
  http://www.apache.org/licenses/LICENSE-2.0
8
8
 
@@ -15,12 +15,12 @@
15
15
  should be listed with a '*' in the first column. People who have
16
16
  contributed from an organization can be listed under the organization
17
17
  that actually holds the copyright for their contributions (see the
18
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
19
19
  their names indented and be marked with a '-'. Email address can be added
20
20
  optionally within square brackets <email>.
21
21
 
22
- * Gates Foundation
23
- - Name Surname <name.surname@gatesfoundation.com>
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
24
24
 
25
25
  * ModusBox
26
26
  - Georgi Georgiev <georgi.georgiev@modusbox.com>
package/src/mlnumber.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
 
7
7
  http://www.apache.org/licenses/LICENSE-2.0
8
8
 
@@ -15,12 +15,12 @@
15
15
  should be listed with a '*' in the first column. People who have
16
16
  contributed from an organization can be listed under the organization
17
17
  that actually holds the copyright for their contributions (see the
18
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
19
19
  their names indented and be marked with a '-'. Email address can be added
20
20
  optionally within square brackets <email>.
21
21
 
22
- * Gates Foundation
23
- - Name Surname <name.surname@gatesfoundation.com>
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
24
24
 
25
25
  * ModusBox
26
26
  - Georgi Georgiev <georgi.georgiev@modusbox.com>
@@ -2,8 +2,8 @@
2
2
  * @file This registers all handlers for the central-ledger API
3
3
  License
4
4
  --------------
5
- Copyright © 2017 Bill & Melinda Gates Foundation
6
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
5
+ Copyright © 2020-2025 Mojaloop Foundation
6
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
7
7
 
8
8
  http://www.apache.org/licenses/LICENSE-2.0
9
9
 
@@ -16,12 +16,12 @@
16
16
  should be listed with a '*' in the first column. People who have
17
17
  contributed from an organization can be listed under the organization
18
18
  that actually holds the copyright for their contributions (see the
19
- Gates Foundation organization for an example). Those individuals should have
19
+ Mojaloop Foundation for an example). Those individuals should have
20
20
  their names indented and be marked with a '-'. Email address can be added
21
21
  optionally within square brackets <email>.
22
22
 
23
- * Gates Foundation
24
- - Name Surname <name.surname@gatesfoundation.com>
23
+ * Mojaloop Foundation
24
+ - Name Surname <name.surname@mojaloop.io>
25
25
 
26
26
  * ModusBox
27
27
  - Rajiv Mothilal <rajiv.mothilal@modusbox.com>
@@ -1,10 +1,13 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+
6
7
  http://www.apache.org/licenses/LICENSE-2.0
8
+
7
9
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10
+
8
11
  Contributors
9
12
  --------------
10
13
  This is the official list of the Mojaloop project contributors for this file.
@@ -12,11 +15,12 @@
12
15
  should be listed with a '*' in the first column. People who have
13
16
  contributed from an organization can be listed under the organization
14
17
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
18
+ Mojaloop Foundation for an example). Those individuals should have
16
19
  their names indented and be marked with a '-'. Email address can be added
17
20
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- * Name Surname <name.surname@gatesfoundation.com>
21
+
22
+ * Mojaloop Foundation
23
+ - Name Surname <name.surname@mojaloop.io>
20
24
 
21
25
  * ModusBox
22
26
  - Georgi Georgiev <georgi.georgiev@modusbox.com>
@@ -26,10 +30,10 @@
26
30
  ******/
27
31
  'use strict'
28
32
 
29
- const Test = require('tapes')(require('tape'))
33
+ const test = require('tape')
30
34
  const MLNumber = require('../../src')
31
35
 
32
- Test('MLNumber', mlNumberTest => {
36
+ test('MLNumber', mlNumberTest => {
33
37
  mlNumberTest.test('sumList should add a list of numbers', test => {
34
38
  const sum = new MLNumber().sumList([1, 2, 3])
35
39
  test.equal(sum.toString(), '6')