New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bolt/components-image

Package Overview
Dependencies
Maintainers
5
Versions
413
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bolt/components-image - npm Package Compare versions

Comparing version
5.5.0
to
5.8.0
+8
-0
CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# [5.8.0](https://github.com/bolt-design-system/bolt/tree/master/packages/components/bolt-image/compare/v5.7.5...v5.8.0) (2022-10-18)
**Note:** Version bump only for package @bolt/components-image
# [5.5.0](https://github.com/bolt-design-system/bolt/tree/master/packages/components/bolt-image/compare/v5.4.0...v5.5.0) (2022-05-23)

@@ -8,0 +16,0 @@

+5
-5
{
"name": "@bolt/components-image",
"version": "5.5.0",
"version": "5.8.0",
"description": "A container for displaying responsive image.",

@@ -20,5 +20,5 @@ "keywords": [

"dependencies": {
"@bolt/components-ratio": "^5.5.0",
"@bolt/core-v3.x": "^5.5.0",
"@bolt/element": "^5.5.0",
"@bolt/components-ratio": "^5.8.0",
"@bolt/core-v3.x": "^5.8.0",
"@bolt/element": "^5.8.0",
"@bolt/lazy-queue": "^5.0.0",

@@ -31,3 +31,3 @@ "lazysizes": "5.1.0"

},
"gitHead": "04848c36385eca83ba776fe8411b606d28137c72",
"gitHead": "ed398c4cd7fac2500e601e662f3a43725a0f38c5",
"maintainers": [

@@ -34,0 +34,0 @@ {

@@ -27,3 +27,3 @@ An image. Part of the Bolt “Components” CSS framework that powers the [Bolt Design System](https://www.boltdesignsystem.com).

{% include '@bolt-components-image/image.twig' with {
src: "/images/placeholders/tout-4x3-climber.jpg",
src: "/images/placeholders/16x9.jpg",
alt: "A Rock Climber",

@@ -30,0 +30,0 @@ imageAttributes: classes,

@@ -19,3 +19,2 @@ {% set schema = bolt.data.components['@bolt-components-image'].schema %}

{% set _image_data_bolt = bolt.data.images[src] %} {# Data from Bolt Manifest #}
{% set _image_data_twig = getImageData(src) %} {# Data from processing image file #}

@@ -31,10 +30,6 @@

{% if _image_data_bolt.srcset and not _is_gif %}
{% set srcset = _image_data_bolt.srcset %}
{% endif %}
{# Temp: prefix 'ph' to preserve original value for web component, better pattern in the works #}
{% set _ph_color = placeholder_color|default(_image_data_bolt.color|default(schema.properties.placeholder_color.default)) %}
{% set _ph_color = placeholder_color|default(schema.properties.placeholder_color.default) %}
{# Note: image-specific base64 data is only generated in production mode, default data is used for local development #}
{% set _ph_image = placeholder_image|default(_image_data_bolt.base64|default(schema.properties.placeholder_image.default)) %}
{% set _ph_image = placeholder_image|default(schema.properties.placeholder_image.default) %}

@@ -41,0 +36,0 @@ {% set _use_ratio = useAspectRatio or _ratio_bool ?? true %}

Sorry, the diff of this file is not supported yet