@pokit/tabs-ink 0.0.21 → 0.0.22
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/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +4 -0
- package/package.json +5 -5
- package/src/adapter.tsx +4 -0
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAwB,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/E;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAwB,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/E;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,CAiH/C;AAMD,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,QAAQ,EACb,OAAO,GAAE,mBAAwB,GAChC;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA6EzB"}
|
package/dist/adapter.js
CHANGED
|
@@ -49,6 +49,7 @@ export function createTabsAdapter() {
|
|
|
49
49
|
return;
|
|
50
50
|
resolved = true;
|
|
51
51
|
// Remove signal handlers
|
|
52
|
+
process.removeListener('SIGINT', handleSignal);
|
|
52
53
|
process.removeListener('SIGTERM', handleSignal);
|
|
53
54
|
process.removeListener('SIGQUIT', handleSignal);
|
|
54
55
|
process.removeListener('uncaughtException', handleUncaughtException);
|
|
@@ -75,6 +76,7 @@ export function createTabsAdapter() {
|
|
|
75
76
|
process.exit(1);
|
|
76
77
|
};
|
|
77
78
|
// Register signal handlers
|
|
79
|
+
process.on('SIGINT', handleSignal);
|
|
78
80
|
process.on('SIGTERM', handleSignal);
|
|
79
81
|
process.on('SIGQUIT', handleSignal);
|
|
80
82
|
process.on('uncaughtException', handleUncaughtException);
|
|
@@ -123,6 +125,7 @@ export function createEventAdapter(bus, options = {}) {
|
|
|
123
125
|
return;
|
|
124
126
|
isCleanedUp = true;
|
|
125
127
|
// Remove signal handlers
|
|
128
|
+
process.removeListener('SIGINT', handleSignal);
|
|
126
129
|
process.removeListener('SIGTERM', handleSignal);
|
|
127
130
|
process.removeListener('SIGQUIT', handleSignal);
|
|
128
131
|
process.removeListener('uncaughtException', handleUncaughtException);
|
|
@@ -148,6 +151,7 @@ export function createEventAdapter(bus, options = {}) {
|
|
|
148
151
|
process.exit(1);
|
|
149
152
|
};
|
|
150
153
|
// Register signal handlers
|
|
154
|
+
process.on('SIGINT', handleSignal);
|
|
151
155
|
process.on('SIGTERM', handleSignal);
|
|
152
156
|
process.on('SIGQUIT', handleSignal);
|
|
153
157
|
process.on('uncaughtException', handleUncaughtException);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pokit/tabs-ink",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Ink-based tab renderer for pok CLI applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/bun": "latest",
|
|
53
53
|
"@types/react": "^19.2.0",
|
|
54
|
-
"@pokit/core": "0.0.
|
|
55
|
-
"@pokit/tabs-core": "0.0.
|
|
54
|
+
"@pokit/core": "0.0.22",
|
|
55
|
+
"@pokit/tabs-core": "0.0.22"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@pokit/core": "0.0.
|
|
59
|
-
"@pokit/tabs-core": "0.0.
|
|
58
|
+
"@pokit/core": "0.0.22",
|
|
59
|
+
"@pokit/tabs-core": "0.0.22"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"bun": ">=1.0.0"
|
package/src/adapter.tsx
CHANGED
|
@@ -57,6 +57,7 @@ export function createTabsAdapter(): TabsAdapter {
|
|
|
57
57
|
resolved = true;
|
|
58
58
|
|
|
59
59
|
// Remove signal handlers
|
|
60
|
+
process.removeListener('SIGINT', handleSignal);
|
|
60
61
|
process.removeListener('SIGTERM', handleSignal);
|
|
61
62
|
process.removeListener('SIGQUIT', handleSignal);
|
|
62
63
|
process.removeListener('uncaughtException', handleUncaughtException);
|
|
@@ -87,6 +88,7 @@ export function createTabsAdapter(): TabsAdapter {
|
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
// Register signal handlers
|
|
91
|
+
process.on('SIGINT', handleSignal);
|
|
90
92
|
process.on('SIGTERM', handleSignal);
|
|
91
93
|
process.on('SIGQUIT', handleSignal);
|
|
92
94
|
process.on('uncaughtException', handleUncaughtException);
|
|
@@ -164,6 +166,7 @@ export function createEventAdapter(
|
|
|
164
166
|
isCleanedUp = true;
|
|
165
167
|
|
|
166
168
|
// Remove signal handlers
|
|
169
|
+
process.removeListener('SIGINT', handleSignal);
|
|
167
170
|
process.removeListener('SIGTERM', handleSignal);
|
|
168
171
|
process.removeListener('SIGQUIT', handleSignal);
|
|
169
172
|
process.removeListener('uncaughtException', handleUncaughtException);
|
|
@@ -193,6 +196,7 @@ export function createEventAdapter(
|
|
|
193
196
|
};
|
|
194
197
|
|
|
195
198
|
// Register signal handlers
|
|
199
|
+
process.on('SIGINT', handleSignal);
|
|
196
200
|
process.on('SIGTERM', handleSignal);
|
|
197
201
|
process.on('SIGQUIT', handleSignal);
|
|
198
202
|
process.on('uncaughtException', handleUncaughtException);
|