react-confetti-burst 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,83 +1,106 @@
1
- {
2
- "name": "react-confetti-burst",
3
- "version": "1.0.5",
4
- "description": "A high-performance, zero-dependency React confetti component with directional bursts using Canvas API",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/types/index.d.ts",
11
- "require": "./dist/cjs/index.js",
12
- "import": "./dist/esm/index.js"
13
- }
14
- },
15
- "sideEffects": false,
16
- "files": [
17
- "dist/cjs/index.js",
18
- "dist/esm/index.js",
19
- "dist/types/index.d.ts"
20
- ],
21
- "scripts": {
22
- "build": "npm run clean && npm run build:bundle && npm run build:types",
23
- "build:bundle": "node build.js",
24
- "build:types": "dts-bundle-generator -o dist/types/index.d.ts src/index.ts --no-banner --no-check",
25
- "build:types:fallback": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir dist/types",
26
- "build:dev": "npm run build:cjs && npm run build:esm && npm run build:types:fallback",
27
- "build:cjs": "tsc -p tsconfig.json",
28
- "build:esm": "tsc -p tsconfig.esm.json",
29
- "clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
30
- "test": "jest",
31
- "test:watch": "jest --watch",
32
- "test:coverage": "jest --coverage",
33
- "lint": "eslint src --ext .ts,.tsx",
34
- "typecheck": "tsc --noEmit",
35
- "prepublishOnly": "npm run build",
36
- "size": "node -e \"const f=require('fs');const e=f.statSync('dist/esm/index.js').size;const c=f.statSync('dist/cjs/index.js').size;console.log('ESM:',(e/1024).toFixed(2)+'KB','CJS:',(c/1024).toFixed(2)+'KB','Total:',((e+c)/1024).toFixed(2)+'KB')\""
37
- },
38
- "keywords": [
39
- "react",
40
- "confetti",
41
- "canvas",
42
- "animation",
43
- "celebration",
44
- "burst",
45
- "directional",
46
- "particles",
47
- "typescript",
48
- "zero-dependencies"
49
- ],
50
- "author": "",
51
- "license": "MIT",
52
- "repository": {
53
- "type": "git",
54
- "url": ""
55
- },
56
- "bugs": {
57
- "url": ""
58
- },
59
- "homepage": "",
60
- "peerDependencies": {
61
- "react": ">=17.0.0",
62
- "react-dom": ">=17.0.0"
63
- },
64
- "devDependencies": {
65
- "@testing-library/jest-dom": "^6.9.1",
66
- "@testing-library/react": "^14.0.0",
67
- "@types/jest": "^29.5.0",
68
- "@types/react": "^18.2.0",
69
- "@types/react-dom": "^18.2.0",
70
- "dts-bundle-generator": "^9.5.1",
71
- "esbuild": "^0.27.2",
72
- "jest": "^29.7.0",
73
- "jest-environment-jsdom": "^29.7.0",
74
- "react": "^18.2.0",
75
- "react-dom": "^18.2.0",
76
- "terser": "^5.44.1",
77
- "ts-jest": "^29.1.0",
78
- "typescript": "^5.3.0"
79
- },
80
- "engines": {
81
- "node": ">=18.0.0"
82
- }
83
- }
1
+ {
2
+ "name": "react-confetti-burst",
3
+ "version": "1.0.7",
4
+ "description": "A high-performance, zero-dependency React confetti component with directional bursts using Canvas API",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/types/index.d.ts",
11
+ "require": "./dist/cjs/index.js",
12
+ "import": "./dist/esm/index.js"
13
+ },
14
+ "./browser": "./dist/confetti.browser.js"
15
+ },
16
+ "browser": "dist/confetti.browser.js",
17
+ "sideEffects": false,
18
+ "files": [
19
+ "dist/cjs/index.js",
20
+ "dist/esm/index.js",
21
+ "dist/confetti.browser.js",
22
+ "dist/types/index.d.ts",
23
+ "README.md",
24
+ "LICENSE",
25
+ "CONTRIBUTING.md"
26
+ ],
27
+ "scripts": {
28
+ "build": "npm run clean && npm run build:bundle && npm run build:types",
29
+ "build:bundle": "node build.js",
30
+ "build:types": "dts-bundle-generator -o dist/types/index.d.ts src/index.ts --no-banner --no-check",
31
+ "build:types:fallback": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir dist/types",
32
+ "build:dev": "npm run build:cjs && npm run build:esm && npm run build:types:fallback",
33
+ "build:cjs": "tsc -p tsconfig.json",
34
+ "build:esm": "tsc -p tsconfig.esm.json",
35
+ "clean": "node -e \"fs.rmSync('dist',{recursive:true,force:true})\"",
36
+ "test": "jest",
37
+ "test:watch": "jest --watch",
38
+ "test:coverage": "jest --coverage",
39
+ "lint": "eslint src",
40
+ "typecheck": "tsc --noEmit",
41
+ "prepare": "husky",
42
+ "prepublishOnly": "npm run build",
43
+ "size": "node -e \"const f=require('fs');const e=f.statSync('dist/esm/index.js').size;const c=f.statSync('dist/cjs/index.js').size;console.log('ESM:',(e/1024).toFixed(2)+'KB','CJS:',(c/1024).toFixed(2)+'KB','Total:',((e+c)/1024).toFixed(2)+'KB')\"",
44
+ "playground": "npm run dev --prefix playground"
45
+ },
46
+ "keywords": [
47
+ "react",
48
+ "confetti",
49
+ "canvas",
50
+ "animation",
51
+ "celebration",
52
+ "burst",
53
+ "directional",
54
+ "particles",
55
+ "typescript",
56
+ "zero-dependencies"
57
+ ],
58
+ "author": "",
59
+ "license": "MIT",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": ""
63
+ },
64
+ "bugs": {
65
+ "url": ""
66
+ },
67
+ "homepage": "",
68
+ "peerDependencies": {
69
+ "react": ">=17.0.0",
70
+ "react-dom": ">=17.0.0"
71
+ },
72
+ "devDependencies": {
73
+ "@testing-library/jest-dom": "^6.9.1",
74
+ "@testing-library/react": "^14.0.0",
75
+ "@types/jest": "^29.5.0",
76
+ "@types/react": "^18.2.0",
77
+ "@types/react-dom": "^18.2.0",
78
+ "@typescript-eslint/eslint-plugin": "^8.57.1",
79
+ "@typescript-eslint/parser": "^8.57.1",
80
+ "dts-bundle-generator": "^9.5.1",
81
+ "esbuild": "^0.27.2",
82
+ "eslint": "^9.39.4",
83
+ "eslint-plugin-react-hooks": "^7.0.1",
84
+ "husky": "^9.1.7",
85
+ "jest": "^29.7.0",
86
+ "jest-environment-jsdom": "^29.7.0",
87
+ "lint-staged": "^16.4.0",
88
+ "react": "^18.2.0",
89
+ "react-dom": "^18.2.0",
90
+ "terser": "^5.44.1",
91
+ "ts-jest": "^29.1.0",
92
+ "typescript": "^5.3.0"
93
+ },
94
+ "engines": {
95
+ "node": ">=18.0.0"
96
+ },
97
+ "lint-staged": {
98
+ "src/**/*.{ts,tsx}": [
99
+ "eslint --fix"
100
+ ]
101
+ },
102
+ "overrides": {
103
+ "@tootallnate/once": "3.0.1",
104
+ "minimatch": ">=3.1.4"
105
+ }
106
+ }