@protobuf-ts/plugin-framework
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,3 +7,3 @@ "use strict"; | ||
function setupCompiler(options, files, rootFileNames) { | ||
const original = ts.createCompilerHost(options, true), host = new VirtualCompilerHost(original, files), libs = options.lib ? options.lib.map(lib => require.resolve(`typescript/lib/lib.${lib}.d.ts`)) : [], roots = rootFileNames.concat(libs), program = ts.createProgram(roots, options, host); | ||
const original = ts.createCompilerHost(options, true), host = new VirtualCompilerHost(original, files), libs = options.lib ? options.lib.map(lib => require.resolve(`typescript/lib/lib.${lib.toLowerCase()}.d.ts`)) : [], roots = rootFileNames.concat(libs), program = ts.createProgram(roots, options, host); | ||
return [program, host]; | ||
@@ -10,0 +10,0 @@ } |
import * as ts from "typescript"; | ||
import * as path from "path"; | ||
export function setupCompiler(options, files, rootFileNames) { | ||
const original = ts.createCompilerHost(options, true), host = new VirtualCompilerHost(original, files), libs = options.lib ? options.lib.map(lib => require.resolve(`typescript/lib/lib.${lib}.d.ts`)) : [], roots = rootFileNames.concat(libs), program = ts.createProgram(roots, options, host); | ||
const original = ts.createCompilerHost(options, true), host = new VirtualCompilerHost(original, files), libs = options.lib ? options.lib.map(lib => require.resolve(`typescript/lib/lib.${lib.toLowerCase()}.d.ts`)) : [], roots = rootFileNames.concat(libs), program = ts.createProgram(roots, options, host); | ||
return [program, host]; | ||
@@ -6,0 +6,0 @@ } |
{ | ||
"name": "@protobuf-ts/plugin-framework", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "framework to create protoc plugins", | ||
@@ -36,6 +36,6 @@ "license": "(Apache-2.0 AND BSD-3-Clause)", | ||
"dependencies": { | ||
"@protobuf-ts/runtime": "^1.0.0", | ||
"@protobuf-ts/runtime": "^1.0.1", | ||
"typescript": ">=3.8.3 <4" | ||
}, | ||
"gitHead": "a138de45d2235e3b57b7f45dc5b5d45854460b8c" | ||
"gitHead": "c39c8fbad89367fb0252edab528236c5a326bb7a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
566156
Updated@protobuf-ts/runtime@^1.0.1