@actual-app/sync-server 26.1.0-nightly.20251220 → 26.1.0-nightly.20251222
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.
|
@@ -142,9 +142,9 @@ describe('app-cors-proxy', () => {
|
|
|
142
142
|
ipaddr.parse.mockClear?.();
|
|
143
143
|
validateSession.mockReturnValue({ userId: 'test-user' });
|
|
144
144
|
clearAllowlistCache();
|
|
145
|
-
vi.spyOn(console, 'log').mockImplementation(()
|
|
146
|
-
vi.spyOn(console, 'warn').mockImplementation(()
|
|
147
|
-
vi.spyOn(console, 'error').mockImplementation(()
|
|
145
|
+
vi.spyOn(console, 'log').mockImplementation(vi.fn());
|
|
146
|
+
vi.spyOn(console, 'warn').mockImplementation(vi.fn());
|
|
147
|
+
vi.spyOn(console, 'error').mockImplementation(vi.fn());
|
|
148
148
|
});
|
|
149
149
|
describe('CORS preflight', () => {
|
|
150
150
|
it('should handle OPTIONS requests properly', async () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { enableOpenID, getActiveLoginMethod, needsBootstrap, } from '../account-db.js';
|
|
2
2
|
import { config } from '../load-config.js';
|
|
3
3
|
if (needsBootstrap()) {
|
|
4
|
-
console.log(
|
|
4
|
+
console.log("It looks like you don't have a password set yet. Password is the fallback authentication method when using OpenID. Execute the command reset-password before using this command!");
|
|
5
5
|
process.exit(1);
|
|
6
6
|
}
|
|
7
7
|
else {
|
|
@@ -2,7 +2,7 @@ import { bootstrap, needsBootstrap } from '../account-db.js';
|
|
|
2
2
|
import { changePassword } from '../accounts/password.js';
|
|
3
3
|
import { promptPassword } from '../util/prompt.js';
|
|
4
4
|
if (needsBootstrap()) {
|
|
5
|
-
console.log(
|
|
5
|
+
console.log("It looks like you don't have a password set yet. Let's set one up now!");
|
|
6
6
|
try {
|
|
7
7
|
const password = await promptPassword();
|
|
8
8
|
const { error } = await bootstrap({ password });
|
|
@@ -20,7 +20,7 @@ if (needsBootstrap()) {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
|
-
console.log(
|
|
23
|
+
console.log("It looks like you already have a password set. Let's reset it!");
|
|
24
24
|
try {
|
|
25
25
|
const password = await promptPassword();
|
|
26
26
|
const { error } = await changePassword(password);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actual-app/sync-server",
|
|
3
|
-
"version": "26.1.0-nightly.
|
|
3
|
+
"version": "26.1.0-nightly.20251222",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "actual syncing server",
|
|
6
6
|
"bin": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@actual-app/crdt": "2.1.0",
|
|
32
|
-
"@actual-app/web": "26.1.0-nightly.
|
|
32
|
+
"@actual-app/web": "26.1.0-nightly.20251222",
|
|
33
33
|
"bcrypt": "^6.0.0",
|
|
34
34
|
"better-sqlite3": "^12.4.1",
|
|
35
35
|
"convict": "^6.2.4",
|