@mastra/loggers 0.1.5-alpha.1 → 0.1.5-alpha.2

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,19 +1,19 @@
1
1
 
2
- > @mastra/loggers@0.1.5-alpha.1 build /home/runner/work/mastra/mastra/packages/loggers
2
+ > @mastra/loggers@0.1.5-alpha.2 build /home/runner/work/mastra/mastra/packages/loggers
3
3
  > tsup src/file/index.ts src/upstash/index.ts --format esm --experimental-dts --clean --treeshake
4
4
 
5
5
  CLI Building entry: src/file/index.ts, src/upstash/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.3.6
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 7167ms
9
+ TSC ⚡️ Build success in 6222ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.7.3
13
13
  Writing package typings: /home/runner/work/mastra/mastra/packages/loggers/dist/_tsup-dts-rollup.d.ts
14
- DTS ⚡️ Build success in 5982ms
14
+ DTS ⚡️ Build success in 5902ms
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
17
  ESM dist/file/index.js 1.64 KB
18
- ESM dist/upstash/index.js 3.72 KB
19
- ESM ⚡️ Build success in 578ms
18
+ ESM dist/upstash/index.js 3.71 KB
19
+ ESM ⚡️ Build success in 648ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @mastra/loggers
2
2
 
3
+ ## 0.1.5-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8d94c3e]
8
+ - Updated dependencies [99dcdb5]
9
+ - Updated dependencies [e752340]
10
+ - Updated dependencies [eb91535]
11
+ - @mastra/core@0.4.2-alpha.2
12
+
3
13
  ## 0.1.5-alpha.1
4
14
 
5
15
  ### Patch Changes
@@ -1,5 +1,5 @@
1
- import { LoggerTransport } from '@mastra/core/logger';
2
1
  import { existsSync, createWriteStream, readFileSync } from 'fs';
2
+ import { LoggerTransport } from '@mastra/core/logger';
3
3
 
4
4
  // src/file/index.ts
5
5
  var FileTransport = class extends LoggerTransport {
@@ -107,7 +107,7 @@ var UpstashTransport = class extends LoggerTransport {
107
107
  return response?.[0]?.result.map((log) => {
108
108
  try {
109
109
  return JSON.parse(log);
110
- } catch (e) {
110
+ } catch {
111
111
  return "";
112
112
  }
113
113
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/loggers",
3
- "version": "0.1.5-alpha.1",
3
+ "version": "0.1.5-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "author": "",
31
31
  "license": "ISC",
32
32
  "dependencies": {
33
- "@mastra/core": "^0.4.2-alpha.1"
33
+ "@mastra/core": "^0.4.2-alpha.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@microsoft/api-extractor": "^7.49.2",
@@ -1,7 +1,7 @@
1
- import { createLogger, LogLevel } from '@mastra/core/logger';
2
1
  import fs from 'fs';
3
2
  import path from 'path';
4
- import { describe, it, expect, beforeEach, afterEach, vi, afterAll } from 'vitest';
3
+ import { createLogger, LogLevel } from '@mastra/core/logger';
4
+ import { describe, it, expect, beforeEach, vi, afterAll } from 'vitest';
5
5
 
6
6
  import { FileTransport } from './index.js';
7
7
 
package/src/file/index.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { LoggerTransport } from '@mastra/core/logger';
2
- import type { BaseLogMessage } from '@mastra/core/logger';
3
1
  import type { WriteStream } from 'fs';
4
2
  import { createWriteStream, existsSync, readFileSync } from 'fs';
3
+ import { LoggerTransport } from '@mastra/core/logger';
4
+ import type { BaseLogMessage } from '@mastra/core/logger';
5
5
 
6
6
  export class FileTransport extends LoggerTransport {
7
7
  path: string;
@@ -104,7 +104,6 @@ describe('UpstashTransport', () => {
104
104
  });
105
105
 
106
106
  it('should handle errors in _transform', () => {
107
- const errorObj = new Error('Test error');
108
107
  const callback = vi.fn();
109
108
 
110
109
  transport._transform('invalid json', 'utf8', callback);
@@ -153,7 +153,7 @@ export class UpstashTransport extends LoggerTransport {
153
153
  return response?.[0]?.result.map((log: string) => {
154
154
  try {
155
155
  return JSON.parse(log);
156
- } catch (e) {
156
+ } catch {
157
157
  return '';
158
158
  }
159
159
  }) as BaseLogMessage[];