typescript-deno-plugin
Advanced tools
+63
-0
| # Changelog | ||
| ## 1.30.0 - 2020-05-28 | ||
| - Fix collection updating and undefined error ([#42](https://github.com/justjavac/typescript-deno-plugin/pull/42)) | ||
| - bump deno v1.0.2 | ||
| ## 1.29.0 - 2020-05-18 | ||
| - avoid call circular | ||
| ## 1.28.0 - 2020-05-18 | ||
| - improve auto imports [#40](https://github.com/justjavac/typescript-deno-plugin/pull/40) | ||
| ## 1.27.0 - 2020-05-16 | ||
| - fix intellisense on cached files | ||
| ## 1.26.0 - 2020-05-15 | ||
| - add unstable types | ||
| ## 1.25.0 - 2020-05-15 | ||
| - fix importmap using local files | ||
| - remvoe crypto | ||
| ## 1.24.0 - 2020-05-15 | ||
| - bump deno@v1.0.0 | ||
| ## 1.23.1 - 2020-05-15 | ||
| - fix typo | ||
| ## 1.23.0 - 2020-05-15 | ||
| - fix non-importmaps issue | ||
| ## 1.22.0 - 2020-05-15 | ||
| - bump deno@v1.0.0-rc3 | ||
| ## 1.21.0 - 2020-05-15 | ||
| - fix import maps | ||
| ## 1.18.0 - 2020-05-15 | ||
| - fix ts error 2691: cannot end with `'.ts'` | ||
| ## 1.17.0 - 2020-05-15 | ||
| - remove `dtsPath` config | ||
| ## 1.16.0 - 2020-05-15 | ||
| - support for webworker | ||
| - format using `deno fmt` | ||
| ## 1.15.0 - 2020-05-10 | ||
| - bump deno@1.0.0-rc2 | ||
| ## 1.6.0 - 2020-05-03 | ||
@@ -4,0 +67,0 @@ |
+1
-1
@@ -1,1 +0,1 @@ | ||
| import './code_fixes'; | ||
| import "./code_fixes"; |
+14
-5
@@ -146,4 +146,5 @@ "use strict"; | ||
| } | ||
| const scriptFileNames = getScriptFileNames.call(info.languageServiceHost); | ||
| const libDenoDts = utils_1.getDenoDtsPath(tsLsHost, "lib.deno.d.ts"); | ||
| const originalScriptFileNames = getScriptFileNames.call(info.languageServiceHost); | ||
| const scriptFileNames = [...originalScriptFileNames]; | ||
| const libDenoDts = utils_1.getDenoDtsPath("lib.deno.d.ts"); | ||
| if (!libDenoDts) { | ||
@@ -154,3 +155,3 @@ logger.info(`Can not load lib.deno.d.ts from ${libDenoDts}.`); | ||
| scriptFileNames.push(libDenoDts); | ||
| const libWebworkerDts = utils_1.getDenoDtsPath(tsLsHost, "lib.webworker.d.ts"); | ||
| const libWebworkerDts = utils_1.getDenoDtsPath("lib.webworker.d.ts"); | ||
| if (!libWebworkerDts) { | ||
@@ -240,4 +241,10 @@ logger.info(`Can not load lib.webworker.d.ts from ${libWebworkerDts}.`); | ||
| d.code = 10002; // RemoteModuleNotExist | ||
| d.messageText = | ||
| `The remote module "${moduleName}" has not been cached locally`; | ||
| if (moduleName === parsedModuleName) { | ||
| d.messageText = | ||
| `The remote module has not been cached locally. Try \`deno cache ${parsedModuleName}\` if it exists`; | ||
| } | ||
| else { | ||
| d.messageText = | ||
| `The remote module "${moduleName}" has not been cached locally. Try \`deno cache ${parsedModuleName}\` if it exists`; | ||
| } | ||
| return d; | ||
@@ -265,2 +272,4 @@ } | ||
| const fixes = codefix_provider_1.errorCodeToFixes.get(errorCode); | ||
| if (fixes == null) | ||
| continue; | ||
| for (const fix of fixes) { | ||
@@ -267,0 +276,0 @@ fix.replaceCodeActions(codeFixActions); |
@@ -75,3 +75,3 @@ "use strict"; | ||
| const scriptFileNames = this.tsLsHost.getScriptFileNames(); | ||
| const denoDtsPath = utils_1.getDenoDtsPath(this.tsLsHost, "lib.deno.d.ts"); | ||
| const denoDtsPath = utils_1.getDenoDtsPath("lib.deno.d.ts"); | ||
| if (denoDtsPath) { | ||
@@ -78,0 +78,0 @@ scriptFileNames.push(denoDtsPath); |
+2
-3
| /// <reference types="node" /> | ||
| import { URL } from "url"; | ||
| import ts from "typescript/lib/tsserverlibrary"; | ||
| export declare function getDenoDir(): string; | ||
| export declare function getDenoDepsDir(): string; | ||
| export declare function isInDenoDir(filepath: string): boolean; | ||
| export declare function getPluginPath(tsLsHost: ts.LanguageServiceHost): string; | ||
| export declare function getDenoDtsPath(tsLsHost: ts.LanguageServiceHost, specifier: string): string | undefined; | ||
| export declare function getPluginPath(): string; | ||
| export declare function getDenoDtsPath(specifier: string): string | undefined; | ||
| export declare function getModuleWithQueryString(moduleName: string): string | undefined; | ||
@@ -10,0 +9,0 @@ export declare function normalizeFilepath(filepath: string): string; |
+4
-4
@@ -67,7 +67,7 @@ "use strict"; | ||
| exports.isInDenoDir = isInDenoDir; | ||
| function getPluginPath(tsLsHost) { | ||
| return path.resolve(tsLsHost.getCurrentDirectory(), "node_modules", "typescript-deno-plugin"); | ||
| function getPluginPath() { | ||
| return path.resolve(__dirname, ".."); | ||
| } | ||
| exports.getPluginPath = getPluginPath; | ||
| function getDenoDtsPath(tsLsHost, specifier) { | ||
| function getDenoDtsPath(specifier) { | ||
| let file = path.resolve(getDenoDir(), specifier); | ||
@@ -77,3 +77,3 @@ if (fs.existsSync(file)) { | ||
| } | ||
| file = path.resolve(getPluginPath(tsLsHost), "lib", specifier); | ||
| file = path.resolve(getPluginPath(), "lib", specifier); | ||
| if (fs.existsSync(file)) { | ||
@@ -80,0 +80,0 @@ return file; |
+1
-1
| { | ||
| "name": "typescript-deno-plugin", | ||
| "version": "1.29.0", | ||
| "version": "1.30.0", | ||
| "description": "Deno language service plugin for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
225836
0.73%5646
4.89%25
-40.48%