🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ember-cli-deploy-compress

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-deploy-compress - npm Package Compare versions

Comparing version

to
0.3.2

18

index.js

@@ -21,8 +21,6 @@ /*eslint-env node*/

var fs = require('fs');
let browsers = this._getBrowsers();
let canUseBrotli = !!browsers && caniuse.isSupported('brotli', browsers);
var DeployPlugin = DeployPluginBase.extend({
name: options.name,
canUseBrotli: canUseBrotli,
canUseBrotli: false,
defaultConfig: {

@@ -59,2 +57,6 @@ filePattern: '**/*.{js,css,json,ico,map,xml,txt,svg,eot,ttf,woff,woff2,appcache,webmanifest}',

// Intentionally calling this as late as possible to give other addons a
// chance to influence it somehow, e.g. through ENV variables.
this._determineBrotliSupport();
let promises = { gzippedFiles: [], brotliCompressedFiles: [] };

@@ -143,2 +145,6 @@ if (this._mustCompressWithBrotli()) {

},
_determineBrotliSupport() {
let browsers = this.project && this.project.targets && this.project.targets.browsers;
this.canUseBrotli = !!browsers && caniuse.isSupported('brotli', browsers);
},
_mustCompressWithBrotli() {

@@ -180,7 +186,3 @@ let compression = this._getCompression();

return new DeployPlugin();
},
_getBrowsers() {
return this.project && this.project.targets && this.project.targets.browsers;
},
}
};
{
"name": "ember-cli-deploy-compress",
"version": "0.3.1",
"version": "0.3.2",
"description": "Ember CLI Deploy plugin to compress files in gzip or brotli automatically depending on supported browsers",

@@ -5,0 +5,0 @@ "directories": {