Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-typescript2

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-typescript2 - npm Package Compare versions

Comparing version 0.33.0 to 0.34.0

dist/diagnostics.d.ts

20

dist/context.d.ts
import { PluginContext } from "rollup";
export interface IContext {
warn(message: string | (() => string)): void;
error(message: string | (() => string)): void;
info(message: string | (() => string)): void;
debug(message: string | (() => string)): void;
}
export declare enum VerbosityLevel {

@@ -14,14 +8,4 @@ Error = 0,

}
/** mainly to be used in options hook, but can be used in other hooks too */
export declare class ConsoleContext implements IContext {
private verbosity;
private prefix;
constructor(verbosity: VerbosityLevel, prefix?: string);
warn(message: string | (() => string)): void;
error(message: string | (() => string)): void;
info(message: string | (() => string)): void;
debug(message: string | (() => string)): void;
}
/** cannot be used in options hook (which does not have this.warn and this.error), but can be in other hooks */
export declare class RollupContext implements IContext {
export declare class RollupContext {
private verbosity;

@@ -33,3 +17,3 @@ private bail;

warn(message: string | (() => string)): void;
error(message: string | (() => string)): void;
error(message: string | (() => string)): void | never;
info(message: string | (() => string)): void;

@@ -36,0 +20,0 @@ debug(message: string | (() => string)): void;

import * as tsTypes from "typescript";
import { IOptions } from "./ioptions";
import { IContext } from "./context";
import { RollupContext } from "./context";
export declare function getOptionsOverrides({ useTsconfigDeclarationDir, cacheRoot }: IOptions, preParsedTsconfig?: tsTypes.ParsedCommandLine): tsTypes.CompilerOptions;
export declare function createFilter(context: IContext, pluginOptions: IOptions, parsedConfig: tsTypes.ParsedCommandLine): (id: unknown) => boolean;
export declare function createFilter(context: RollupContext, pluginOptions: IOptions, parsedConfig: tsTypes.ParsedCommandLine): (id: unknown) => boolean;
//# sourceMappingURL=get-options-overrides.d.ts.map

@@ -1,4 +0,4 @@

import { IContext } from "./context";
import { RollupContext } from "./context";
import { IOptions } from "./ioptions";
export declare function parseTsConfig(context: IContext, pluginOptions: IOptions): {
export declare function parseTsConfig(context: RollupContext, pluginOptions: IOptions): {
parsedTsConfig: import("typescript").ParsedCommandLine;

@@ -5,0 +5,0 @@ fileName: string | undefined;

import * as tsTypes from "typescript";
import { IContext } from "./context";
import { RollupContext } from "./context";
import { IDiagnostics } from "./diagnostics";
export interface ICode {

@@ -10,13 +11,4 @@ code: string;

}
export interface IDiagnostics {
flatMessage: string;
formatted: string;
fileLine?: string;
category: tsTypes.DiagnosticCategory;
code: number;
type: string;
}
export declare function convertEmitOutput(output: tsTypes.EmitOutput, references?: string[]): ICode;
export declare function getAllReferences(importer: string, snapshot: tsTypes.IScriptSnapshot | undefined, options: tsTypes.CompilerOptions): string[];
export declare function convertDiagnostic(type: string, data: tsTypes.Diagnostic[]): IDiagnostics[];
export declare class TsCache {

@@ -40,3 +32,3 @@ private noCache;

private hashOptions;
constructor(noCache: boolean, hashIgnoreUnknown: boolean, host: tsTypes.LanguageServiceHost, cacheRoot: string, options: tsTypes.CompilerOptions, rollupConfig: any, rootFilenames: string[], context: IContext);
constructor(noCache: boolean, hashIgnoreUnknown: boolean, host: tsTypes.LanguageServiceHost, cacheRoot: string, options: tsTypes.CompilerOptions, rollupConfig: any, rootFilenames: string[], context: RollupContext);
private clean;

@@ -43,0 +35,0 @@ setDependency(importee: string, importer: string): void;

{
"name": "rollup-plugin-typescript2",
"version": "0.33.0",
"version": "0.34.0",
"description": "Seamless integration between Rollup and TypeScript. Now with errors.",

@@ -65,3 +65,3 @@ "main": "dist/rollup-plugin-typescript2.cjs.js",

"rollup-plugin-re": "1.0.7",
"rollup-plugin-typescript2": "0.32.1",
"rollup-plugin-typescript2": "0.33.0",
"ts-jest": "^28.0.0",

@@ -68,0 +68,0 @@ "tslint": "6.1.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc