Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

typescript-deno-plugin

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-deno-plugin - npm Package Compare versions

Comparing version
1.29.0
to
1.30.0
+63
-0
CHANGELOG.md
# 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";

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

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

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

{
"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