customizable-toast-notification 3.11.0 β†’ 3.11.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/package.json CHANGED
@@ -1,145 +1,163 @@
1
- {
2
- "name": "customizable-toast-notification",
3
- "version": "3.11.0",
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
- "main": "dist/index.esm.mjs",
6
- "module": "dist/index.esm.mjs",
7
- "unpkg": "dist/index.umd.js",
8
- "jsdelivr": "dist/index.umd.js",
9
- "types": "dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.esm.mjs",
14
- "script": "./dist/index.umd.js",
15
- "default": "./dist/index.umd.js"
16
- },
17
- "./package.json": "./package.json"
18
- },
19
- "engines": {
20
- "node": ">=14.0.0",
21
- "npm": ">=6.0.0"
22
- },
23
- "browserslist": [
24
- "> 0.25%",
25
- "not dead",
26
- "not ie 11",
27
- "chrome >= 60",
28
- "firefox >= 55",
29
- "safari >= 10.1",
30
- "edge >= 79",
31
- "node >= 14"
32
- ],
33
- "sideEffects": [
34
- false,
35
- "*.css"
36
- ],
37
- "scripts": {
38
- "dist:clean": "rm -rf dist",
39
- "build:js": "rollup -c",
40
- "build:types:emit": "tsc -p tsconfig.types.json",
41
- "build:types:bundle": "rollup -c rollup.dts.config.mjs",
42
- "build:types": "npm run build:types:emit && npm run build:types:bundle",
43
- "zone-build": "npm run dist:clean && npm run build:js && npm run build:types",
44
- "postinstall": "node postinstall.js",
45
- "build": "rollup -c",
46
- "test:builds": "node scripts/test-build.js"
47
- },
48
- "keywords": [
49
- "javascript",
50
- "javascript-library",
51
- "vanilla-js",
52
- "notification",
53
- "toast-notification",
54
- "ui-component",
55
- "zero-dependency",
56
- "customizable",
57
- "lightweight",
58
- "production-ready",
59
- "framework-agnostic",
60
- "fallback-system",
61
- "alert",
62
- "popup",
63
- "message",
64
- "library",
65
- "npm",
66
- "umd",
67
- "esm",
68
- "cjs",
69
- "cdn",
70
- "toast",
71
- "toast-library",
72
- "toast-alert",
73
- "toast-message",
74
- "custom-notification",
75
- "popup-notification",
76
- "frontend",
77
- "message-popup",
78
- "npm-library",
79
- "npm-toast-package",
80
- "customizable-toast-notification",
81
- "component",
82
- "toast-component",
83
- "notification-component",
84
- "customisable",
85
- "customisable-toast-notification",
86
- "react-component",
87
- "react-toast",
88
- "frontend",
89
- "frontend-library",
90
- "custom-toast"
91
- ],
92
- "publishConfig": {
93
- "access": "public"
94
- },
95
- "author": {
96
- "name": "Priyanshu Patel",
97
- "email": "priyanshu.alt191@gmail.com",
98
- "url": "https://github.com/sammy-cool"
99
- },
100
- "license": "Apache-2.0",
101
- "files": [
102
- "postinstall.js",
103
- "dist/index.esm.mjs",
104
- "dist/index.esm.mjs.map",
105
- "dist/index.umd.js",
106
- "dist/index.umd.js.map",
107
- "dist/index.d.ts",
108
- "README.md",
109
- "LICENSE",
110
- "CHANGELOG.md"
111
- ],
112
- "devDependencies": {
113
- "@babel/core": "^7.28.4",
114
- "@babel/preset-env": "^7.28.3",
115
- "@playwright/test": "^1.54.1",
116
- "@rollup/plugin-babel": "^6.0.4",
117
- "@rollup/plugin-commonjs": "^28.0.6",
118
- "@rollup/plugin-node-resolve": "^15.2.3",
119
- "@rollup/plugin-replace": "^6.0.2",
120
- "@rollup/plugin-terser": "^0.4.4",
121
- "autoprefixer": "^10.4.21",
122
- "postcss": "^8.5.6",
123
- "postcss-import": "^16.1.1",
124
- "rollup": "^4.49.0",
125
- "rollup-plugin-dts": "^6.2.3",
126
- "rollup-plugin-filesize": "^10.0.0",
127
- "rollup-plugin-postcss": "^4.0.2",
128
- "rollup-plugin-visualizer": "^6.0.3",
129
- "typescript": "^5.9.2"
130
- },
131
- "repository": {
132
- "type": "git",
133
- "url": "git+https://github.com/sammy-cool/customizable-toast-notification.git"
134
- },
135
- "bugs": {
136
- "url": "https://github.com/sammy-cool/customizable-toast-notification/issues"
137
- },
138
- "homepage": "https://github.com/sammy-cool/customizable-toast-notification#readme",
139
- "funding": [
140
- {
141
- "type": "individual",
142
- "url": "https://paypal.me/priyanshupatel1"
143
- }
144
- ]
145
- }
1
+ {
2
+ "name": "customizable-toast-notification",
3
+ "version": "3.11.2",
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
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.esm.mjs",
7
+ "unpkg": "dist/index.umd.js",
8
+ "jsdelivr": "dist/index.umd.js",
9
+ "types": "dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.esm.mjs",
14
+ "require": "./dist/index.cjs",
15
+ "script": "./dist/index.umd.js",
16
+ "default": "./dist/index.umd.js"
17
+ },
18
+ "./package.json": "./package.json"
19
+ },
20
+ "engines": {
21
+ "node": ">=14.0.0",
22
+ "npm": ">=6.0.0"
23
+ },
24
+ "browserslist": [
25
+ "> 0.25%",
26
+ "not dead",
27
+ "not ie 11",
28
+ "chrome >= 60",
29
+ "firefox >= 55",
30
+ "safari >= 10.1",
31
+ "edge >= 79",
32
+ "node >= 14"
33
+ ],
34
+ "sideEffects": [
35
+ false,
36
+ "*.css"
37
+ ],
38
+ "scripts": {
39
+ "dist:clean": "rm -rf dist",
40
+ "build:js": "rollup -c",
41
+ "build:types:emit": "tsc -p tsconfig.types.json",
42
+ "build:types:bundle": "rollup -c rollup.dts.config.mjs",
43
+ "build:types": "npm run build:types:emit && npm run build:types:bundle",
44
+ "zone-build": "npm run dist:clean && npm run build:js && npm run build:types && du -h dist/*",
45
+ "postinstall": "node postinstall.js",
46
+ "build": "rollup -c",
47
+ "test:builds": "node scripts/test-build.js",
48
+ "ci:test": "node tests/logic/logic-verification.test.mjs",
49
+ "lint": "eslint src",
50
+ "test:e2e": "playwright test",
51
+ "test:e2e:ui": "playwright test --ui",
52
+ "test:e2e:headed": "playwright test --headed",
53
+ "prepare": "husky"
54
+ },
55
+ "keywords": [
56
+ "javascript",
57
+ "javascript-library",
58
+ "vanilla-js",
59
+ "notification",
60
+ "toast-notification",
61
+ "ui-component",
62
+ "zero-dependency",
63
+ "customizable",
64
+ "lightweight",
65
+ "production-ready",
66
+ "framework-agnostic",
67
+ "fallback-system",
68
+ "alert",
69
+ "popup",
70
+ "message",
71
+ "library",
72
+ "npm",
73
+ "umd",
74
+ "esm",
75
+ "cjs",
76
+ "cdn",
77
+ "toast",
78
+ "toast-library",
79
+ "toast-alert",
80
+ "toast-message",
81
+ "custom-notification",
82
+ "popup-notification",
83
+ "frontend",
84
+ "message-popup",
85
+ "npm-library",
86
+ "npm-toast-package",
87
+ "customizable-toast-notification",
88
+ "component",
89
+ "toast-component",
90
+ "notification-component",
91
+ "customisable",
92
+ "customisable-toast-notification",
93
+ "react-component",
94
+ "react-toast",
95
+ "frontend",
96
+ "frontend-library",
97
+ "custom-toast"
98
+ ],
99
+ "publishConfig": {
100
+ "access": "public"
101
+ },
102
+ "author": {
103
+ "name": "Priyanshu Patel",
104
+ "email": "priyanshu.alt191@gmail.com",
105
+ "url": "https://github.com/sammy-cool"
106
+ },
107
+ "license": "Apache-2.0",
108
+ "files": [
109
+ "postinstall.js",
110
+ "dist/index.esm.mjs",
111
+ "dist/index.esm.mjs.map",
112
+ "dist/index.umd.js",
113
+ "dist/index.umd.js.map",
114
+ "dist/index.cjs",
115
+ "dist/index.cjs.map",
116
+ "dist/index.d.ts",
117
+ "README.md",
118
+ "LICENSE",
119
+ "CHANGELOG.md"
120
+ ],
121
+ "devDependencies": {
122
+ "@babel/core": "^7.28.4",
123
+ "@babel/preset-env": "^7.28.3",
124
+ "@commitlint/cli": "^21.2.1",
125
+ "@commitlint/config-conventional": "^21.2.0",
126
+ "@eslint/js": "^10.0.1",
127
+ "@playwright/test": "^1.54.1",
128
+ "@rollup/plugin-babel": "^6.0.4",
129
+ "@rollup/plugin-commonjs": "^28.0.6",
130
+ "@rollup/plugin-node-resolve": "^15.2.3",
131
+ "@rollup/plugin-replace": "^6.0.2",
132
+ "@rollup/plugin-terser": "^1.0.0",
133
+ "@semantic-release/changelog": "^7.0.0",
134
+ "@semantic-release/git": "^11.0.1",
135
+ "autoprefixer": "^10.4.21",
136
+ "eslint": "^10.8.0",
137
+ "globals": "^17.9.0",
138
+ "husky": "^9.1.7",
139
+ "jsdom": "^29.1.1",
140
+ "postcss": "^8.5.6",
141
+ "postcss-import": "^16.1.1",
142
+ "rollup": "^4.49.0",
143
+ "rollup-plugin-dts": "^6.2.3",
144
+ "rollup-plugin-postcss": "^4.0.2",
145
+ "rollup-plugin-visualizer": "^6.0.3",
146
+ "semantic-release": "^25.0.9",
147
+ "typescript": "^5.9.2"
148
+ },
149
+ "repository": {
150
+ "type": "git",
151
+ "url": "git+https://github.com/sammy-cool/customizable-toast-notification.git"
152
+ },
153
+ "bugs": {
154
+ "url": "https://github.com/sammy-cool/customizable-toast-notification/issues"
155
+ },
156
+ "homepage": "https://github.com/sammy-cool/customizable-toast-notification#readme",
157
+ "funding": [
158
+ {
159
+ "type": "individual",
160
+ "url": "https://paypal.me/priyanshupatel1"
161
+ }
162
+ ]
163
+ }
package/postinstall.js CHANGED
@@ -1,27 +1,27 @@
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
- console.log(lines);
24
- }
25
- } catch (error) {
26
- process.exit(0); // Exit silently
27
- }
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
+ console.log(lines);
24
+ }
25
+ } catch (error) {
26
+ process.exit(0); // Exit silently
27
+ }