typescript-strict-plugin
Advanced tools
Comparing version 2.4.1 to 2.4.2-beta.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const PluginStrictFileChecker_1 = require("./PluginStrictFileChecker"); | ||
const utils_1 = require("./utils"); | ||
const init = ({ typescript }) => { | ||
const ts = __importStar(require("typescript/lib/tsserverlibrary")); | ||
const init = () => { | ||
function create(info) { | ||
const proxy = (0, utils_1.setupLanguageServiceProxy)(info); | ||
const strictLanguageServiceHost = (0, utils_1.setupStrictLanguageServiceHostProxy)(info); | ||
const strictLanguageService = typescript.createLanguageService(strictLanguageServiceHost); | ||
strictLanguageService.getProgram(); | ||
const strictLanguageService = ts.createLanguageService(strictLanguageServiceHost); | ||
(0, utils_1.log)(info, 'Plugin initialized'); | ||
@@ -12,0 +35,0 @@ proxy.getSemanticDiagnostics = function (filePath) { |
{ | ||
"name": "typescript-strict-plugin", | ||
"version": "2.4.1", | ||
"version": "2.4.2-beta.0", | ||
"description": "Typescript tools that help with migration to the strict mode", | ||
@@ -5,0 +5,0 @@ "author": "Allegro", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1239
60972
37
1
1