customizable-toast-notification 3.12.2 β 3.12.4
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/CHANGELOG.md +15 -0
- package/README.md +33 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +80 -33
- package/dist/index.esm.mjs +3 -3
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +3 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -8
- package/postinstall.js +0 -31
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "customizable-toast-notification",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.4",
|
|
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",
|
|
@@ -30,10 +31,7 @@
|
|
|
30
31
|
"edge >= 79",
|
|
31
32
|
"node >= 14"
|
|
32
33
|
],
|
|
33
|
-
"sideEffects":
|
|
34
|
-
false,
|
|
35
|
-
"*.css"
|
|
36
|
-
],
|
|
34
|
+
"sideEffects": false,
|
|
37
35
|
"scripts": {
|
|
38
36
|
"dist:clean": "rm -rf dist",
|
|
39
37
|
"build:js": "rollup -c",
|
|
@@ -41,9 +39,9 @@
|
|
|
41
39
|
"build:types:bundle": "rollup -c rollup.dts.config.mjs",
|
|
42
40
|
"build:types": "npm run build:types:emit && npm run build:types:bundle",
|
|
43
41
|
"zone-build": "npm run dist:clean && npm run build:js && npm run build:types && du -h dist/*",
|
|
44
|
-
"postinstall": "node postinstall.js",
|
|
45
42
|
"build": "rollup -c",
|
|
46
|
-
"test:builds": "node scripts/test-build.
|
|
43
|
+
"test:builds": "node scripts/test-build.cjs",
|
|
44
|
+
"test": "npm run ci:test",
|
|
47
45
|
"ci:test": "node tests/logic/logic-verification.test.mjs",
|
|
48
46
|
"lint": "eslint src",
|
|
49
47
|
"test:e2e": "playwright test",
|
|
@@ -107,7 +105,6 @@
|
|
|
107
105
|
},
|
|
108
106
|
"license": "Apache-2.0",
|
|
109
107
|
"files": [
|
|
110
|
-
"postinstall.js",
|
|
111
108
|
"dist/index.esm.mjs",
|
|
112
109
|
"dist/index.esm.mjs.map",
|
|
113
110
|
"dist/index.umd.js",
|
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
|
-
}
|