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

mirax-player

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mirax-player - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

23

index.js
//index.js - This is your package's entry point
// Import the VideoPlayer class
// Import the VideoPlayer class
import Mirax from './dist/VideoPlayer';
import { attach } from './dist/connector';
import { progressColor } from './dist/progressColor';
import { progressFrame } from './dist/progressFrame';
// Export the VideoPlayer class
// Export the VideoPlayer class and attach function
export default Mirax;
export { attach };
export { progressColor };
export { progressFrame };
// Define the progressColor and progressFrame functions
export const progressColor = (color) => {
const injectProgress = document.createElement('style');
injectProgress.textContent = `.progress-bar::-webkit-progress-value { background-color: ${color}; }`;
document.head.appendChild(injectProgress);
return injectProgress;
};
export const progressFrame = (color) => {
const injectFrame = document.createElement('style');
injectFrame.textContent = `.progress-bar::-webkit-progress-bar { background-color: ${color}; }`;
document.head.appendChild(injectFrame);
return injectFrame;
};
{
"name": "mirax-player",
"version": "1.1.2",
"version": "1.1.3",
"description": "A simple video player for react",

@@ -5,0 +5,0 @@ "main": "index.js",

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