@turbodocx/html-to-docx 1.15.0 → 1.15.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@turbodocx/html-to-docx",
3
- "version": "1.15.0",
3
+ "version": "1.15.2",
4
4
  "description": "HTML to DOCX converter",
5
5
  "keywords": [
6
6
  "html-to-docx",
@@ -47,6 +47,7 @@
47
47
  "types": "index.d.ts",
48
48
  "files": [
49
49
  "dist",
50
+ "scripts",
50
51
  "index.d.ts",
51
52
  "README.md",
52
53
  "LICENSE"
@@ -66,6 +67,7 @@
66
67
  "build:dev": "NODE_ENV=development rollup -c",
67
68
  "build:prod": "NODE_ENV=production rollup -c",
68
69
  "prepare": "husky install",
70
+ "postinstall": "node scripts/postinstall.js",
69
71
  "test:ts-example": "npm run build && cross-env TS_NODE_PROJECT=example/typescript/tsconfig.json ts-node -r tsconfig-paths/register example/typescript/typescript-example.ts"
70
72
  },
71
73
  "repository": {
@@ -96,8 +98,9 @@
96
98
  "juralio-james",
97
99
  "robinminso",
98
100
  "shareefalis",
99
- "adymo",
100
- "Srajan-Sanjay-Saxena"
101
+ "adymo",
102
+ "Srajan-Sanjay-Saxena",
103
+ "jcasner"
101
104
  ],
102
105
  "license": "MIT",
103
106
  "bugs": {
@@ -105,7 +108,7 @@
105
108
  },
106
109
  "homepage": "https://github.com/TurboDocx/html-to-docx#readme",
107
110
  "devDependencies": {
108
- "@commitlint/cli": "^13.1.0",
111
+ "@commitlint/cli": "^19.8.1",
109
112
  "@commitlint/config-conventional": "^13.1.0",
110
113
  "@rollup/plugin-commonjs": "^28.0.3",
111
114
  "@rollup/plugin-json": "^4.1.0",
@@ -142,6 +145,14 @@
142
145
  "virtual-dom": "^2.1.1",
143
146
  "xmlbuilder2": "2.1.2"
144
147
  },
148
+ "overrides": {
149
+ "bl": "^1.2.3",
150
+ "semver": "^5.7.2"
151
+ },
152
+ "resolutions": {
153
+ "bl": "^1.2.3",
154
+ "semver": "^5.7.2"
155
+ },
145
156
  "lint-staged": {
146
157
  "src/**/*.js": [
147
158
  "prettier --write",
@@ -0,0 +1,142 @@
1
+ [
2
+ {
3
+ "emoji": "🚀",
4
+ "text": "Thanks for installing @turbodocx/html-to-docx! Need full document & slide automation (with AI + eSignature)? → turbodocx.com"
5
+ },
6
+ {
7
+ "emoji": "📦",
8
+ "text": "Installed @turbodocx/html-to-docx. Pro tip: Our SaaS can handle entire templates, slides, and e-signatures in seconds → turbodocx.com"
9
+ },
10
+ {
11
+ "emoji": "❤️",
12
+ "text": "@turbodocx/html-to-docx is open source and free. Support us or try the full platform at turbodocx.com"
13
+ },
14
+ {
15
+ "emoji": "🔧",
16
+ "text": "You're using the open-source engine. See how TurboDocx automates proposals, SOWs, and slides → turbodocx.com"
17
+ },
18
+ {
19
+ "emoji": "🎯",
20
+ "text": "Building docs at scale? TurboDocx handles 1000s of documents with AI assistance → turbodocx.com"
21
+ },
22
+ {
23
+ "emoji": "⚡",
24
+ "text": "Processing one doc at a time? TurboDocx batch-processes hundreds in minutes → turbodocx.com"
25
+ },
26
+ {
27
+ "emoji": "🔐",
28
+ "text": "Need digital signatures? TurboDocx includes built-in e-signature workflows → turbodocx.com"
29
+ },
30
+ {
31
+ "emoji": "📊",
32
+ "text": "Working with templates? TurboDocx has 100+ pre-built business templates → turbodocx.com"
33
+ },
34
+ {
35
+ "emoji": "🔗",
36
+ "text": "Need CRM integration? TurboDocx connects to Salesforce, HubSpot, and more → turbodocx.com"
37
+ },
38
+ {
39
+ "emoji": "🎨",
40
+ "text": "Want better formatting? TurboDocx offers advanced styling and branding options → turbodocx.com"
41
+ },
42
+ {
43
+ "emoji": "💬",
44
+ "text": "Join our Discord community! Get support, share templates, and connect with other developers → discord.gg/T7tnmwggAF"
45
+ },
46
+ {
47
+ "emoji": "🧑‍💻",
48
+ "text": "Developer? TurboDocx has REST APIs, webhooks, and SDKs for seamless integration → turbodocx.com/developers"
49
+ },
50
+ {
51
+ "emoji": "📝",
52
+ "text": "Building contracts or agreements? TurboDocx + eSignatures = instant legal workflows → turbodocx.com"
53
+ },
54
+ {
55
+ "emoji": "🤝",
56
+ "text": "Need client-facing docs with eSign? TurboDocx automates proposals to signature in minutes → turbodocx.com"
57
+ },
58
+ {
59
+ "emoji": "🛠️",
60
+ "text": "Like this tool? Star us on GitHub and check out the full TurboDocx platform → turbodocx.com"
61
+ },
62
+ {
63
+ "emoji": "📋",
64
+ "text": "Generating reports or invoices? TurboDocx handles complex document workflows end-to-end → turbodocx.com"
65
+ },
66
+ {
67
+ "emoji": "🔄",
68
+ "text": "Tired of manual document processes? TurboDocx automates everything from generation to signature → turbodocx.com"
69
+ },
70
+ {
71
+ "emoji": "🎓",
72
+ "text": "Learning document automation? Check our tutorials and examples → docs.turbodocx.com"
73
+ },
74
+ {
75
+ "emoji": "💼",
76
+ "text": "Enterprise needs? TurboDocx scales with SSO, compliance, and white-label options → turbodocx.com/enterprise"
77
+ },
78
+ {
79
+ "emoji": "🔔",
80
+ "text": "Want updates on new features? Follow @TurboDocx and join our newsletter → turbodocx.com"
81
+ },
82
+ {
83
+ "emoji": "🏗️",
84
+ "text": "Building document workflows? TurboDocx handles forms, contracts, presentations, and more → turbodocx.com"
85
+ },
86
+ {
87
+ "emoji": "📈",
88
+ "text": "Scale your document operations: TurboDocx processes 10M+ docs monthly for businesses → turbodocx.com"
89
+ },
90
+ {
91
+ "emoji": "⏰",
92
+ "text": "Stop spending hours on documents. TurboDocx reduces doc creation time by at least 50% → turbodocx.com"
93
+ },
94
+ {
95
+ "emoji": "🎉",
96
+ "text": "Ready to level up? Try the full TurboDocx platform and see what you've been missing → turbodocx.com"
97
+ },
98
+ {
99
+ "emoji": "🔍",
100
+ "text": "Want to see TurboDocx in action? Check out our demos and case studies → turbodocx.com"
101
+ },
102
+ {
103
+ "emoji": "🤗",
104
+ "text": "Join our growing community of developers! Share templates, get help, and showcase your projects → discord.gg/T7tnmwggAF"
105
+ },
106
+ {
107
+ "emoji": "🌟",
108
+ "text": "Love open source? Star our GitHub repo and contribute to the html-to-docx project → github.com/TurboDocx/html-to-docx"
109
+ },
110
+ {
111
+ "emoji": "👥",
112
+ "text": "Connect with other document automation enthusiasts in our Discord community → discord.gg/T7tnmwggAF"
113
+ },
114
+ {
115
+ "emoji": "🎪",
116
+ "text": "Show off your document automations! Share your creations with the TurboDocx community → discord.gg/T7tnmwggAF"
117
+ },
118
+ {
119
+ "emoji": "🤲",
120
+ "text": "Need help with html-to-docx? Our community is here to support you → discord.gg/T7tnmwggAF"
121
+ },
122
+ {
123
+ "emoji": "📢",
124
+ "text": "Have feature requests or ideas? Join our Discord and let us know what you need → discord.gg/T7tnmwggAF"
125
+ },
126
+ {
127
+ "emoji": "🧩",
128
+ "text": "Building something cool with documents? Share it with our community → discord.gg/T7tnmwggAF"
129
+ },
130
+ {
131
+ "emoji": "🎭",
132
+ "text": "From indie devs to enterprise teams - our Discord welcomes all document automation creators → discord.gg/T7tnmwggAF"
133
+ },
134
+ {
135
+ "emoji": "🔗",
136
+ "text": "Connect, collaborate, create: Join the many developers in our Discord community → discord.gg/T7tnmwggAF"
137
+ },
138
+ {
139
+ "emoji": "💡",
140
+ "text": "Got questions about document automation? Our friendly community has answers → discord.gg/T7tnmwggAF"
141
+ }
142
+ ]
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ function shouldSkipMessage() {
7
+ // Skip if explicitly disabled
8
+ if (process.env.SKIP_POSTINSTALL) {
9
+ return true;
10
+ }
11
+
12
+ // Skip if npm_config_ignore_scripts is set
13
+ if (process.env.npm_config_ignore_scripts) {
14
+ return true;
15
+ }
16
+
17
+ return false;
18
+ }
19
+
20
+ function getRandomMessage() {
21
+ try {
22
+ const messagesPath = path.join(__dirname, 'messages.json');
23
+ const messages = JSON.parse(fs.readFileSync(messagesPath, 'utf8'));
24
+
25
+ // Use deterministic randomization based on current date
26
+ // This ensures the same message per day but rotates daily
27
+ const today = new Date().toDateString();
28
+ const hash = today.split('').reduce((a, b) => {
29
+ a = ((a << 5) - a) + b.charCodeAt(0);
30
+ return a & a;
31
+ }, 0);
32
+
33
+ const index = Math.abs(hash) % messages.length;
34
+ return messages[index];
35
+ } catch (error) {
36
+ // Fallback message if file reading fails
37
+ return {
38
+ emoji: "🚀",
39
+ text: "Thanks for installing @turbodocx/html-to-docx! Check out our full platform at turbodocx.com"
40
+ };
41
+ }
42
+ }
43
+
44
+ function main() {
45
+ try {
46
+ if (shouldSkipMessage()) {
47
+ return;
48
+ }
49
+
50
+ const message = getRandomMessage();
51
+ console.log(`\n${message.emoji} ${message.text}\n`);
52
+ } catch (error) {
53
+ // Fail silently to avoid disrupting installation
54
+ }
55
+ }
56
+
57
+ main();