New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nlo/ping-video-loader

Package Overview
Dependencies
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlo/ping-video-loader - npm Package Compare versions

Comparing version 0.0.1-alpha.81 to 0.0.1-alpha.82

6

dist/ping-video-loader.d.ts

@@ -5,5 +5,7 @@ declare global {

pingvp?: any;
jQuery?: any;
$?: any;
}
}
declare class PingVideoPlayerLoader {
declare class PingVideoLoader {
loadVideo(elementId: string, videoName: string, autoStart: boolean): Promise<unknown> | undefined;

@@ -14,3 +16,3 @@ private awaitElementLoad;

}
declare const _default: PingVideoPlayerLoader;
declare const _default: PingVideoLoader;
export default _default;

@@ -6,6 +6,6 @@ "use strict";

var scriptIsCreated = false;
var PingVideoPlayerLoader = /** @class */ (function () {
function PingVideoPlayerLoader() {
var PingVideoLoader = /** @class */ (function () {
function PingVideoLoader() {
}
PingVideoPlayerLoader.prototype.loadVideo = function (elementId, videoName, autoStart) {
PingVideoLoader.prototype.loadVideo = function (elementId, videoName, autoStart) {
var _this = this;

@@ -29,3 +29,3 @@ var targetElement = document.getElementById(elementId);

};
PingVideoPlayerLoader.prototype.awaitElementLoad = function (targetElement, resolve) {
PingVideoLoader.prototype.awaitElementLoad = function (targetElement, resolve) {
var checkElementLoaded = setInterval(function () {

@@ -38,12 +38,14 @@ if (targetElement.childNodes.length) {

};
PingVideoPlayerLoader.prototype.createScriptTag = function () {
PingVideoLoader.prototype.createScriptTag = function () {
if (scriptIsCreated) {
return;
}
// The PingVP script checks for jQuery but uses $, so this ensures that the alias is always set
window.$ = window.jQuery;
var tag = document.createElement('script');
tag.src = "https://www.pingvp.com/p/aXNejdEHiu";
tag.src = 'https://www.pingvp.com/p/aXNejdEHiu';
document.body.appendChild(tag);
scriptIsCreated = true;
};
PingVideoPlayerLoader.prototype.loadPingVpAsync = function () {
PingVideoLoader.prototype.loadPingVpAsync = function () {
if (pingVideoPlayerIsLoaded && window.pingVpLoader) {

@@ -65,4 +67,4 @@ window.pingVpLoader();

};
return PingVideoPlayerLoader;
return PingVideoLoader;
}());
exports.default = new PingVideoPlayerLoader();
exports.default = new PingVideoLoader();
{
"name": "@nlo/ping-video-loader",
"version": "0.0.1-alpha.81+691c95f",
"version": "0.0.1-alpha.82+d957b39",
"description": "",

@@ -23,3 +23,3 @@ "main": "dist/index.js",

},
"gitHead": "691c95ff4d5df5ad733635a12312abe0bc3fe788"
"gitHead": "d957b39fa509ea2e5dd89eba787eb50da57646e0"
}
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