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

@ampproject/rollup-plugin-closure-compiler

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampproject/rollup-plugin-closure-compiler - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

28

dist/index.js

@@ -438,16 +438,18 @@ 'use strict';

const mapFile = tempWrite.sync('');
const externs = (compileOptions) => {
if ('externs' in compileOptions) {
switch (typeof compileOptions.externs) {
case 'boolean':
return [];
case 'string':
return [compileOptions.externs];
default:
return compileOptions.externs;
}
let externs = [];
if ('externs' in compileOptions) {
switch (typeof compileOptions.externs) {
case 'boolean':
externs = [];
break;
case 'string':
externs = [compileOptions.externs];
break;
default:
externs = compileOptions.externs;
break;
}
return [];
};
const options = Object.assign({}, defaults(outputOptions, externs(compileOptions), transforms), compileOptions, { js: tempWrite.sync(code), create_source_map: mapFile });
delete compileOptions.externs;
}
const options = Object.assign({}, defaults(outputOptions, externs, transforms), compileOptions, { js: tempWrite.sync(code), create_source_map: mapFile });
return [options, mapFile];

@@ -454,0 +456,0 @@ }

{
"name": "@ampproject/rollup-plugin-closure-compiler",
"version": "0.6.1",
"version": "0.6.2",
"description": "Rollup + Google Closure Compiler",

@@ -26,5 +26,8 @@ "main": "dist/index.js",

},
"peerDependencies": {
"rollup": ">= 0.63.5"
},
"dependencies": {
"acorn": "5.7.1",
"google-closure-compiler": "20180716.0.1",
"acorn": "5.7.2",
"google-closure-compiler": "20180805.0.0",
"magic-string": "0.25.0",

@@ -37,11 +40,11 @@ "temp-write": "3.4.0"

"@types/temp-write": "3.3.0",
"ava": "1.0.0-beta.6",
"ava": "1.0.0-beta.8",
"builtins": "2.0.0",
"husky": "1.0.0-rc.13",
"lint-staged": "7.2.0",
"prettier": "1.14.0",
"lint-staged": "7.2.2",
"prettier": "1.14.2",
"rimraf": "2.6.2",
"rollup": "0.63.5",
"rollup": "0.65.0",
"tslint": "5.11.0",
"typescript": "3.0.1"
"typescript": "3.0.3"
},

@@ -48,0 +51,0 @@ "files": [

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