@mastra/auth-supabase 0.10.0 → 0.10.1-alpha.0

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.
@@ -1,30 +1,30 @@
1
1
 
2
- > @mastra/auth-supabase@0.10.0 build /home/runner/work/mastra/mastra/auth/supabase
2
+ > @mastra/auth-supabase@0.10.1-alpha.0 build /home/runner/work/mastra/mastra/auth/supabase
3
3
  > tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.4.0
7
+ CLI tsup v8.5.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8308ms
9
+ TSC ⚡️ Build success in 8597ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/auth/supabase/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.3
15
15
  Writing package typings: /home/runner/work/mastra/mastra/auth/supabase/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 10975ms
16
+ DTS ⚡️ Build success in 11111ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
- ESM dist/getMachineId-darwin-UJH25LDA.js 770.00 B
20
+ CJS dist/index.cjs 54.24 KB
21
+ CJS ⚡️ Build success in 2667ms
21
22
  ESM dist/getMachineId-linux-YF3RLZNP.js 440.00 B
23
+ ESM dist/getMachineId-darwin-UJH25LDA.js 770.00 B
22
24
  ESM dist/getMachineId-bsd-IPBZSYCM.js 564.00 B
25
+ ESM dist/index.js 12.29 KB
23
26
  ESM dist/getMachineId-win-PKATJI4A.js 738.00 B
24
27
  ESM dist/chunk-N62AETLJ.js 334.00 B
25
28
  ESM dist/getMachineId-unsupported-UOUTBEEW.js 382.00 B
26
- ESM dist/index.js 11.52 KB
27
29
  ESM dist/chunk-JLXWUSDO.js 32.51 KB
28
- ESM ⚡️ Build success in 2958ms
29
- CJS dist/index.cjs 53.47 KB
30
- CJS ⚡️ Build success in 2958ms
30
+ ESM ⚡️ Build success in 2672ms
package/CHANGELOG.md CHANGED
@@ -1 +1,8 @@
1
1
  # @mastra/auth-supabase
2
+
3
+ ## 0.10.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 63f6b7d: dependencies updates:
8
+ - Updated dependency [`@supabase/supabase-js@^2.50.0` ↗︎](https://www.npmjs.com/package/@supabase/supabase-js/v/2.50.0) (from `^2.49.7`, in `dependencies`)
package/dist/index.cjs CHANGED
@@ -1173,7 +1173,7 @@ var init_esm = __esm({
1173
1173
  }
1174
1174
  });
1175
1175
 
1176
- // ../../packages/core/dist/chunk-EWDGXKOQ.js
1176
+ // ../../packages/core/dist/chunk-6PQRSQZF.js
1177
1177
  init_esm();
1178
1178
  function hasActiveTelemetry(tracerName = "default-tracer") {
1179
1179
  try {
@@ -1305,7 +1305,7 @@ function InstrumentClass(options) {
1305
1305
  };
1306
1306
  }
1307
1307
 
1308
- // ../../packages/core/dist/chunk-XXVGT7SJ.js
1308
+ // ../../packages/core/dist/chunk-5YDTZN2X.js
1309
1309
  var RegisteredLogger = {
1310
1310
  LLM: "LLM"};
1311
1311
  var LogLevel = {
@@ -1325,17 +1325,40 @@ var MastraLogger = class {
1325
1325
  getTransports() {
1326
1326
  return this.transports;
1327
1327
  }
1328
- async getLogs(transportId) {
1328
+ trackException(_error) {
1329
+ }
1330
+ async getLogs(transportId, params) {
1329
1331
  if (!transportId || !this.transports.has(transportId)) {
1330
- return [];
1332
+ return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
1331
1333
  }
1332
- return this.transports.get(transportId).getLogs() ?? [];
1334
+ return this.transports.get(transportId).getLogs(params) ?? {
1335
+ logs: [],
1336
+ total: 0,
1337
+ page: params?.page ?? 1,
1338
+ perPage: params?.perPage ?? 100,
1339
+ hasMore: false
1340
+ };
1333
1341
  }
1334
- async getLogsByRunId({ transportId, runId }) {
1342
+ async getLogsByRunId({
1343
+ transportId,
1344
+ runId,
1345
+ fromDate,
1346
+ toDate,
1347
+ logLevel,
1348
+ filters,
1349
+ page,
1350
+ perPage
1351
+ }) {
1335
1352
  if (!transportId || !this.transports.has(transportId) || !runId) {
1336
- return [];
1353
+ return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
1337
1354
  }
1338
- return this.transports.get(transportId).getLogsByRunId({ runId }) ?? [];
1355
+ return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
1356
+ logs: [],
1357
+ total: 0,
1358
+ page: page ?? 1,
1359
+ perPage: perPage ?? 100,
1360
+ hasMore: false
1361
+ };
1339
1362
  }
1340
1363
  };
1341
1364
  var ConsoleLogger = class extends MastraLogger {
@@ -1362,15 +1385,15 @@ var ConsoleLogger = class extends MastraLogger {
1362
1385
  console.error(message, ...args);
1363
1386
  }
1364
1387
  }
1365
- async getLogs(_transportId) {
1366
- return [];
1388
+ async getLogs(_transportId, _params) {
1389
+ return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
1367
1390
  }
1368
1391
  async getLogsByRunId(_args) {
1369
- return [];
1392
+ return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
1370
1393
  }
1371
1394
  };
1372
1395
 
1373
- // ../../packages/core/dist/chunk-JOCKZ2US.js
1396
+ // ../../packages/core/dist/chunk-5IEKR756.js
1374
1397
  var MastraBase = class {
1375
1398
  component = RegisteredLogger.LLM;
1376
1399
  logger;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SpanKind, trace, context, propagation, SpanStatusCode } from './chunk-JLXWUSDO.js';
2
2
  import { createClient } from '@supabase/supabase-js';
3
3
 
4
- // ../../packages/core/dist/chunk-EWDGXKOQ.js
4
+ // ../../packages/core/dist/chunk-6PQRSQZF.js
5
5
  function hasActiveTelemetry(tracerName = "default-tracer") {
6
6
  try {
7
7
  return !!trace.getTracer(tracerName);
@@ -132,7 +132,7 @@ function InstrumentClass(options) {
132
132
  };
133
133
  }
134
134
 
135
- // ../../packages/core/dist/chunk-XXVGT7SJ.js
135
+ // ../../packages/core/dist/chunk-5YDTZN2X.js
136
136
  var RegisteredLogger = {
137
137
  LLM: "LLM"};
138
138
  var LogLevel = {
@@ -152,17 +152,40 @@ var MastraLogger = class {
152
152
  getTransports() {
153
153
  return this.transports;
154
154
  }
155
- async getLogs(transportId) {
155
+ trackException(_error) {
156
+ }
157
+ async getLogs(transportId, params) {
156
158
  if (!transportId || !this.transports.has(transportId)) {
157
- return [];
159
+ return { logs: [], total: 0, page: params?.page ?? 1, perPage: params?.perPage ?? 100, hasMore: false };
158
160
  }
159
- return this.transports.get(transportId).getLogs() ?? [];
161
+ return this.transports.get(transportId).getLogs(params) ?? {
162
+ logs: [],
163
+ total: 0,
164
+ page: params?.page ?? 1,
165
+ perPage: params?.perPage ?? 100,
166
+ hasMore: false
167
+ };
160
168
  }
161
- async getLogsByRunId({ transportId, runId }) {
169
+ async getLogsByRunId({
170
+ transportId,
171
+ runId,
172
+ fromDate,
173
+ toDate,
174
+ logLevel,
175
+ filters,
176
+ page,
177
+ perPage
178
+ }) {
162
179
  if (!transportId || !this.transports.has(transportId) || !runId) {
163
- return [];
180
+ return { logs: [], total: 0, page: page ?? 1, perPage: perPage ?? 100, hasMore: false };
164
181
  }
165
- return this.transports.get(transportId).getLogsByRunId({ runId }) ?? [];
182
+ return this.transports.get(transportId).getLogsByRunId({ runId, fromDate, toDate, logLevel, filters, page, perPage }) ?? {
183
+ logs: [],
184
+ total: 0,
185
+ page: page ?? 1,
186
+ perPage: perPage ?? 100,
187
+ hasMore: false
188
+ };
166
189
  }
167
190
  };
168
191
  var ConsoleLogger = class extends MastraLogger {
@@ -189,15 +212,15 @@ var ConsoleLogger = class extends MastraLogger {
189
212
  console.error(message, ...args);
190
213
  }
191
214
  }
192
- async getLogs(_transportId) {
193
- return [];
215
+ async getLogs(_transportId, _params) {
216
+ return { logs: [], total: 0, page: _params?.page ?? 1, perPage: _params?.perPage ?? 100, hasMore: false };
194
217
  }
195
218
  async getLogsByRunId(_args) {
196
- return [];
219
+ return { logs: [], total: 0, page: _args.page ?? 1, perPage: _args.perPage ?? 100, hasMore: false };
197
220
  }
198
221
  };
199
222
 
200
- // ../../packages/core/dist/chunk-JOCKZ2US.js
223
+ // ../../packages/core/dist/chunk-5IEKR756.js
201
224
  var MastraBase = class {
202
225
  component = RegisteredLogger.LLM;
203
226
  logger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/auth-supabase",
3
- "version": "0.10.0",
3
+ "version": "0.10.1-alpha.0",
4
4
  "description": "Mastra Supabase Auth integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,16 +20,16 @@
20
20
  },
21
21
  "license": "Elastic-2.0",
22
22
  "dependencies": {
23
- "@supabase/supabase-js": "^2.49.7"
23
+ "@supabase/supabase-js": "^2.50.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^22.13.1",
27
- "eslint": "^9.25.1",
28
- "tsup": "^8.4.0",
26
+ "@types/node": "^20.19.0",
27
+ "eslint": "^9.28.0",
28
+ "tsup": "^8.5.0",
29
29
  "typescript": "^5.8.3",
30
30
  "vitest": "^2.1.9",
31
- "@mastra/core": "0.10.2",
32
- "@internal/lint": "0.0.8"
31
+ "@internal/lint": "0.0.12",
32
+ "@mastra/core": "0.10.6-alpha.0"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake",