@kronos-integration/service-authenticator 1.6.71 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-authenticator",
3
- "version": "1.6.71",
3
+ "version": "2.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -29,19 +29,18 @@
29
29
  "lint:docs": "documentation lint ./src/**/*.mjs"
30
30
  },
31
31
  "dependencies": {
32
- "@kronos-integration/endpoint": "^10.0.0",
33
- "@kronos-integration/service": "^12.0.3",
34
- "jsonwebtoken": "^9.0.2",
35
- "model-attributes": "^4.3.0"
32
+ "@kronos-integration/endpoint": "^10.0.3",
33
+ "@kronos-integration/service": "^12.0.4",
34
+ "jsonwebtoken": "^9.0.2"
36
35
  },
37
36
  "devDependencies": {
38
- "ava": "^6.1.3",
39
- "c8": "^10.1.2",
37
+ "ava": "^6.4.1",
38
+ "c8": "^10.1.3",
40
39
  "documentation": "^14.0.3",
41
- "semantic-release": "^24.1.2"
40
+ "semantic-release": "^24.2.7"
42
41
  },
43
42
  "engines": {
44
- "node": ">=22.11.0"
43
+ "node": ">=22.17.1"
45
44
  },
46
45
  "repository": {
47
46
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  import { promisify } from "node:util";
2
2
  import jwt from "jsonwebtoken";
3
3
  import ms from "ms";
4
- import { mergeAttributes, createAttributes } from "model-attributes";
4
+ import { mergeAttributeDefinitions, prepareAttributesDefinitions } from "pacc";
5
5
  import { Service } from "@kronos-integration/service";
6
6
 
7
7
  export const verifyJWT = promisify(jwt.verify);
@@ -32,8 +32,8 @@ export class ServiceAuthenticator extends Service {
32
32
  static get configurationAttributes() {
33
33
  const algorithm = { default: "RS256", type: "string" };
34
34
 
35
- return mergeAttributes(
36
- createAttributes({
35
+ return mergeAttributeDefinitions(
36
+ prepareAttributesDefinitions({
37
37
  jwt: {
38
38
  description: "jwt related",
39
39
  attributes: {