ac-byteconverter 1.0.4 → 1.0.6

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/.ncurc.js ADDED
@@ -0,0 +1,8 @@
1
+ // List packages for minor updates
2
+ const minorUpdatePackages = ['chai']
3
+
4
+ module.exports = {
5
+ target: packageName => {
6
+ return minorUpdatePackages.includes(packageName) ? 'minor' : 'latest'
7
+ }
8
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ <a name="1.0.6"></a>
2
+
3
+ ## [1.0.6](https://github.com/mmpro/ac-byteconverter/compare/v1.0.5..v1.0.6) (2024-06-05 14:54:47)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Package updates | MP | [d754df0f2f1ead83bc4a5de2e9127265900fa69a](https://github.com/mmpro/ac-byteconverter/commit/d754df0f2f1ead83bc4a5de2e9127265900fa69a)
9
+ Package updates
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
11
+ <a name="1.0.5"></a>
12
+
13
+ ## [1.0.5](https://github.com/mmpro/ac-byteconverter/compare/v1.0.4..v1.0.5) (2023-07-21 13:10:57)
14
+
15
+
16
+ ### Bug Fix
17
+
18
+ * **App:** Package updates | MP | [56cbae1d5b4d65de6c0cfa8687c6875970fb1dda](https://github.com/mmpro/ac-byteconverter/commit/56cbae1d5b4d65de6c0cfa8687c6875970fb1dda)
19
+ Package updates
20
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
21
+ ### Tests
22
+
23
+ * **App:** Replace expect with mocha/chai | MP | [506a4570967cba9621411bc33fa5e5da9826fb69](https://github.com/mmpro/ac-byteconverter/commit/506a4570967cba9621411bc33fa5e5da9826fb69)
24
+ Replace expect with mocha/chai
25
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
1
26
  <a name="1.0.4"></a>
2
27
 
3
28
  ## [1.0.4](https://github.com/mmpro/ac-byteconverter/compare/v1.0.3..v1.0.4) (2021-10-09 10:01:46)
@@ -0,0 +1,29 @@
1
+ const globals = require('globals');
2
+
3
+ module.exports = [
4
+ {
5
+ languageOptions: {
6
+ ecmaVersion: 2022,
7
+ sourceType: 'module',
8
+ globals: {
9
+ ...globals.commonjs,
10
+ ...globals.es6,
11
+ ...globals.node,
12
+ expect: 'readonly',
13
+ describe: 'readonly',
14
+ it: 'readonly'
15
+ }
16
+ },
17
+ rules: {
18
+ 'space-before-function-paren': 'off',
19
+ 'no-extra-semi': 'off',
20
+ 'object-curly-spacing': ['error', 'always'],
21
+ 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
22
+ 'no-useless-escape': 'off',
23
+ 'standard/no-callback-literal': 'off',
24
+ 'new-cap': 'off',
25
+ 'no-console': ['error', { allow: ['error'] }]
26
+ },
27
+ ignores: ['temp.js', 'config/*']
28
+ }
29
+ ];
package/package.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
5
  "repository": "admiralcloud/ac-byteconverter",
6
- "version": "1.0.4",
6
+ "version": "1.0.6",
7
7
  "dependencies": {
8
8
  "lodash": "^4.17.21"
9
9
  },
10
10
  "devDependencies": {
11
- "ac-semantic-release": "^0.2.6",
12
- "eslint": "^7.32.0",
13
- "expect": "^27.2.5",
14
- "mocha": "^9.1.2"
11
+ "ac-semantic-release": "^0.4.2",
12
+ "chai": "^4.4.1",
13
+ "eslint": "^9.4.0",
14
+ "mocha": "^10.4.0"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "mocha --reporter spec"
package/test/test.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const _ = require('lodash')
2
- const expect = require('expect')
2
+ const { expect } = require('chai')
3
3
  const byteConverter = require('../index')
4
4
 
5
5
  const formatTests = [
@@ -53,7 +53,7 @@ describe('TESTING byteConversion', function () {
53
53
  let options = _.get(test, 'options', {})
54
54
  let unit = _.get(test, 'unit')
55
55
  let r = byteConverter.format(test.value, unit, options)
56
- expect(r).toEqual(test.expected)
56
+ expect(r).to.eql(test.expected)
57
57
  return done()
58
58
  })
59
59
  })
@@ -64,7 +64,7 @@ describe('TESTING byteConversion', function () {
64
64
  it(test.name, function(done) {
65
65
  let options = _.get(test, 'options', {})
66
66
  let r = byteConverter.parse(test.value, options)
67
- expect(r).toEqual(test.expected)
67
+ expect(r).to.eql(test.expected)
68
68
  return done()
69
69
  })
70
70
  })
@@ -76,7 +76,7 @@ describe('TESTING byteConversion', function () {
76
76
  let options = _.get(test, 'options', {})
77
77
  let unit = _.get(test, 'unit')
78
78
  let r = byteConverter.format(test.value, unit, options)
79
- expect(r).toEqual(test.expected)
79
+ expect(r).to.eql(test.expected)
80
80
  return done()
81
81
  })
82
82
  })
@@ -87,7 +87,7 @@ describe('TESTING byteConversion', function () {
87
87
  it(test.name, function(done) {
88
88
  let options = _.get(test, 'options', {})
89
89
  let r = byteConverter.parse(test.value, options)
90
- expect(r).toEqual(test.expected)
90
+ expect(r).to.eql(test.expected)
91
91
  return done()
92
92
  })
93
93
  })
package/.eslintrc.js DELETED
@@ -1,27 +0,0 @@
1
- const config = {
2
- root: true,
3
- 'env': {
4
- 'commonjs': true,
5
- 'es6': true,
6
- 'node': true
7
- },
8
- 'extends': 'eslint:recommended',
9
- "rules": {
10
- "space-before-function-paren": 0,
11
- "no-extra-semi": 0,
12
- "object-curly-spacing": ["error", "always"],
13
- "brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
14
- "no-useless-escape": 0,
15
- "standard/no-callback-literal": 0,
16
- "new-cap": 0
17
- },
18
- globals: {
19
- describe: true,
20
- it: true
21
- },
22
- 'parserOptions': {
23
- 'ecmaVersion': 2018
24
- },
25
- }
26
-
27
- module.exports = config