Skip to content

Commit f217f61

Browse files
authored
Apply suggestions from code review
1 parent 66a2ca8 commit f217f61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/connections/sources/catalog/libraries/server/node/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ strat: node-js
88
> warning "Deprecation of Analytics Node.js Classic"
99
> On [date], Segment will end support for Analytics Node.js Classic, which includes versions [1.x.x] and older. Upgrade to Analytics Node.js 2.0. See the [Analytics Node.js 2.0] docs to learn more.
1010
11-
Segment's Node.js library lets you record analytics data from your node code. The requests hit our servers, and then Segment routes your data to any destinations you have enabled.
11+
Segment's Node.js library lets you record analytics data from your node code. The requests hit Segment's servers, and then Segment routes your data to any destinations you have enabled.
1212

1313
The [Segment Node.js library is open-source](https://github.com/segmentio/analytics-node) on GitHub.
1414

src/connections/sources/catalog/libraries/server/node/next.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ strat: node-js
66

77
Segment's Analytics Node.js 2.0 library lets you record analytics data from your node code. The requests hit Segment's servers, and then Segment routes your data to any destinations you have enabled.
88

9-
The [Segment Analytics Node.js Next library is open-source](https://github.com/segmentio/analytics-next){:target="_blank"} on GitHub.
9+
The [Segment Analytics Node.js Next library is open-source](https://github.com/segmentio/analytics-next/tree/master/packages/node){:target="_blank"} on GitHub.
1010

1111
All of Segment's server-side libraries are built for high-performance, so you can use them in your web server controller code. This library uses an internal queue to make `identify` and `track` calls non-blocking and fast. It also batches messages and flushes asynchronously to Segment's servers.
1212

@@ -429,7 +429,7 @@ The event emitter interface allows you to track when certain things happen in th
429429
```javascript
430430
analytics.on('error', (err) => console.error(err))
431431

432-
analytics.on('identify', (ctx) => console.log(err))
432+
analytics.on('identify', (ctx) => console.log(ctx))
433433

434434
analytics.on('track', (ctx) => console.log(ctx))
435435
```

0 commit comments

Comments
 (0)