Socket
Socket
Sign inDemoInstall

v-object-fit

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.4

6

index.js

@@ -8,6 +8,8 @@ module.exports = {

if(backgroundSize === 'fill') backgroundSize = '100% 100%';
el.style.backgroundSize = backgroundSize;
el.style.backgroundRepeat = 'no-repeat';
el.style.backgroundImage = 'url('+el.src+')';
if(el.src) el.style.backgroundImage = 'url('+el.src+')';
else if(el.dataset.src) el.style.backgroundImage = 'url('+el.dataset.src+')';
el.style.backgroundPosition = 'center center';

@@ -14,0 +16,0 @@ el.dataset.src = el.src;

{
"name": "v-object-fit",
"version": "1.0.1",
"version": "1.0.4",
"description": "v-object-fit directive",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc