New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 0.3.1 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": {

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