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

@mongosh/types

Package Overview
Dependencies
Maintainers
13
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.10.6 to 2.0.0

4

lib/index.d.ts

@@ -244,7 +244,7 @@ import type { ConnectEventMap } from '@mongodb-js/devtools-connect';

export interface ConfigProvider<T> {
getConfig<K extends keyof T>(key: K): Promise<T[K]>;
getConfig<K extends keyof T>(key: K): Promise<T[K] | undefined> | undefined;
setConfig<K extends keyof T>(key: K, value: T[K]): Promise<'success' | 'ignored'>;
resetConfig<K extends keyof T>(key: K): Promise<'success' | 'ignored'>;
validateConfig<K extends keyof T>(key: K, value: T[K]): Promise<string | null>;
listConfigOptions(): string[] | Promise<string[]>;
listConfigOptions(): string[] | undefined | Promise<string[]>;
}
{
"name": "@mongosh/types",
"version": "1.10.6",
"version": "2.0.0",
"description": "Types for mongosh internals",

@@ -29,2 +29,4 @@ "author": "Anna Henningsen <anna.henningsen@mongodb.com>",

"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
"prettier": "prettier",

@@ -40,14 +42,14 @@ "reformat": "npm run prettier -- --write . && npm run eslint --fix"

"dependencies": {
"@mongodb-js/devtools-connect": "^2.3.1"
"@mongodb-js/devtools-connect": "^2.4.1"
},
"devDependencies": {
"@mongodb-js/eslint-config-mongosh": "1.10.6",
"@mongodb-js/eslint-config-mongosh": "^1.0.0",
"@mongodb-js/prettier-config-devtools": "^1.0.1",
"@mongodb-js/tsconfig-mongosh": "1.10.6",
"@mongodb-js/tsconfig-mongosh": "^1.0.0",
"depcheck": "^1.4.3",
"eslint": "^7.25.0",
"mongodb": "^5.7.0",
"mongodb": "^6.0.0",
"prettier": "^2.8.8"
},
"gitHead": "6bcde16381f6258d9be713998c67c48a99cfd691"
"gitHead": "60053aa2f37dc6c3e4fe059e806565ec51ece9e8"
}

@@ -558,3 +558,3 @@ import type { ConnectEventMap } from '@mongodb-js/devtools-connect';

export interface ConfigProvider<T> {
getConfig<K extends keyof T>(key: K): Promise<T[K]>;
getConfig<K extends keyof T>(key: K): Promise<T[K] | undefined> | undefined;
setConfig<K extends keyof T>(

@@ -569,3 +569,3 @@ key: K,

): Promise<string | null>;
listConfigOptions(): string[] | Promise<string[]>;
listConfigOptions(): string[] | undefined | Promise<string[]>;
}

@@ -572,0 +572,0 @@

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