@stotles/better-auth-audit-logs 0.4.0-rc.1 → 0.4.1

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Audit log plugin for [Better Auth](https://better-auth.com). Automatically captures auth events with IP, user agent, and severity — zero config required.
8
8
 
9
- **Requires** `better-auth >= 1.0.0` and `typescript >= 5`.
9
+ **Requires** `better-auth >= 1.5.0` and `typescript >= 5`.
10
10
 
11
11
  ## Quick start
12
12
 
@@ -314,6 +314,10 @@ auditLog({
314
314
 
315
315
  This plugin was inspired by the audit log design shared by [@Re4GD](https://github.com/Re4GD) in [better-auth/better-auth#1184](https://github.com/better-auth/better-auth/issues/1184). Additional inspiration from [@issamwahbi](https://github.com/issamwahbi) ([#3592](https://github.com/better-auth/better-auth/discussions/3592)) and [@ItsProless](https://github.com/ItsProless) ([#7952](https://github.com/better-auth/better-auth/discussions/7952)).
316
316
 
317
+ This plugin was originally maintained by [@ejirocodes](https://github.com/ejirocodes/better-auth-audit-logs).
318
+
319
+ This fork is maintained by [@Stotles](https://github.com/Stotles).
320
+
317
321
  ## License
318
322
 
319
323
  [MIT](./LICENSE)
package/dist/index.cjs CHANGED
@@ -415,6 +415,25 @@ function createBeforeHooks(opts, modelName) {
415
415
  }
416
416
  // src/hooks/after.ts
417
417
  var import_api2 = require("better-auth/api");
418
+ function classifyRedirect(err) {
419
+ const isRedirect = err.statusCode >= 300 && err.statusCode < 400;
420
+ if (!isRedirect)
421
+ return null;
422
+ const location = new Headers(err.headers).get("location");
423
+ if (!location)
424
+ return { failed: false };
425
+ try {
426
+ const params = new URL(location, "http://localhost").searchParams;
427
+ const code = params.get("error");
428
+ if (!code) {
429
+ return { failed: false };
430
+ }
431
+ const description = params.get("error_description");
432
+ return { failed: true, error: { code, ...description ? { message: description } : {} } };
433
+ } catch {
434
+ return { failed: false };
435
+ }
436
+ }
418
437
  function createAfterHooks(opts, modelName) {
419
438
  return [
420
439
  {
@@ -422,21 +441,34 @@ function createAfterHooks(opts, modelName) {
422
441
  handler: import_api2.createAuthMiddleware(async (ctx) => {
423
442
  try {
424
443
  const path = ctx.path;
425
- const isError = ctx.context.returned instanceof Error;
426
- const status = isError ? "failed" : "success";
444
+ const returned = ctx.context.returned;
427
445
  const user = ctx.context.newSession?.user ?? ctx.context.session?.user;
428
446
  const pathConfig = opts.getPathConfig(path);
429
447
  const metadata = {};
430
448
  if (opts.capture.requestBody && ctx.body) {
431
449
  metadata.requestBody = ctx.body;
432
450
  }
433
- if (isError) {
434
- const err = ctx.context.returned;
435
- metadata.error = {
436
- message: err.message,
437
- ...err.status !== undefined && { status: err.status },
438
- ...err.code !== undefined && { code: err.code }
439
- };
451
+ let status = "success";
452
+ if (import_api2.isAPIError(returned)) {
453
+ const redirect = classifyRedirect(returned);
454
+ if (redirect) {
455
+ if (redirect.failed) {
456
+ status = "failed";
457
+ metadata.error = redirect.error;
458
+ }
459
+ } else {
460
+ status = "failed";
461
+ metadata.error = {
462
+ ...returned.message && { message: returned.message },
463
+ ...returned.status && { status: returned.status },
464
+ ...returned.body?.code && { code: returned.body.code }
465
+ };
466
+ }
467
+ } else if (returned instanceof Error) {
468
+ status = "failed";
469
+ if (returned.message) {
470
+ metadata.error = { message: returned.message };
471
+ }
440
472
  }
441
473
  const entry = await buildLogEntry(path, status, {
442
474
  userId: user?.id ?? null,
package/dist/index.js CHANGED
@@ -344,7 +344,26 @@ function createBeforeHooks(opts, modelName) {
344
344
  ];
345
345
  }
346
346
  // src/hooks/after.ts
347
- import { createAuthMiddleware as createAuthMiddleware2 } from "better-auth/api";
347
+ import { createAuthMiddleware as createAuthMiddleware2, isAPIError } from "better-auth/api";
348
+ function classifyRedirect(err) {
349
+ const isRedirect = err.statusCode >= 300 && err.statusCode < 400;
350
+ if (!isRedirect)
351
+ return null;
352
+ const location = new Headers(err.headers).get("location");
353
+ if (!location)
354
+ return { failed: false };
355
+ try {
356
+ const params = new URL(location, "http://localhost").searchParams;
357
+ const code = params.get("error");
358
+ if (!code) {
359
+ return { failed: false };
360
+ }
361
+ const description = params.get("error_description");
362
+ return { failed: true, error: { code, ...description ? { message: description } : {} } };
363
+ } catch {
364
+ return { failed: false };
365
+ }
366
+ }
348
367
  function createAfterHooks(opts, modelName) {
349
368
  return [
350
369
  {
@@ -352,21 +371,34 @@ function createAfterHooks(opts, modelName) {
352
371
  handler: createAuthMiddleware2(async (ctx) => {
353
372
  try {
354
373
  const path = ctx.path;
355
- const isError = ctx.context.returned instanceof Error;
356
- const status = isError ? "failed" : "success";
374
+ const returned = ctx.context.returned;
357
375
  const user = ctx.context.newSession?.user ?? ctx.context.session?.user;
358
376
  const pathConfig = opts.getPathConfig(path);
359
377
  const metadata = {};
360
378
  if (opts.capture.requestBody && ctx.body) {
361
379
  metadata.requestBody = ctx.body;
362
380
  }
363
- if (isError) {
364
- const err = ctx.context.returned;
365
- metadata.error = {
366
- message: err.message,
367
- ...err.status !== undefined && { status: err.status },
368
- ...err.code !== undefined && { code: err.code }
369
- };
381
+ let status = "success";
382
+ if (isAPIError(returned)) {
383
+ const redirect = classifyRedirect(returned);
384
+ if (redirect) {
385
+ if (redirect.failed) {
386
+ status = "failed";
387
+ metadata.error = redirect.error;
388
+ }
389
+ } else {
390
+ status = "failed";
391
+ metadata.error = {
392
+ ...returned.message && { message: returned.message },
393
+ ...returned.status && { status: returned.status },
394
+ ...returned.body?.code && { code: returned.body.code }
395
+ };
396
+ }
397
+ } else if (returned instanceof Error) {
398
+ status = "failed";
399
+ if (returned.message) {
400
+ metadata.error = { message: returned.message };
401
+ }
370
402
  }
371
403
  const entry = await buildLogEntry(path, status, {
372
404
  userId: user?.id ?? null,
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@stotles/better-auth-audit-logs",
3
- "version": "0.4.0-rc.1",
3
+ "version": "0.4.1",
4
4
  "description": "Audit log plugin for Better Auth. Captures auth lifecycle events, stores structured log entries, and exposes query endpoints with PII redaction and custom storage backends.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "author": "Ejiro Asiuwhu <ejiroasiuwhu10@gmail.com>",
8
7
  "repository": {
9
8
  "type": "git",
10
9
  "url": "git+https://github.com/Stotles/better-auth-audit-logs.git"
@@ -14,7 +13,8 @@
14
13
  "url": "https://github.com/Stotles/better-auth-audit-logs/issues"
15
14
  },
16
15
  "publishConfig": {
17
- "access": "public"
16
+ "access": "public",
17
+ "provenance": true
18
18
  },
19
19
  "keywords": [
20
20
  "better-auth",
@@ -60,13 +60,13 @@
60
60
  "check": "tsc --noEmit && bun test"
61
61
  },
62
62
  "peerDependencies": {
63
- "better-auth": ">=1.0.0",
64
- "zod": ">=3.0.0",
65
- "typescript": "^5"
63
+ "better-auth": ">=1.5.0",
64
+ "typescript": "^5",
65
+ "zod": ">=3.0.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/bun": "latest",
69
- "better-auth": "^1.5.5",
69
+ "better-auth": "^1.7.0-rc.1",
70
70
  "zod": "^4.3.6"
71
71
  }
72
72
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/adapters/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,qBAAa,aAAc,YAAW,eAAe;IACnD,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,CAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;gBAExB,IAAI,CAAC,EAAE,oBAAoB;IAIjC,KAAK,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAS1C,IAAI,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAmB1D,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAInD,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;CAOnD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,cAAc;;wBAGG,UAAU,CAAC,OAAO,QAAQ,CAAC;;;;;;CAMpB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-log.d.ts","sourceRoot":"","sources":["../../src/endpoints/get-log.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG/D,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;yBAkEgG,CAAC;yBAA4C,CAAC;;;;;;;;;qBAAwN,CAAC;;;;kBADnb"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"insert-log.d.ts","sourceRoot":"","sources":["../../src/endpoints/insert-log.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;yBAmDkU,CAAC;yBAA4C,CAAC;;;;;;;;;qBAAwN,CAAC;;;;;;;;;;;;;;;;;;;;GADxpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-logs.d.ts","sourceRoot":"","sources":["../../src/endpoints/list-logs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAiB,eAAe,EAAsB,MAAM,UAAU,CAAC;AAGnF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;yBA0DhB,CAAC;yBAGtD,CAAT;;;;;;;;;qBAMS,CAAJ;;;;;;;;;;;;;;;;mCAyCL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"after.d.ts","sourceRoot":"","sources":["../../src/hooks/after.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM;uBAGhD,mBAAmB;;IAmD3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"before.d.ts","sourceRoot":"","sources":["../../src/hooks/before.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM;uBAGjD,mBAAmB;;IA2B3C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,UAAU,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,UAAU,EACV,eAAe,EAChB,MAAM,SAAS,CAAC;AAUjB,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC;CAC3D;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CA+BpC;AAED,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,GACtC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,CAwBpC;AAED,wBAAsB,UAAU,CAC9B,GAAG,EAAE,sBAAsB,EAC3B,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,EAChC,IAAI,EAAE,eAAe,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAuDf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,SAAS,CAAC;AAqFjB,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAtB5B,CAAC;iCAEF,CAAC;;;;;;;;;6BAKsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAPvB,CAAC;iCAEF,CAAC;;;;;;;;;6BAKsB,CAAC;;;;;;;;;;;;;;;;iCAPvB,CAAC;iCAEF,CAAC;;;;;;;;;6BAKsB,CAAC;;;;;;;;;;;;;;;;;;;;;;;4BAyCjB,MAAM;;;;EAMjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtB,CAAC;AAEF,wBAAgB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Ac,EAAE,sBAAsB,GAAG,KAAK,CAAC;IAC/C,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC;IACxC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IACtC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IAC9C,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,UAAU,GAAG,SAAS,CAAC;CACzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-path.d.ts","sourceRoot":"","sources":["../../src/utils/normalize-path.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse-metadata.d.ts","sourceRoot":"","sources":["../../src/utils/parse-metadata.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoBnE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-meta.d.ts","sourceRoot":"","sources":["../../src/utils/request-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAYrD,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,OAAO,EAAE,iBAAiB,GACzB;IAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAKxD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../src/utils/retry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAsB,SAAS,CAAC,CAAC,EAC/B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACpB,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAChD,OAAO,CAAC,CAAC,CAAC,CAgBZ"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/utils/sanitize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,kBAAkB,UAY9B,CAAC;AAUF,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAoBlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"severity.d.ts","sourceRoot":"","sources":["../../src/utils/severity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAiBjE,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,GACrB,gBAAgB,CAQlB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate-entry.d.ts","sourceRoot":"","sources":["../../src/utils/validate-entry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAiB9C;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,MAAM,CAAC,EAAE;IAAE,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAAE,GAC/D,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,IAAI,CAUlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate-metadata.d.ts","sourceRoot":"","sources":["../../src/utils/validate-metadata.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,EAAE,cAGrC,CAAC;AAqBF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,MAAM,GAAE,cAAwC,GAC/C,MAAM,GAAG,IAAI,CAYf"}