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

chart2music

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chart2music - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

dist/types/audio/AudioEngine.d.ts

18

dist/index.js

@@ -178,3 +178,2 @@ var c2mChart = (function (exports) {

this._numPaddingCharacters = 0;
this._elementsToDelete = [];
this._element = captionElement;

@@ -200,9 +199,6 @@ this._lastCreatedElement = null;

divElement.setAttribute(ScreenReaderBridge.ORIGINAL_TEXT_ATTRIBUTE, text);
divElement.setAttribute("data-created", Date.now().toString());
if (this.lastCreatedElement) {
this._removeOldElements();
this.lastCreatedElement.style.display = "none";
this._elementsToDelete.push({
element: this.lastCreatedElement,
time: Date.now()
});
}

@@ -223,12 +219,8 @@ this._element.appendChild(divElement);

const curTime = Date.now();
const elementsTooYoungToDelete = [];
this._elementsToDelete.forEach((eInfo) => {
if (curTime - eInfo.time > ScreenReaderBridge.REMOVAL_DELAY) {
this._element.removeChild(eInfo.element);
Array.from(this._element.children).forEach((kid) => {
const time = Number(kid.getAttribute("data-time"));
if (curTime - time > ScreenReaderBridge.REMOVAL_DELAY) {
this._element.removeChild(kid);
}
else {
elementsTooYoungToDelete.push(eInfo);
}
});
this._elementsToDelete = elementsTooYoungToDelete;
}

@@ -235,0 +227,0 @@ }

{
"name": "chart2music",
"version": "1.0.2",
"version": "1.0.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.mjs",

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