@tsparticles/path-svg 3.0.0-beta.0 → 3.0.0-beta.2

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.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![npmjs](https://badge.fury.io/js/@tsparticles/path-svg.svg)](https://www.npmjs.com/package/@tsparticles/path-svg)
7
7
  [![npmjs](https://img.shields.io/npm/dt/@tsparticles/path-svg)](https://www.npmjs.com/package/@tsparticles/path-svg) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
8
8
 
9
- [tsParticles](https://github.com/matteobruni/tsparticles) path plugin for on svg path movement.
9
+ [tsParticles](https://github.com/tsparticles/tsparticles) path plugin for on svg path movement.
10
10
 
11
11
  ## How to use it
12
12
 
package/browser/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SVGPathGenerator } from "./SVGPathGenerator";
1
+ import { SVGPathGenerator } from "./SVGPathGenerator.js";
2
2
  export const svgPathName = "svgPathGenerator";
3
3
  export async function loadSVGPath(engine, refresh = true) {
4
4
  await engine.addPathGenerator(svgPathName, new SVGPathGenerator(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.loadSVGPath = exports.svgPathName = void 0;
4
- const SVGPathGenerator_1 = require("./SVGPathGenerator");
4
+ const SVGPathGenerator_js_1 = require("./SVGPathGenerator.js");
5
5
  exports.svgPathName = "svgPathGenerator";
6
6
  async function loadSVGPath(engine, refresh = true) {
7
- await engine.addPathGenerator(exports.svgPathName, new SVGPathGenerator_1.SVGPathGenerator(), refresh);
7
+ await engine.addPathGenerator(exports.svgPathName, new SVGPathGenerator_js_1.SVGPathGenerator(), refresh);
8
8
  }
9
9
  exports.loadSVGPath = loadSVGPath;
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SVGPathGenerator } from "./SVGPathGenerator";
1
+ import { SVGPathGenerator } from "./SVGPathGenerator.js";
2
2
  export const svgPathName = "svgPathGenerator";
3
3
  export async function loadSVGPath(engine, refresh = true) {
4
4
  await engine.addPathGenerator(svgPathName, new SVGPathGenerator(), refresh);
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@tsparticles/path-svg",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "tsParticles svg path",
5
5
  "homepage": "https://particles.js.org",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "git+https://github.com/matteobruni/tsparticles.git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
9
  "directory": "paths/svg"
10
10
  },
11
11
  "keywords": [
@@ -66,7 +66,7 @@
66
66
  "author": "Matteo Bruni <matteo.bruni@me.com>",
67
67
  "license": "MIT",
68
68
  "bugs": {
69
- "url": "https://github.com/matteobruni/tsparticles/issues"
69
+ "url": "https://github.com/tsparticles/tsparticles/issues"
70
70
  },
71
71
  "funding": [
72
72
  {
@@ -82,14 +82,26 @@
82
82
  "url": "https://www.buymeacoffee.com/matteobruni"
83
83
  }
84
84
  ],
85
- "main": "cjs/index.js",
85
+ "sideEffects": false,
86
86
  "jsdelivr": "tsparticles.path.svg.min.js",
87
87
  "unpkg": "tsparticles.path.svg.min.js",
88
+ "browser": "browser/index.js",
89
+ "main": "cjs/index.js",
88
90
  "module": "esm/index.js",
89
91
  "types": "types/index.d.ts",
90
- "sideEffects": false,
92
+ "exports": {
93
+ ".": {
94
+ "types": "./types/index.d.ts",
95
+ "browser": "./browser/index.js",
96
+ "import": "./esm/index.js",
97
+ "require": "./cjs/index.js",
98
+ "umd": "./umd/index.js",
99
+ "default": "./cjs/index.js"
100
+ },
101
+ "./package.json": "./package.json"
102
+ },
91
103
  "dependencies": {
92
- "@tsparticles/engine": "^3.0.0-beta.0"
104
+ "@tsparticles/engine": "^3.0.0-beta.2"
93
105
  },
94
106
  "publishConfig": {
95
107
  "access": "public"