entitlement-provider 2.10.31 → 2.10.34

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,9 +1,9 @@
1
1
  {
2
2
  "name": "entitlement-provider",
3
- "version": "2.10.31",
3
+ "version": "2.10.34",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
- "provenance": true
6
+ "provenance": false
7
7
  },
8
8
  "description": "provide entitlements via OIDC",
9
9
  "keywords": [
@@ -28,35 +28,36 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@kronos-integration/interceptor-decode-json": "^2.1.76",
31
- "@kronos-integration/service": "^10.5.0",
32
- "@kronos-integration/service-admin": "^3.4.65",
33
- "@kronos-integration/service-authenticator": "^1.6.55",
34
- "@kronos-integration/service-health": "^5.0.179",
35
- "@kronos-integration/service-http": "^10.7.0",
36
- "@kronos-integration/service-ldap": "^4.0.136",
31
+ "@kronos-integration/service": "^11.1.0",
32
+ "@kronos-integration/service-admin": "^3.4.67",
33
+ "@kronos-integration/service-authenticator": "^1.6.57",
34
+ "@kronos-integration/service-health": "^5.1.1",
35
+ "@kronos-integration/service-http": "^10.9.5",
36
+ "@kronos-integration/service-ldap": "^4.0.138",
37
37
  "@kronos-integration/service-smtp": "^1.0.79",
38
38
  "model-attributes": "^4.2.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@semantic-release/commit-analyzer": "^12.0.0",
41
+ "@semantic-release/commit-analyzer": "^13.0.0",
42
42
  "@semantic-release/exec": "^6.0.3",
43
- "@semantic-release/github": "^10.0.4",
44
- "@semantic-release/release-notes-generator": "^13.0.0",
43
+ "@semantic-release/github": "^10.3.5",
44
+ "@semantic-release/release-notes-generator": "^14.0.1",
45
45
  "ava": "^6.1.3",
46
- "c8": "^9.0.0",
47
- "got": "^14.3.0",
48
- "npm-pkgbuild": "^15.3.15",
49
- "semantic-release": "^23.1.1"
46
+ "c8": "^10.1.2",
47
+ "got": "^14.4.2",
48
+ "npm-pkgbuild": "^15.5.0",
49
+ "semantic-release": "^24.1.1"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@kronos-integration/service-systemd": "^2.6.0",
53
- "mf-hosting": "^2.1.1"
52
+ "@kronos-integration/service-systemd": "^2.6.2",
53
+ "mf-hosting": "^2.7.0"
54
54
  },
55
55
  "engines": {
56
- "node": ">=22.0.0"
56
+ "node": ">=22.9.0"
57
57
  },
58
58
  "os": [
59
- "linux"
59
+ "linux",
60
+ "darwin"
60
61
  ],
61
62
  "cpu": [
62
63
  "arm",
@@ -1,24 +1,22 @@
1
1
  import { readFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  import initialize from "./initialize.mjs";
4
+ import pkg from "../package.json" with { type: "json" };
4
5
  import { StandaloneServiceProvider } from "@kronos-integration/service";
5
6
 
6
7
  const args = process.argv.slice(2);
7
- const opt = { encoding: "utf8" };
8
8
 
9
9
  switch (args[0]) {
10
10
  case "--version":
11
11
  {
12
- const { version } = info();
13
- console.log(version);
12
+ console.log(pkg.version);
14
13
  process.exit(0);
15
14
  }
16
15
  break;
17
16
  case "--help":
18
17
  case "-h":
19
18
  {
20
- const { description, version } = info();
21
- console.log(`${description} (${version});
19
+ console.log(`${pkg.description} (${pkg.version});
22
20
  usage:
23
21
  -h --help this help screen
24
22
  -c --config <directory> set config directory`);
@@ -34,13 +32,6 @@ usage:
34
32
 
35
33
  initializeServiceProvider();
36
34
 
37
-
38
- function info() {
39
- return JSON.parse(
40
- readFileSync(new URL("../package.json", import.meta.url).pathname, opt)
41
- );
42
- }
43
-
44
35
  async function initializeServiceProvider() {
45
36
  try {
46
37
  let serviceProvider;
@@ -50,7 +41,7 @@ async function initializeServiceProvider() {
50
41
  } catch (e) {
51
42
  serviceProvider = new StandaloneServiceProvider(
52
43
  JSON.parse(
53
- readFileSync(join(args[1], "config.json"), opt)
44
+ readFileSync(join(args[1], "config.json"), "utf8")
54
45
  )
55
46
  );
56
47
  }