@ampproject/rollup-plugin-closure-compiler
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -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
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
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
106527
2022
5
+ Added@rollup/rollup-android-arm-eabi@4.28.0(transitive)
+ Added@rollup/rollup-android-arm64@4.28.0(transitive)
+ Added@rollup/rollup-darwin-arm64@4.28.0(transitive)
+ Added@rollup/rollup-darwin-x64@4.28.0(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.28.0(transitive)
+ Added@rollup/rollup-freebsd-x64@4.28.0(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.28.0(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.28.0(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.28.0(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.28.0(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.28.0(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.28.0(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.28.0(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.28.0(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.28.0(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.28.0(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.28.0(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.28.0(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Addedacorn@5.7.2(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedgoogle-closure-compiler@20180805.0.0(transitive)
+ Addedgoogle-closure-compiler-linux@20180805.0.0(transitive)
+ Addedgoogle-closure-compiler-osx@20180805.0.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedrollup@4.28.0(transitive)
- Removedacorn@5.7.1(transitive)
- Removedgoogle-closure-compiler@20180716.0.1(transitive)
- Removedgoogle-closure-compiler-linux@20180716.0.0(transitive)
- Removedgoogle-closure-compiler-osx@20180716.0.0(transitive)
Updatedacorn@5.7.2