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.8.2 to 0.8.3

dist/index.d.ts

25

dist/index.js

@@ -53,5 +53,2 @@ 'use strict';

}
async deriveFromInputSource(code, chunk) {
return void 0;
}
async preCompilation(code) {

@@ -571,9 +568,3 @@ return {

}
/**
* Before Closure Compiler is given a chance to look at the code, we need to
* find and store all export statements with their correct type
* @param code source to parse
* @param chunk Rollup chunk reference to the source
*/
async deriveFromInputSource(code, chunk) {
async deriveExports(code) {
const context = this.context;

@@ -600,4 +591,3 @@ let originalExports = {};

});
this.originalExports = originalExports;
return void 0;
return originalExports;
}

@@ -618,2 +608,3 @@ /**

const source = new MagicString(code);
this.originalExports = await this.deriveExports(code);
Object.keys(this.originalExports).forEach(key => {

@@ -973,11 +964,2 @@ // Remove export statements before Closure Compiler sees the code

}
/**
* Run each transform's `deriveFromInputSource` phase in parallel.
* @param code source code to derive information from, pre Closure Compiler minification.
* @param id Rollup identifier for this input source.
* @param transforms Transforms to execute.
*/
async function deriveFromInputSource(code, chunk, transforms) {
await Promise.all(transforms.map(transform => transform.deriveFromInputSource(code, chunk))).then(_ => void 0);
}

@@ -1088,3 +1070,2 @@ /**

const transforms = createTransforms(context, inputOptions);
await deriveFromInputSource(code, chunk, transforms);
return await renderChunk(transforms, requestedCompileOptions, code, outputOptions);

@@ -1091,0 +1072,0 @@ },

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

@@ -44,10 +44,12 @@ "main": "dist/index.js",

"husky": "1.1.2",
"lint-staged": "7.3.0",
"lint-staged": "8.0.4",
"prettier": "1.14.3",
"rimraf": "2.6.2",
"rollup": "0.66.6",
"rollup-plugin-copy": "0.2.3",
"tslint": "5.11.0",
"typescript": "3.1.3"
"typescript": "3.1.5"
},
"files": [
"dist/index.d.ts",
"dist/index.js",

@@ -54,0 +56,0 @@ "dist/index.mjs"

@@ -10,3 +10,3 @@ # rollup-plugin-closure-compiler

```bash
yarn add @ampproject/rollup-plugin-closure-compiler --dev
npm install @ampproject/rollup-plugin-closure-compiler --save-dev
```

@@ -13,0 +13,0 @@

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