neonctl 2.16.3 → 2.17.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.
Files changed (2) hide show
  1. package/analytics.js +3 -3
  2. package/package.json +2 -2
package/analytics.js CHANGED
@@ -59,7 +59,7 @@ export const analyticsMiddleware = async (args) => {
59
59
  userId: userId?.toString() ?? 'anonymous',
60
60
  });
61
61
  client.track({
62
- userId: userId ?? 'anonymous',
62
+ userId: userId || 'anonymous',
63
63
  event: 'CLI Started',
64
64
  properties: getAnalyticsEventProperties(args),
65
65
  context: {
@@ -85,7 +85,7 @@ export const sendError = (err, errCode) => {
85
85
  }
86
86
  client.track({
87
87
  event: 'CLI Error',
88
- userId: userId ?? 'anonymous',
88
+ userId: userId || 'anonymous',
89
89
  properties: {
90
90
  message: err.message,
91
91
  stack: err.stack,
@@ -102,7 +102,7 @@ export const trackEvent = (event, properties) => {
102
102
  }
103
103
  client.track({
104
104
  event,
105
- userId: userId ?? 'anonymous',
105
+ userId: userId || 'anonymous',
106
106
  properties,
107
107
  });
108
108
  log.debug('Sent CLI event: %s', event);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+ssh://git@github.com/neondatabase/neonctl.git"
6
6
  },
7
7
  "type": "module",
8
- "version": "2.16.3",
8
+ "version": "2.17.1",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",
@@ -62,7 +62,7 @@
62
62
  "cli-table": "^0.3.11",
63
63
  "crypto-random-string": "^5.0.0",
64
64
  "diff": "^5.2.0",
65
- "neon-init": "^0.8.1",
65
+ "neon-init": "^0.9.0",
66
66
  "open": "^10.1.0",
67
67
  "openid-client": "^6.8.1",
68
68
  "prompts": "2.4.2",