@mongosh/types
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -141,4 +141,10 @@ import type { ConnectEventMap } from '@mongodb-js/devtools-connect'; | ||
'mongosh:connect': (ev: ConnectEvent) => void; | ||
'mongosh:new-user': (id: string) => void; | ||
'mongosh:update-user': (id: string) => void; | ||
'mongosh:new-user': (identity: { | ||
userId: string; | ||
anonymousId: string; | ||
}) => void; | ||
'mongosh:update-user': (identity: { | ||
userId: string; | ||
anonymousId?: string; | ||
}) => void; | ||
'mongosh:error': (error: Error, component: string) => void; | ||
@@ -213,2 +219,3 @@ 'mongosh:evaluate-input': (ev: EvaluateInputEvent) => void; | ||
userId: string; | ||
telemetryAnonymousId: string; | ||
disableGreetingMessage: boolean; | ||
@@ -215,0 +222,0 @@ forceDisableTelemetry: boolean; |
@@ -79,2 +79,3 @@ "use strict"; | ||
this.userId = ''; | ||
this.telemetryAnonymousId = ''; | ||
this.disableGreetingMessage = false; | ||
@@ -94,2 +95,3 @@ this.forceDisableTelemetry = false; | ||
case 'userId': | ||
case 'telemetryAnonymousId': | ||
case 'disableGreetingMessage': | ||
@@ -96,0 +98,0 @@ return null; |
{ | ||
"name": "@mongosh/types", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Types for mongosh internals", | ||
@@ -37,3 +37,3 @@ "author": "Anna Henningsen <anna.henningsen@mongodb.com>", | ||
}, | ||
"gitHead": "b715268260871b62ac628cef3eb1009203a91264" | ||
"gitHead": "df88ce833d498163c966e34c815ab669d2bee50c" | ||
} |
@@ -8,2 +8,3 @@ import { CliUserConfig, CliUserConfigValidator } from './'; | ||
expect(await validate('userId', 'foo')).to.equal(null); | ||
expect(await validate('telemetryAnonymousId', 'foo')).to.equal(null); | ||
expect(await validate('disableGreetingMessage', 'foo')).to.equal(null); | ||
@@ -10,0 +11,0 @@ expect(await validate('inspectDepth', 'foo')).to.equal('inspectDepth must be a positive integer'); |
@@ -179,7 +179,7 @@ /* eslint camelcase: 0 */ | ||
*/ | ||
'mongosh:new-user': (id: string) => void; | ||
'mongosh:new-user': (identity: { userId: string; anonymousId: string }) => void; | ||
/** | ||
* Signals a change of the user telemetry settings. | ||
*/ | ||
'mongosh:update-user': (id: string) => void; | ||
'mongosh:update-user': (identity: { userId: string; anonymousId?: string }) => void; | ||
/** | ||
@@ -417,2 +417,3 @@ * Signals an error that should be logged or potentially tracked by analytics. | ||
userId = ''; | ||
telemetryAnonymousId = ''; | ||
disableGreetingMessage = false; | ||
@@ -432,2 +433,3 @@ forceDisableTelemetry = false; | ||
case 'userId': | ||
case 'telemetryAnonymousId': | ||
case 'disableGreetingMessage': | ||
@@ -434,0 +436,0 @@ return null; // Not modifiable by the user anyway. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50453
907