Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"fixed": [["@powersync/service-core", "@powersync/service-image"]],
"linked": [],
"access": "restricted",
"baseBranch": "origin/main",
Expand Down
2 changes: 1 addition & 1 deletion packages/service-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.18.1",
"version": "1.6.999",
"main": "dist/index.js",
"license": "FSL-1.1-Apache-2.0",
"type": "module",
Expand Down
10 changes: 5 additions & 5 deletions packages/service-core/test/src/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ describe('JWT Auth', () => {
).rejects.toThrow('Token must expire in a maximum of');
});

test('http', async () => {
test('http', { timeout: 20_000 }, async () => {
// Not ideal to rely on an external endpoint for tests, but it is good to test that this
// one actually works.
const remote = new RemoteJWKSCollector(
Expand All @@ -290,9 +290,9 @@ describe('JWT Auth', () => {
reject_ip_ranges: ['local']
}
});
expect(invalid.getKeys()).rejects.toThrow('IPs in this range are not supported');
await expect(invalid.getKeys()).rejects.toThrow('IPs in this range are not supported');

// IPS throw an error immediately
// IPs throw an error immediately
expect(
() =>
new RemoteJWKSCollector('https://127.0.0.1/.well-known/jwks.json', {
Expand All @@ -315,11 +315,11 @@ describe('JWT Auth', () => {

const invalid = new RemoteJWKSCollector('https://127.0.0.1/.well-known/jwks.json');
// Should try and fetch
expect(invalid.getKeys()).rejects.toThrow();
await expect(invalid.getKeys()).rejects.toThrow();

const invalid2 = new RemoteJWKSCollector('https://localhost/.well-known/jwks.json');
// Should try and fetch
expect(invalid2.getKeys()).rejects.toThrow();
await expect(invalid2.getKeys()).rejects.toThrow();
});

test('caching', async () => {
Expand Down
2 changes: 1 addition & 1 deletion service/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@powersync/service-image",
"version": "1.4.1",
"version": "1.6.999",
"private": true,
"license": "FSL-1.1-Apache-2.0",
"type": "module",
Expand Down
Loading