@aws/language-server-runtimes
Advanced tools
Comparing version 0.2.29 to 0.2.30
{ | ||
"name": "@aws/language-server-runtimes", | ||
"version": "0.2.29", | ||
"version": "0.2.30", | ||
"description": "Runtimes to host Language Servers for AWS", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -216,2 +216,6 @@ "use strict"; | ||
platform: os.platform(), | ||
// gets the configurations from the environment variables | ||
getConfiguration(key) { | ||
return process.env[key]; | ||
}, | ||
}; | ||
@@ -218,0 +222,0 @@ const encoding = { |
@@ -86,2 +86,5 @@ "use strict"; | ||
platform: 'browser', | ||
getConfiguration(key) { | ||
return undefined; | ||
}, | ||
}; | ||
@@ -88,0 +91,0 @@ const encoding = new encoding_1.WebBase64Encoding(self); |
@@ -19,2 +19,8 @@ export type ServerInfo = { | ||
platform: Platform; | ||
/** | ||
* Get a runtime configuration value. | ||
* @param key The configuration key to retrieve. | ||
* @returns The configuration value or undefined if the key is not set. | ||
*/ | ||
getConfiguration(key: string): string | undefined; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
401316
4730
10