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

@code-dot-org/dance-party

Package Overview
Dependencies
Maintainers
12
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-dot-org/dance-party - npm Package Compare versions

Comparing version 1.0.15 to 1.1.0

2

package.json
{
"name": "@code-dot-org/dance-party",
"version": "1.0.15",
"version": "1.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

@@ -151,2 +151,3 @@ /* eslint-disable no-unused-vars, curly, eqeqeq */

this.loopAnalysisEvents = false;
this.livePreviewStopTime = 0;

@@ -331,2 +332,3 @@ new P5(p5Inst => {

this.loopAnalysisEvents = false;
this.livePreviewStopTime = 0;
}

@@ -373,3 +375,10 @@

livePreview(songData) {
/**
* Starts a live preview of the animation only (no audio).
*
* @param {Object} songData - song metadata for the preview
* @param {number | undefined} durationMs - (optional) duration to run the preview for in milliseconds.
* If no duration is provided, the preview will run continuously until reset() is called
*/
livePreview(songData, durationMs) {
this.songMetadata_ = modifySongData(songData);

@@ -379,2 +388,3 @@ this.analysisPosition_ = 0;

this.loopAnalysisEvents = true;
this.livePreviewStopTime = durationMs === undefined ? 0 : Date.now() + durationMs;
this.p5_.loop();

@@ -1577,2 +1587,7 @@ }

}
// Stop live preview animation if necessary.
if (this.livePreviewStopTime && Date.now() > this.livePreviewStopTime) {
this.p5_.noLoop();
}
}

@@ -1579,0 +1594,0 @@ };

Sorry, the diff of this file is too big to display

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