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

@tsparticles/interaction-external-push

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsparticles/interaction-external-push - npm Package Compare versions

Comparing version 3.0.3 to 3.1.0

4

browser/Pusher.js
import { ExternalInteractorBase, getRangeValue, itemFromArray, } from "@tsparticles/engine";
import { Push } from "./Options/Classes/Push.js";
const pushMode = "push";
const pushMode = "push", minQuantity = 0;
export class Pusher extends ExternalInteractorBase {

@@ -16,3 +16,3 @@ constructor(container) {

const quantity = getRangeValue(pushOptions.quantity);
if (quantity <= 0) {
if (quantity <= minQuantity) {
return;

@@ -19,0 +19,0 @@ }

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

const Push_js_1 = require("./Options/Classes/Push.js");
const pushMode = "push";
const pushMode = "push", minQuantity = 0;
class Pusher extends engine_1.ExternalInteractorBase {

@@ -20,3 +20,3 @@ constructor(container) {

const quantity = (0, engine_1.getRangeValue)(pushOptions.quantity);
if (quantity <= 0) {
if (quantity <= minQuantity) {
return;

@@ -23,0 +23,0 @@ }

import { ExternalInteractorBase, getRangeValue, itemFromArray, } from "@tsparticles/engine";
import { Push } from "./Options/Classes/Push.js";
const pushMode = "push";
const pushMode = "push", minQuantity = 0;
export class Pusher extends ExternalInteractorBase {

@@ -16,3 +16,3 @@ constructor(container) {

const quantity = getRangeValue(pushOptions.quantity);
if (quantity <= 0) {
if (quantity <= minQuantity) {
return;

@@ -19,0 +19,0 @@ }

{
"name": "@tsparticles/interaction-external-push",
"version": "3.0.3",
"version": "3.1.0",
"description": "tsParticles push external interaction",

@@ -90,3 +90,3 @@ "homepage": "https://particles.js.org",

"dependencies": {
"@tsparticles/engine": "^3.0.3"
"@tsparticles/engine": "^3.1.0"
},

@@ -93,0 +93,0 @@ "publishConfig": {

@@ -7,3 +7,3 @@ /*!

* How to use? : Check the GitHub README
* v3.0.3
* v3.1.0
*/

@@ -131,3 +131,4 @@ (function webpackUniversalModuleDefinition(root, factory) {

const pushMode = "push";
const pushMode = "push",
minQuantity = 0;
class Pusher extends engine_root_window_.ExternalInteractorBase {

@@ -147,3 +148,3 @@ constructor(container) {

const quantity = (0,engine_root_window_.getRangeValue)(pushOptions.quantity);
if (quantity <= 0) {
if (quantity <= minQuantity) {
return;

@@ -150,0 +151,0 @@ }

@@ -1,1 +0,1 @@

/*! tsParticles Push External Interaction v3.0.3 by Matteo Bruni */
/*! tsParticles Push External Interaction v3.1.0 by Matteo Bruni */
import type { Container, Options } from "@tsparticles/engine";
import type { IPush } from "./Options/Interfaces/IPush.js";
import type { Push } from "./Options/Classes/Push.js";
export type IPushMode = {
export interface IPushMode {
push: IPush;
};
export type PushMode = {
}
export interface PushMode {
push?: Push;
};
}
export type PushContainer = Container & {

@@ -11,0 +11,0 @@ actualOptions: PushOptions;

@@ -15,3 +15,3 @@ (function (factory) {

const Push_js_1 = require("./Options/Classes/Push.js");
const pushMode = "push";
const pushMode = "push", minQuantity = 0;
class Pusher extends engine_1.ExternalInteractorBase {

@@ -29,3 +29,3 @@ constructor(container) {

const quantity = (0, engine_1.getRangeValue)(pushOptions.quantity);
if (quantity <= 0) {
if (quantity <= minQuantity) {
return;

@@ -32,0 +32,0 @@ }

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