@actual-app/sync-server 25.12.0-nightly.20251105 → 25.12.0-nightly.20251107

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/build/src/app.js CHANGED
@@ -135,7 +135,6 @@ export async function run() {
135
135
  const hostname = config.get('hostname');
136
136
  const openIdConfig = config?.getProperties()?.openId;
137
137
  if (openIdConfig?.discoveryURL ||
138
- // @ts-expect-error FIXME no types for config yet
139
138
  openIdConfig?.issuer?.authorization_endpoint) {
140
139
  console.log('OpenID configuration found. Preparing server to use it');
141
140
  try {
@@ -182,8 +182,6 @@ const configSchema = convict({
182
182
  },
183
183
  issuer: {
184
184
  doc: 'OpenID issuer',
185
- format: Object,
186
- default: {},
187
185
  name: {
188
186
  doc: 'Name of the provider',
189
187
  default: '',
@@ -90,3 +90,25 @@ describe('tokenExpiration format', () => {
90
90
  expect(() => testSchema.validate()).toThrow(/Invalid token_expiration value/);
91
91
  });
92
92
  });
93
+ describe('config schema', () => {
94
+ it('should parse nested object from environment variables correctly', () => {
95
+ const authorizationEndpoint = 'https://testprovider.com/.well-known/openid-configuration';
96
+ process.env.TEST_OPENID_AUTHORIZATION_ENDPOINT = authorizationEndpoint;
97
+ const testSchema = convict({
98
+ openId: {
99
+ doc: 'OpenID authentication settings.',
100
+ issuer: {
101
+ doc: 'OpenID issuer',
102
+ authorization_endpoint: {
103
+ doc: 'Authorization endpoint',
104
+ default: '',
105
+ format: String,
106
+ env: 'TEST_OPENID_AUTHORIZATION_ENDPOINT',
107
+ },
108
+ },
109
+ },
110
+ });
111
+ expect(() => testSchema.validate()).not.toThrow();
112
+ expect(testSchema.get('openId.issuer.authorization_endpoint')).toBe(authorizationEndpoint);
113
+ });
114
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/sync-server",
3
- "version": "25.12.0-nightly.20251105",
3
+ "version": "25.12.0-nightly.20251107",
4
4
  "license": "MIT",
5
5
  "description": "actual syncing server",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@actual-app/crdt": "2.1.0",
31
- "@actual-app/web": "25.12.0-nightly.20251105",
31
+ "@actual-app/web": "25.12.0-nightly.20251107",
32
32
  "bcrypt": "^6.0.0",
33
33
  "better-sqlite3": "^12.4.1",
34
34
  "convict": "^6.2.4",
@@ -59,11 +59,10 @@
59
59
  "@types/express-actuator": "^1.8.3",
60
60
  "@types/node": "^22.18.11",
61
61
  "@types/supertest": "^6.0.3",
62
- "@vitest/coverage-v8": "3.2.4",
63
62
  "http-proxy-middleware": "^3.0.5",
64
63
  "nodemon": "^3.1.10",
65
64
  "supertest": "^7.1.4",
66
65
  "typescript": "^5.9.3",
67
- "vitest": "^3.2.4"
66
+ "vitest": "^4.0.6"
68
67
  }
69
68
  }