ac-byteconverter 1.0.8 → 1.0.10

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.
@@ -0,0 +1,9 @@
1
+ # Code Owners
2
+ #
3
+ # This file defines who is responsible for code in this repository.
4
+ # Reviews from code owners are automatically requested for pull requests.
5
+ #
6
+ # More info: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
7
+
8
+ # Default owner for everything in the repo
9
+ * @AdmiralCloud/ac-maintainer-backend
package/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
1
 
2
+ ## [1.0.10](https://github.com/mmpro/ac-byteconverter/compare/v1.0.9..v1.0.10) (2026-02-24 16:05:45)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **Misc:** Package updates | MP | [bc0519647f59a5a10cb96a144458319a7010d873](https://github.com/mmpro/ac-byteconverter/commit/bc0519647f59a5a10cb96a144458319a7010d873)
8
+ Package updates incl ESLint 9 -> 10 and lint fixes
9
+ Related issues:
10
+
11
+ ## [1.0.9](https://github.com/mmpro/ac-byteconverter/compare/v1.0.8..v1.0.9) (2026-02-03 08:19:23)
12
+
13
+
14
+ ### Bug Fix
15
+
16
+ * **App:** Package updates | MP | [42a87d94171243670c1eea7c74492996e5f6ac28](https://github.com/mmpro/ac-byteconverter/commit/42a87d94171243670c1eea7c74492996e5f6ac28)
17
+ Package updates
18
+ Related issues:
19
+
2
20
  ## [1.0.8](https://github.com/mmpro/ac-byteconverter/compare/v1.0.7..v1.0.8) (2025-08-30 12:10:25)
3
21
 
4
22
 
package/SECURITY.md ADDED
@@ -0,0 +1,22 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ We only provide security updates for the latest version of this project.
6
+
7
+ If you are using an older version, please upgrade to the latest release to receive security fixes.
8
+
9
+ ## Reporting a Vulnerability
10
+
11
+ If you discover a security vulnerability, please report it by creating a GitHub issue in this repository.
12
+
13
+ Please include the following information:
14
+
15
+ - Description of the vulnerability
16
+ - Steps to reproduce the issue
17
+ - Potential impact
18
+ - Any suggested fixes (if you have them)
19
+
20
+ We will review your report and respond as soon as possible.
21
+
22
+ Thank you for helping keep AdmiralCloud and our users safe!
package/eslint.config.js CHANGED
@@ -1,13 +1,14 @@
1
- const globals = require('globals');
1
+ const globals = require('globals')
2
2
 
3
3
  module.exports = [
4
4
  {
5
+ files: ['index.js', 'test/test.js'],
5
6
  languageOptions: {
6
7
  ecmaVersion: 2022,
7
8
  sourceType: 'module',
8
9
  globals: {
9
10
  ...globals.commonjs,
10
- ...globals.es6,
11
+ ...globals.es2015,
11
12
  ...globals.node,
12
13
  expect: 'readonly',
13
14
  describe: 'readonly',
@@ -15,15 +16,19 @@ module.exports = [
15
16
  }
16
17
  },
17
18
  rules: {
19
+ 'no-const-assign': 'error',
18
20
  'space-before-function-paren': 'off',
19
21
  'no-extra-semi': 'off',
20
22
  'object-curly-spacing': ['error', 'always'],
21
23
  'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
24
+ 'block-spacing': 'error',
22
25
  '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/*']
26
+ 'no-console': ['warn', { allow: ['warn', 'error'] }],
27
+ 'no-unused-vars': 'error',
28
+ 'eqeqeq': 'error',
29
+ 'no-var': 'error',
30
+ 'curly': 'error',
31
+ 'prefer-const': ['error', { ignoreReadBeforeAssign: true }]
32
+ }
28
33
  }
29
- ];
34
+ ]
package/package.json CHANGED
@@ -3,15 +3,16 @@
3
3
  "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
5
  "repository": "admiralcloud/ac-byteconverter",
6
- "version": "1.0.8",
6
+ "version": "1.0.10",
7
7
  "dependencies": {
8
- "lodash": "^4.17.21"
8
+ "lodash": "^4.17.23"
9
9
  },
10
10
  "devDependencies": {
11
- "ac-semantic-release": "^0.4.7",
11
+ "ac-semantic-release": "^0.4.10",
12
12
  "chai": "^4.5.0",
13
- "eslint": "^9.34.0",
14
- "mocha": "^11.7.1"
13
+ "eslint": "^10.0.2",
14
+ "globals": "^17.3.0",
15
+ "mocha": "^11.7.5"
15
16
  },
16
17
  "scripts": {
17
18
  "test": "mocha --reporter spec"
@@ -19,5 +20,9 @@
19
20
  "engines": {
20
21
  "node": ">=10.0.0"
21
22
  },
23
+ "resolutions": {
24
+ "mocha/diff": "^8.0.3",
25
+ "minimatch": "^10.2.1"
26
+ },
22
27
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
23
28
  }
package/test/test.js CHANGED
@@ -50,9 +50,9 @@ describe('TESTING byteConversion', function () {
50
50
  describe('FORMAT Tests', function() {
51
51
  _.forEach(formatTests, (test) => {
52
52
  it(test.name, function(done) {
53
- let options = _.get(test, 'options', {})
54
- let unit = _.get(test, 'unit')
55
- let r = byteConverter.format(test.value, unit, options)
53
+ const options = _.get(test, 'options', {})
54
+ const unit = _.get(test, 'unit')
55
+ const r = byteConverter.format(test.value, unit, options)
56
56
  expect(r).to.eql(test.expected)
57
57
  return done()
58
58
  })
@@ -62,8 +62,8 @@ describe('TESTING byteConversion', function () {
62
62
  describe('PARSE Tests', function() {
63
63
  _.forEach(parseTests, (test) => {
64
64
  it(test.name, function(done) {
65
- let options = _.get(test, 'options', {})
66
- let r = byteConverter.parse(test.value, options)
65
+ const options = _.get(test, 'options', {})
66
+ const r = byteConverter.parse(test.value, options)
67
67
  expect(r).to.eql(test.expected)
68
68
  return done()
69
69
  })
@@ -73,9 +73,9 @@ describe('TESTING byteConversion', function () {
73
73
  describe('ERROR FORMAT Tests', function() {
74
74
  _.forEach(errorFormatTests, (test) => {
75
75
  it(test.name, function(done) {
76
- let options = _.get(test, 'options', {})
77
- let unit = _.get(test, 'unit')
78
- let r = byteConverter.format(test.value, unit, options)
76
+ const options = _.get(test, 'options', {})
77
+ const unit = _.get(test, 'unit')
78
+ const r = byteConverter.format(test.value, unit, options)
79
79
  expect(r).to.eql(test.expected)
80
80
  return done()
81
81
  })
@@ -85,8 +85,8 @@ describe('TESTING byteConversion', function () {
85
85
  describe('ERROR PARSE Tests', function() {
86
86
  _.forEach(errorParseTests, (test) => {
87
87
  it(test.name, function(done) {
88
- let options = _.get(test, 'options', {})
89
- let r = byteConverter.parse(test.value, options)
88
+ const options = _.get(test, 'options', {})
89
+ const r = byteConverter.parse(test.value, options)
90
90
  expect(r).to.eql(test.expected)
91
91
  return done()
92
92
  })