@tsparticles/updater-destroy 4.0.0-beta.12 → 4.0.0-beta.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import { loadDestroyUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadDestroyUpdater = loadDestroyUpdater;
5
+ export * from "./index.js";
package/browser/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { DestroyUpdater } from "./DestroyUpdater.js";
1
2
  export async function loadDestroyUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.12");
3
+ engine.checkVersion("4.0.0-beta.15");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("destroy", async (container) => {
5
- const { DestroyUpdater } = await import("./DestroyUpdater.js");
6
- return new DestroyUpdater(e.pluginManager, container);
5
+ e.pluginManager.addParticleUpdater("destroy", container => {
6
+ return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadDestroyUpdater(engine) {
2
+ engine.checkVersion("4.0.0-beta.15");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("destroy", async (container) => {
5
+ const { DestroyUpdater } = await import("./DestroyUpdater.js");
6
+ return new DestroyUpdater(e.pluginManager, container);
7
+ });
8
+ });
9
+ }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadDestroyUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadDestroyUpdater = loadDestroyUpdater;
5
+ export * from "./index.js";
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { DestroyUpdater } from "./DestroyUpdater.js";
1
2
  export async function loadDestroyUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.12");
3
+ engine.checkVersion("4.0.0-beta.15");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("destroy", async (container) => {
5
- const { DestroyUpdater } = await import("./DestroyUpdater.js");
6
- return new DestroyUpdater(e.pluginManager, container);
5
+ e.pluginManager.addParticleUpdater("destroy", container => {
6
+ return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadDestroyUpdater(engine) {
2
+ engine.checkVersion("4.0.0-beta.15");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("destroy", async (container) => {
5
+ const { DestroyUpdater } = await import("./DestroyUpdater.js");
6
+ return new DestroyUpdater(e.pluginManager, container);
7
+ });
8
+ });
9
+ }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadDestroyUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadDestroyUpdater = loadDestroyUpdater;
5
+ export * from "./index.js";
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { DestroyUpdater } from "./DestroyUpdater.js";
1
2
  export async function loadDestroyUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.12");
3
+ engine.checkVersion("4.0.0-beta.15");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("destroy", async (container) => {
5
- const { DestroyUpdater } = await import("./DestroyUpdater.js");
6
- return new DestroyUpdater(e.pluginManager, container);
5
+ e.pluginManager.addParticleUpdater("destroy", container => {
6
+ return Promise.resolve(new DestroyUpdater(e.pluginManager, container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadDestroyUpdater(engine) {
2
+ engine.checkVersion("4.0.0-beta.15");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("destroy", async (container) => {
5
+ const { DestroyUpdater } = await import("./DestroyUpdater.js");
6
+ return new DestroyUpdater(e.pluginManager, container);
7
+ });
8
+ });
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/updater-destroy",
3
- "version": "4.0.0-beta.12",
3
+ "version": "4.0.0-beta.15",
4
4
  "description": "tsParticles particles destroy updater",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
@@ -83,10 +83,17 @@
83
83
  "require": "./cjs/index.js",
84
84
  "default": "./esm/index.js"
85
85
  },
86
+ "./lazy": {
87
+ "types": "./types/index.lazy.d.ts",
88
+ "browser": "./browser/index.lazy.js",
89
+ "import": "./esm/index.lazy.js",
90
+ "require": "./cjs/index.lazy.js",
91
+ "default": "./esm/index.lazy.js"
92
+ },
86
93
  "./package.json": "./package.json"
87
94
  },
88
95
  "peerDependencies": {
89
- "@tsparticles/engine": "4.0.0-beta.12"
96
+ "@tsparticles/engine": "4.0.0-beta.15"
90
97
  },
91
98
  "publishConfig": {
92
99
  "access": "public"