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

youtube-video-element

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-video-element - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

16

dist/react.js

@@ -7,7 +7,6 @@ // This file is generated by media-elements/scripts/build-react-wrapper!

export default React.forwardRef(({ children, ...props }, ref) => {
export default React.forwardRef((allProps, ref) => {
let { children, suppressHydrationWarning, ...props } = allProps;
ref ??= useRef();
const attrs = propsToAttrs({ ...props, ref });
for (let name in props) {

@@ -32,2 +31,4 @@ if (name[0] === 'o' && name[1] === 'n') {

const attrs = propsToAttrs(props);
// Only render the custom element template HTML on the server..

@@ -49,3 +50,8 @@ // The custom element will render itself on the client.

return React.createElement('youtube-video', attrs, ...[].concat(children));
return React.createElement('youtube-video', {
...attrs,
ref,
children,
suppressHydrationWarning,
});
});

@@ -73,3 +79,3 @@

if (typeof propValue === 'boolean' && !propValue) return undefined;
if (/^on[A-Z]/.test(propName)) return undefined;
if (propName.startsWith('on') && typeof propValue === 'function') return undefined;
if (/[A-Z]/.test(propName)) return propName.toLowerCase();

@@ -76,0 +82,0 @@ return propName;

{
"name": "youtube-video-element",
"version": "1.1.2",
"version": "1.1.3",
"description": "Custom element (web component) for the YouTube player.",

@@ -33,3 +33,3 @@ "author": "@muxinc",

"devDependencies": {
"build-react-wrapper": "^0.1.2",
"build-react-wrapper": "^0.1.3",
"npm-run-all": "^4.1.5",

@@ -36,0 +36,0 @@ "wet-run": "^1.2.2"

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