customizable-toast-notification 3.12.2 β†’ 3.12.3

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,7 +1,8 @@
1
1
  {
2
2
  "name": "customizable-toast-notification",
3
- "version": "3.12.2",
3
+ "version": "3.12.3",
4
4
  "description": "A lightweight, zero-dependency toast notification library with CTA support for modern JavaScript applications with production-grade reliability and comprehensive system mechanisms",
5
+ "type": "module",
5
6
  "main": "dist/index.cjs",
6
7
  "module": "dist/index.esm.mjs",
7
8
  "unpkg": "dist/index.umd.js",
@@ -41,9 +42,9 @@
41
42
  "build:types:bundle": "rollup -c rollup.dts.config.mjs",
42
43
  "build:types": "npm run build:types:emit && npm run build:types:bundle",
43
44
  "zone-build": "npm run dist:clean && npm run build:js && npm run build:types && du -h dist/*",
44
- "postinstall": "node postinstall.js",
45
+ "postinstall": "node postinstall.cjs",
45
46
  "build": "rollup -c",
46
- "test:builds": "node scripts/test-build.js",
47
+ "test:builds": "node scripts/test-build.cjs",
47
48
  "ci:test": "node tests/logic/logic-verification.test.mjs",
48
49
  "lint": "eslint src",
49
50
  "test:e2e": "playwright test",
package/postinstall.js DELETED
@@ -1,31 +0,0 @@
1
- try {
2
- if (
3
- process.env.CI ||
4
- process.env.NODE_ENV === "prod" ||
5
- process.env.NODE_ENV === "production"
6
- ) {
7
- process.exit(0);
8
- } else {
9
- showMessage();
10
- }
11
-
12
- function showMessage() {
13
- const lines = [
14
- "🎯Thanks for sticking with it! This is the final message. πŸš€...πŸ“¦Thanks for using this package!",
15
- "πŸ“˜ In README.md - More professional",
16
- "πŸ‘¨β€πŸ’» Author **Priyanshu Patel** -",
17
- "🀝 Open to collaboration & teamwork",
18
- "πŸ’Ό Looking for exciting dev opportunities.",
19
- "πŸ”— Contact: priyanshu.alt191@gmail.com",
20
- "πŸš€ Built different. Stay creative.",
21
- ];
22
-
23
- // AUDIT FIX (L4): console.log(lines) on an array prints Node's array-
24
- // inspection format (`[ 'line1', 'line2', ... ]`), not clean
25
- // multi-line text. join("\n") prints it the way it was obviously
26
- // meant to look.
27
- console.log(lines.join("\n"));
28
- }
29
- } catch (error) {
30
- process.exit(0);
31
- }