@mongosh/types
Advanced tools
Comparing version 1.10.6 to 2.0.0
@@ -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 @@ |
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
58094