Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mongosh/types

Package Overview
Dependencies
Maintainers
10
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mongosh/types - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

11

lib/index.d.ts

@@ -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;

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc