New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@odopod/odo-object-fit

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odopod/odo-object-fit - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

14

dist/odo-object-fit.js

@@ -7,2 +7,4 @@ (function (global, factory) {

var babelHelpers = {};
var classCallCheck = function (instance, Constructor) {

@@ -32,2 +34,10 @@ if (!(instance instanceof Constructor)) {

babelHelpers;
/**

@@ -128,3 +138,3 @@ * @fileoverview A helper which fits media elements (img, video). It polyfills

}
} else /* if (this.style === ObjectFit.Style.CONTAIN)*/if (this._mediaRatio > containerRatio) {
} else /* if this.style === ObjectFit.Style.CONTAIN */if (this._mediaRatio > containerRatio) {
elementWidth = containerWidth;

@@ -261,3 +271,3 @@ elementHeight = containerWidth / this._mediaRatio;

key: '_loadEventName',
get: function get$$1() {
get: function get() {
return this._isVideo ? 'loadedmetadata' : 'load';

@@ -264,0 +274,0 @@ }

4

package.json
{
"name": "@odopod/odo-object-fit",
"description": "Fits media elements (img, video). It polyfills CSS' object-fit: cover; If the browser supports object-fit, it will not run.",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/odo-object-fit.js",

@@ -14,3 +14,2 @@ "odoModule": "src/object-fit.js",

],
"devDependencies": {},
"homepage": "https://github.com/odopod/code-library/tree/master/packages/odo-object-fit",

@@ -37,5 +36,4 @@ "files": [

"scripts": {
"link-local": "node ../../scripts/link-local-packages.js",
"test": "gulp code-quality test"
}
}

@@ -35,2 +35,2 @@ # Odo Object Fit

[permalink]: https://odopod.github.io/odo/odo-object-fit/
[permalink]: https://code.odopod.com/odo-object-fit/

@@ -88,3 +88,3 @@ /**

}
} else /* if (this.style === ObjectFit.Style.CONTAIN)*/ if (this._mediaRatio > containerRatio) {
} else /* if this.style === ObjectFit.Style.CONTAIN */ if (this._mediaRatio > containerRatio) {
elementWidth = containerWidth;

@@ -91,0 +91,0 @@ elementHeight = containerWidth / this._mediaRatio;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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