Skip to content

Commit

Permalink
doc/transport: fix export typo (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Oct 19, 2021
1 parent 0baccea commit 104accb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/transports.md
Expand Up @@ -116,7 +116,7 @@ You can see an example using a async iterator with ESM:
```js
import build from 'pino-abstract-stream'

exports default async function (opts) {
export default async function (opts) {
return build(async function (source) {
for await (let obj of source) {
console.log(obj)
Expand Down Expand Up @@ -150,7 +150,7 @@ As an example, the following transport returns a `Transform` stream:
```js
import build from 'pino-abstract-transport'
import { pipeline, Transform } from 'stream'
exports default async function (options) {
export default async function (options) {
return build(function (source) {
const myTransportStream = new Transform({
// Make sue autoDestroy is set,
Expand Down

0 comments on commit 104accb

Please sign in to comment.