Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Feb 10, 2025
1 parent 49a4787 commit 5bf435c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changeset/wild-balloons-repair.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Now you can integrate [Winston](https://github.com/winstonjs/winston) into Hive Gateway on Node.js

```ts
import { defineConfig } from '@graphql-hive/gateway'
import { createLogger, format, transports } from 'winston'
import { createLoggerFromWinston } from '@graphql-hive/winston'

Expand Down
6 changes: 3 additions & 3 deletions packages/winston/tests/winston.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Writable } from 'stream';
import { Writable } from 'node:stream';
import { describe, expect, it } from 'vitest';
import * as winston from 'winston';
import { createLoggerFromWinston } from '../src';

describe('Winston', () => {
let log: string = '';
let lastCallback: () => void = () => {};
let log = '';
let lastCallback = () => {};
const stream = new Writable({
write(chunk, _encoding, callback) {
log = chunk.toString('utf-8');
Expand Down

0 comments on commit 5bf435c

Please sign in to comment.