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

object-fit-images

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-fit-images - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

2

dist/ofi.common-js.js

@@ -22,3 +22,2 @@ 'use strict';

var style = getStyle(el);
console.log(el);

@@ -77,3 +76,2 @@ // exit if not set

if (el[ಠ].i.naturalWidth) {
console.log(el[ಠ].i.naturalWidth);
if (el[ಠ].i.naturalWidth > el.width || el[ಠ].i.naturalHeight > el.height) {

@@ -80,0 +78,0 @@ el.style.backgroundSize = 'contain';

@@ -20,3 +20,2 @@ var ಠ = 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='; // transparent image, used as accessor and replacing image

var style = getStyle(el);
console.log(el);

@@ -75,3 +74,2 @@ // exit if not set

if (el[ಠ].i.naturalWidth) {
console.log(el[ಠ].i.naturalWidth);
if (el[ಠ].i.naturalWidth > el.width || el[ಠ].i.naturalHeight > el.height) {

@@ -78,0 +76,0 @@ el.style.backgroundSize = 'contain';

2

package.json
{
"name": "object-fit-images",
"version": "2.4.1",
"version": "2.4.2",
"description": "Adds support to object-fit to images on IE9, IE10, IE11, Edge and other old browsers.",

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

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