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

@hashicorp/hashi-image

Package Overview
Dependencies
Maintainers
16
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashicorp/hashi-image - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

9

dist/index.js

@@ -25,8 +25,11 @@ 'use strict';

// Parse the `fm` option for Imgix from the extension, if possible
var formatMatch = src.match(/\.(\w+)$/);
var hasExtension = !!formatMatch && !!formatMatch[1];
var formatOption = hasExtension ? { fm: formatMatch[1] } : {};
// set default params, merge user preferences with priority
var opts = assign({
fm: src.match(/\.(\w+)$/)[1],
fit: aspect_ratio ? 'crop' : 'max',
q: 80
}, params);
}, formatOption, params);

@@ -76,3 +79,3 @@ // handle aspect ratios & steps passed as a string

exports.default = Image;
exports.format = format;
exports.formatSteps = formatSteps;
exports.format = format;
{
"name": "@hashicorp/hashi-image",
"description": "super optimized image element, pulls from dato and formats for 7 screen sizes in two formats. Skips optimization for SVGs.",
"version": "1.0.6",
"version": "1.0.7",
"author": "Hashicorp - Jeff Escalante",

@@ -18,3 +18,3 @@ "main": "dist",

},
"gitHead": "78236aa1b7f3adda5e4e3dd1d1ba8f084e1c24dc"
"gitHead": "d9ec0292dda2108abce5d52001a190fee01c9497"
}
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