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

@st-graphics/react-object-fit-video

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@st-graphics/react-object-fit-video - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

7

dist/index.js

@@ -204,7 +204,4 @@ import React, { useRef, useCallback, useState, useEffect } from 'react';

function onLoadedmetadata ($video, cb) {
if ($video.readyState > 0) {
cb();
} else {
$video.addEventListener('loadedmetadata', cb);
}
if ($video.readyState > 0) { cb(); }
$video.addEventListener('loadedmetadata', cb);
}

@@ -211,0 +208,0 @@

@@ -209,7 +209,4 @@ 'use strict';

function onLoadedmetadata ($video, cb) {
if ($video.readyState > 0) {
cb();
} else {
$video.addEventListener('loadedmetadata', cb);
}
if ($video.readyState > 0) { cb(); }
$video.addEventListener('loadedmetadata', cb);
}

@@ -216,0 +213,0 @@

{
"name": "@st-graphics/react-object-fit-video",
"version": "0.0.2",
"version": "0.0.3",
"description": "Opensource scrollytelling components used by Straits Times Interactive Graphics Team",

@@ -16,3 +16,2 @@ "main": "dist/legacy.js",

"object-fit",
"hoc",
"polyfill"

@@ -30,3 +29,3 @@ ],

},
"gitHead": "3080a1bbdab2dbcbfb2422dae3129e0b39a5dc78"
"gitHead": "ee46de8d3d9cd751e4736142a88a26a708e8024a"
}

@@ -184,7 +184,4 @@ import React, {useState, useEffect, useRef, useCallback} from 'react'

function onLoadedmetadata ($video, cb) {
if ($video.readyState > 0) {
cb()
} else {
$video.addEventListener('loadedmetadata', cb)
}
if ($video.readyState > 0) cb()
$video.addEventListener('loadedmetadata', cb)
}

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