ac-custom-error 1.0.6 → 2.0.1

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
@@ -12,11 +12,14 @@ on:
12
12
  jobs:
13
13
  build:
14
14
 
15
+ permissions:
16
+ contents: read
17
+
15
18
  runs-on: ubuntu-latest
16
19
 
17
20
  strategy:
18
21
  matrix:
19
- node-version: [16.x, 18.x]
22
+ node-version: [20.x, 22.x]
20
23
 
21
24
  steps:
22
25
  - uses: actions/checkout@v3
package/CHANGELOG.md CHANGED
@@ -1,4 +1,29 @@
1
1
 
2
+ ## [2.0.1](https://github.com/admiralcloud/ac-custom-error/compare/v2.0.0..v2.0.1) (2026-02-24 16:09:02)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **Misc:** Package updates | MP | [19dd6a387410e576eadbc4f9d089ebc9cc2949b2](https://github.com/admiralcloud/ac-custom-error/commit/19dd6a387410e576eadbc4f9d089ebc9cc2949b2)
8
+ Package updates incl ESLint 9 -> 10 and lint fixes
9
+ Related issues:
10
+
11
+ # [2.0.0](https://github.com/admiralcloud/ac-custom-error/compare/v1.0.6..v2.0.0) (2026-02-03 09:23:24)
12
+
13
+
14
+ ### Bug Fix
15
+
16
+ * **Misc:** Minimum version Node20 | MP | [f9975b7f3f99a0d0f4743387c8f4e477dfe3c339](https://github.com/admiralcloud/ac-custom-error/commit/f9975b7f3f99a0d0f4743387c8f4e477dfe3c339)
17
+ Minimum version Node20
18
+ Related issues:
19
+ ### Chores
20
+
21
+ * **Misc:** Add permission to workflow | MP | [eaadc0bce650011a656be931a84cc7849d48fd5f](https://github.com/admiralcloud/ac-custom-error/commit/eaadc0bce650011a656be931a84cc7849d48fd5f)
22
+ Add permission to workflow
23
+ Related issues:
24
+ ## BREAKING CHANGES
25
+ * **Misc:** Minimum version Node20
26
+
2
27
  ## [1.0.6](https://github.com/admiralcloud/ac-custom-error/compare/v1.0.5..v1.0.6) (2026-02-03 08:05:17)
3
28
 
4
29
 
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!
@@ -0,0 +1,34 @@
1
+ const globals = require('globals')
2
+
3
+ module.exports = [
4
+ {
5
+ files: ['index.js', 'test/test.js'],
6
+ languageOptions: {
7
+ ecmaVersion: 2022,
8
+ sourceType: 'module',
9
+ globals: {
10
+ ...globals.commonjs,
11
+ ...globals.es2015,
12
+ ...globals.node,
13
+ expect: 'readonly',
14
+ describe: 'readonly',
15
+ it: 'readonly'
16
+ }
17
+ },
18
+ rules: {
19
+ 'no-const-assign': 'error',
20
+ 'space-before-function-paren': 'off',
21
+ 'no-extra-semi': 'off',
22
+ 'object-curly-spacing': ['error', 'always'],
23
+ 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
24
+ 'block-spacing': 'error',
25
+ 'no-useless-escape': 'off',
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
+ }
33
+ }
34
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ac-custom-error",
3
- "version": "1.0.6",
3
+ "version": "2.0.1",
4
4
  "description": "Custom NodeJS error with error code and additional info",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/AdmiralCloud/ac-custom-error",
@@ -9,7 +9,8 @@
9
9
  "devDependencies": {
10
10
  "ac-semantic-release": "^0.4.10",
11
11
  "chai": "^4.5.0",
12
- "eslint": "^9.39.2",
12
+ "eslint": "^10.0.2",
13
+ "globals": "^17.3.0",
13
14
  "mocha": "^11.7.5",
14
15
  "nyc": "^17.1.0"
15
16
  },
@@ -18,10 +19,11 @@
18
19
  "coverage": "nyc yarn run test"
19
20
  },
20
21
  "engines": {
21
- "node": ">=16.0.0"
22
+ "node": ">=20.0.0"
22
23
  },
23
24
  "resolutions": {
24
- "mocha/diff": "^8.0.3"
25
+ "mocha/diff": "^8.0.3",
26
+ "minimatch": "^10.2.1"
25
27
  },
26
28
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
27
29
  }
package/.eslintrc.js DELETED
@@ -1,28 +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
- "no-console": ["error", { allow: ["error"] }]
18
- },
19
- 'parserOptions': {
20
- 'ecmaVersion': 2022
21
- },
22
- globals: {
23
- describe: true,
24
- it: true
25
- }
26
- }
27
-
28
- module.exports = config