@nlo/ping-video-loader
Advanced tools
Comparing version 0.0.1-alpha.76 to 0.0.1-alpha.78
@@ -8,3 +8,3 @@ declare global { | ||
declare class PingVideoPlayerLoader { | ||
loadVideo(targetElement: HTMLElement, videoName: string, autoStart: boolean): Promise<unknown>; | ||
loadVideo(elementId: string, videoName: string, autoStart: boolean): Promise<unknown> | undefined; | ||
private awaitElementLoad; | ||
@@ -11,0 +11,0 @@ private createScriptTag; |
@@ -9,4 +9,8 @@ "use strict"; | ||
} | ||
PingVideoPlayerLoader.prototype.loadVideo = function (targetElement, videoName, autoStart) { | ||
PingVideoPlayerLoader.prototype.loadVideo = function (elementId, videoName, autoStart) { | ||
var _this = this; | ||
var targetElement = document.getElementById(elementId); | ||
if (!targetElement) { | ||
return; | ||
} | ||
return new Promise(function (resolve) { | ||
@@ -13,0 +17,0 @@ // Change empty div into a PingVP element |
{ | ||
"name": "@nlo/ping-video-loader", | ||
"version": "0.0.1-alpha.76+9fcfb38", | ||
"version": "0.0.1-alpha.78+472f892", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "9fcfb383be8c387620b664030fd1ec71f4ed522a" | ||
"gitHead": "472f892d60e2c134fee60db829ffd38348a4ed63" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
4069
87