Skip to content

Commit

Permalink
Bump packages and move tests around
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Aug 30, 2024
1 parent 114471f commit d796d10
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 26 deletions.
1 change: 1 addition & 0 deletions example/common.js
8 changes: 4 additions & 4 deletions example/index-v7.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"imports": {
"@sentry/browser": "https://esm.sh/@sentry/[email protected]",
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.43.2",
"@supabase/sentry-js-integration": "./integration.js"
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.45.2",
"@supabase/sentry-js-integration": "./v7.js"
}
}
</script>
Expand All @@ -32,11 +32,11 @@
}),
],
beforeSend(event) {
console.log("Captured exception:", event);
console.log("Captured exception:\n", event);
return null; // Do not send captured exception
},
beforeSendTransaction(event) {
console.log("Captured transaction:", event);
console.log("Captured transaction:\n", event);
return null; // Do not send transaction
},
});
Expand Down
8 changes: 4 additions & 4 deletions example/index-v8.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{
"imports": {
"@sentry/browser": "https://esm.sh/@sentry/[email protected]",
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.43.2",
"@supabase/sentry-js-integration": "./integration.js"
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.45.2",
"@supabase/sentry-js-integration": "./v8.js"
}
}
</script>
Expand All @@ -32,11 +32,11 @@
}),
],
beforeSend(event) {
console.log("Captured exception:", event);
console.log("Captured exception:\n", event);
return null; // Do not send captured exception
},
beforeSendTransaction(event) {
console.log("Captured transaction:", event);
console.log("Captured transaction:\n", event);
return null; // Do not send transaction
},
});
Expand Down
1 change: 0 additions & 1 deletion example/integration.js

This file was deleted.

1 change: 1 addition & 0 deletions example/v7.js
1 change: 1 addition & 0 deletions example/v8.js
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Supabase
Copyright (c) 2024 Supabase

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@supabase/supabase-js": "2.x"
},
"devDependencies": {
"@supabase/supabase-js": "2.43.2",
"eslint": "^8.56.0"
"@supabase/supabase-js": "2.45.2",
"eslint": "8.57.0"
},
"eslintConfig": {
"extends": "eslint:recommended",
Expand Down
2 changes: 1 addition & 1 deletion tests-types/v7/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Sentry from "@sentry/browser";
import * as Sentry from "@sentry/node";
import { SupabaseClient } from "@supabase/supabase-js";
import { SupabaseIntegration } from "@supabase/sentry-js-integration";

Expand Down
7 changes: 3 additions & 4 deletions tests-types/v7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"test": "npx tsc --noemit index.ts"
},
"dependencies": {
"@sentry/browser": "^7.116.0",
"@sentry/types": "^7.116.0",
"@sentry/node": "7.119.0",
"@supabase/sentry-js-integration": "file:../../.",
"@supabase/supabase-js": "^2.43.2",
"typescript": "^5.4.5"
"@supabase/supabase-js": "2.45.2",
"typescript": "5.5.4"
}
}
5 changes: 2 additions & 3 deletions tests-types/v8/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as Sentry from "@sentry/browser";
import * as Sentry from "@sentry/node";
import { SupabaseClient } from "@supabase/supabase-js";
import { supabaseIntegration } from "@supabase/sentry-js-integration";

Sentry.init({
dsn: 'http://asd.com',
dsn: "http://asd.com",
integrations: [
supabaseIntegration(SupabaseClient, Sentry, {
tracing: true,
Expand All @@ -12,4 +12,3 @@ Sentry.init({
}),
],
});

7 changes: 3 additions & 4 deletions tests-types/v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
"test": "npx tsc --noemit index.ts"
},
"dependencies": {
"@sentry/browser": "^8.2.1",
"@sentry/types": "^8.2.1",
"@sentry/node": "8.27.0",
"@supabase/sentry-js-integration": "file:../../.",
"@supabase/supabase-js": "^2.43.2",
"typescript": "^5.4.5"
"@supabase/supabase-js": "2.45.2",
"typescript": "5.5.4"
}
}
2 changes: 1 addition & 1 deletion tests/v7/tracing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const COMMON_SPAN_DATA = {
"db.schema": "public",
"db.table": "mock-table",
"db.url": "http://mock-url.com",
"db.sdk": "supabase-js-node/2.43.2",
"db.sdk": "supabase-js-node/2.45.2",
};

test("Tracing", async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/v8/tracing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const COMMON_SPAN_DATA = {
"db.schema": "public",
"db.table": "mock-table",
"db.url": "http://mock-url.com",
"db.sdk": "supabase-js-node/2.43.2",
"db.sdk": "supabase-js-node/2.45.2",
};

test("Tracing", async (t) => {
Expand Down

0 comments on commit d796d10

Please sign in to comment.