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

@rollup/plugin-typescript

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rollup/plugin-typescript - npm Package Compare versions

Comparing version 11.1.4 to 11.1.5

17

dist/cjs/index.js

@@ -12,2 +12,3 @@ 'use strict';

var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
function _interopNamespaceDefault(e) {

@@ -101,3 +102,3 @@ var n = Object.create(null);

// @ts-ignore import.meta.url is allowed because the Rollup plugin injects the correct module format
basedir: url.fileURLToPath(new URL('.', (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.js', document.baseURI).href))))
basedir: url.fileURLToPath(new URL('.', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.js', document.baseURI).href))))
});

@@ -535,7 +536,7 @@ }

// eslint-disable-next-line import/prefer-default-export
const preflight = ({ config, context, rollupOptions, tslib }) => {
const preflight = ({ config, context, inputPreserveModules, tslib }) => {
if (!validModules.includes(config.options.module)) {
context.warn(moduleErrorMessage);
}
if (!rollupOptions.preserveModules && tslib === null) {
if (!inputPreserveModules && tslib === null) {
context.error(tsLibErrorMessage);

@@ -791,3 +792,10 @@ }

emitParsedOptionsErrors(ts, this, parsedOptions);
preflight({ config: parsedOptions, context: this, rollupOptions, tslib });
preflight({
config: parsedOptions,
context: this,
// TODO drop rollup@3 support and remove
inputPreserveModules: rollupOptions
.preserveModules,
tslib
});
// Fixes a memory leak https://github.com/rollup/plugins/issues/322

@@ -863,2 +871,3 @@ if (this.meta.watchMode !== true) {

return null;
this.addWatchFile(id);
await watchProgramHelper.wait();

@@ -865,0 +874,0 @@ const fileName = normalizePath(id);

@@ -511,7 +511,7 @@ import * as path from 'path';

// eslint-disable-next-line import/prefer-default-export
const preflight = ({ config, context, rollupOptions, tslib }) => {
const preflight = ({ config, context, inputPreserveModules, tslib }) => {
if (!validModules.includes(config.options.module)) {
context.warn(moduleErrorMessage);
}
if (!rollupOptions.preserveModules && tslib === null) {
if (!inputPreserveModules && tslib === null) {
context.error(tsLibErrorMessage);

@@ -767,3 +767,10 @@ }

emitParsedOptionsErrors(ts, this, parsedOptions);
preflight({ config: parsedOptions, context: this, rollupOptions, tslib });
preflight({
config: parsedOptions,
context: this,
// TODO drop rollup@3 support and remove
inputPreserveModules: rollupOptions
.preserveModules,
tslib
});
// Fixes a memory leak https://github.com/rollup/plugins/issues/322

@@ -839,2 +846,3 @@ if (this.meta.watchMode !== true) {

return null;
this.addWatchFile(id);
await watchProgramHelper.wait();

@@ -841,0 +849,0 @@ const fileName = normalizePath(id);

{
"name": "@rollup/plugin-typescript",
"version": "11.1.4",
"version": "11.1.5",
"publishConfig": {

@@ -54,3 +54,3 @@ "access": "public"

"peerDependencies": {
"rollup": "^2.14.0||^3.0.0",
"rollup": "^2.14.0||^3.0.0||^4.0.0",
"tslib": "*",

@@ -77,3 +77,3 @@ "typescript": ">=3.7.0"

"buble": "^0.20.0",
"rollup": "^3.2.3",
"rollup": "^4.0.0-24",
"typescript": "^4.8.3"

@@ -80,0 +80,0 @@ },

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