@tsparticles/updater-twinkle 4.0.0-beta.9 → 4.0.1

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 { loadTwinkleUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadTwinkleUpdater = loadTwinkleUpdater;
5
+ export * from "./index.js";
package/browser/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { TwinkleUpdater } from "./TwinkleUpdater.js";
1
2
  export async function loadTwinkleUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.9");
3
+ engine.checkVersion("4.0.1");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("twinkle", async (container) => {
5
- const { TwinkleUpdater } = await import("./TwinkleUpdater.js");
6
- return new TwinkleUpdater(e.pluginManager, container);
5
+ e.pluginManager.addParticleUpdater("twinkle", container => {
6
+ return Promise.resolve(new TwinkleUpdater(e.pluginManager, container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadTwinkleUpdater(engine) {
2
+ engine.checkVersion("4.0.1");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("twinkle", async (container) => {
5
+ const { TwinkleUpdater } = await import("./TwinkleUpdater.js");
6
+ return new TwinkleUpdater(e.pluginManager, container);
7
+ });
8
+ });
9
+ }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadTwinkleUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadTwinkleUpdater = loadTwinkleUpdater;
5
+ export * from "./index.js";
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { TwinkleUpdater } from "./TwinkleUpdater.js";
1
2
  export async function loadTwinkleUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.9");
3
+ engine.checkVersion("4.0.1");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("twinkle", async (container) => {
5
- const { TwinkleUpdater } = await import("./TwinkleUpdater.js");
6
- return new TwinkleUpdater(e.pluginManager, container);
5
+ e.pluginManager.addParticleUpdater("twinkle", container => {
6
+ return Promise.resolve(new TwinkleUpdater(e.pluginManager, container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadTwinkleUpdater(engine) {
2
+ engine.checkVersion("4.0.1");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("twinkle", async (container) => {
5
+ const { TwinkleUpdater } = await import("./TwinkleUpdater.js");
6
+ return new TwinkleUpdater(e.pluginManager, container);
7
+ });
8
+ });
9
+ }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadTwinkleUpdater } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadTwinkleUpdater = loadTwinkleUpdater;
5
+ export * from "./index.js";
package/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
+ import { TwinkleUpdater } from "./TwinkleUpdater.js";
1
2
  export async function loadTwinkleUpdater(engine) {
2
- engine.checkVersion("4.0.0-beta.9");
3
+ engine.checkVersion("4.0.1");
3
4
  await engine.pluginManager.register(e => {
4
- e.pluginManager.addParticleUpdater("twinkle", async (container) => {
5
- const { TwinkleUpdater } = await import("./TwinkleUpdater.js");
6
- return new TwinkleUpdater(e.pluginManager, container);
5
+ e.pluginManager.addParticleUpdater("twinkle", container => {
6
+ return Promise.resolve(new TwinkleUpdater(e.pluginManager, container));
7
7
  });
8
8
  });
9
9
  }
@@ -0,0 +1,9 @@
1
+ export async function loadTwinkleUpdater(engine) {
2
+ engine.checkVersion("4.0.1");
3
+ await engine.pluginManager.register(e => {
4
+ e.pluginManager.addParticleUpdater("twinkle", async (container) => {
5
+ const { TwinkleUpdater } = await import("./TwinkleUpdater.js");
6
+ return new TwinkleUpdater(e.pluginManager, container);
7
+ });
8
+ });
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/updater-twinkle",
3
- "version": "4.0.0-beta.9",
3
+ "version": "4.0.1",
4
4
  "description": "tsParticles particles twinkle 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.9"
96
+ "@tsparticles/engine": "4.0.1"
90
97
  },
91
98
  "publishConfig": {
92
99
  "access": "public"