@cdwr/fly-node 0.2.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 0.2.2 (2025-10-03)
2
+
3
+ ### ⚙️ Miscellaneous Chores
4
+
5
+ - **repo:** fix vite name conflicts ([624d9eb](https://github.com/codeware-sthlm/codeware/commit/624d9eb))
6
+ - **repo:** migrate to eslint esm ([6581a92](https://github.com/codeware-sthlm/codeware/commit/6581a92))
7
+
8
+ ### 🧱 Updated Dependencies
9
+
10
+ - Updated core to 1.4.2
11
+
1
12
  ## 0.2.1 (2025-02-07)
2
13
 
3
14
  ### 🐞 Bug Fixes
package/index.cjs CHANGED
@@ -46,10 +46,11 @@ var import_tiny_invariant = __toESM(require("tiny-invariant"), 1);
46
46
  // packages/core/src/lib/utils/log-utils.ts
47
47
  var import_chalk = __toESM(require("chalk"), 1);
48
48
 
49
- // packages/core/src/lib/utils/get-package-version.ts
49
+ // packages/core/src/lib/utils/promisified-exec.ts
50
50
  var import_child_process = require("child_process");
51
51
  var import_util = require("util");
52
- var execAsync = (0, import_util.promisify)(import_child_process.execFile);
52
+ var exec = (0, import_util.promisify)(import_child_process.exec);
53
+ var execFile = (0, import_util.promisify)(import_child_process.execFile);
53
54
 
54
55
  // packages/core/src/lib/utils/kill-port.ts
55
56
  var import_kill_port = __toESM(require("kill-port"), 1);
@@ -60,16 +61,11 @@ var import_util2 = require("util");
60
61
  var import_tree_kill = __toESM(require("tree-kill"), 1);
61
62
  var killProcessTree = (0, import_util2.promisify)(import_tree_kill.default);
62
63
 
63
- // packages/core/src/lib/utils/promisified-exec.ts
64
- var import_child_process2 = require("child_process");
65
- var import_util3 = require("util");
66
- var exec = (0, import_util3.promisify)(import_child_process2.exec);
67
-
68
64
  // packages/core/src/lib/utils/promisified-spawn.ts
69
- var import_child_process3 = require("child_process");
65
+ var import_child_process2 = require("child_process");
70
66
  function spawn(command, args, options) {
71
67
  return new Promise((resolve, reject) => {
72
- const process2 = (0, import_child_process3.spawn)(command, args, {
68
+ const process2 = (0, import_child_process2.spawn)(command, args, {
73
69
  ...options,
74
70
  stdio: "pipe"
75
71
  });
package/index.js CHANGED
@@ -10,10 +10,11 @@ import invariant from "tiny-invariant";
10
10
  // packages/core/src/lib/utils/log-utils.ts
11
11
  import chalk from "chalk";
12
12
 
13
- // packages/core/src/lib/utils/get-package-version.ts
14
- import { execFile } from "child_process";
13
+ // packages/core/src/lib/utils/promisified-exec.ts
14
+ import { exec as cpExec, execFile as cpExecFile } from "child_process";
15
15
  import { promisify } from "util";
16
- var execAsync = promisify(execFile);
16
+ var exec = promisify(cpExec);
17
+ var execFile = promisify(cpExecFile);
17
18
 
18
19
  // packages/core/src/lib/utils/kill-port.ts
19
20
  import kill from "kill-port";
@@ -24,11 +25,6 @@ import { promisify as promisify2 } from "util";
24
25
  import treeKill from "tree-kill";
25
26
  var killProcessTree = promisify2(treeKill);
26
27
 
27
- // packages/core/src/lib/utils/promisified-exec.ts
28
- import { exec as cpExec } from "child_process";
29
- import { promisify as promisify3 } from "util";
30
- var exec = promisify3(cpExec);
31
-
32
28
  // packages/core/src/lib/utils/promisified-spawn.ts
33
29
  import {
34
30
  spawn as cpSpawn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdwr/fly-node",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "The flyctl node wrapper for programmatic deployments to fly.io.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,31 +13,31 @@ export declare const AppsCreateTransformedResponseSchema: z.ZodEffects<z.ZodObje
13
13
  id: z.ZodString;
14
14
  name: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
- id: string;
17
16
  name: string;
18
- }, {
19
17
  id: string;
18
+ }, {
20
19
  name: string;
20
+ id: string;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
- id: string;
24
23
  name: string;
24
+ id: string;
25
25
  organization: {
26
- id: string;
27
26
  name: string;
27
+ id: string;
28
28
  };
29
29
  }, {
30
- id: string;
31
30
  name: string;
31
+ id: string;
32
32
  organization: {
33
- id: string;
34
33
  name: string;
34
+ id: string;
35
35
  };
36
36
  }>, {
37
- id: string;
38
37
  name: string;
38
+ id: string;
39
39
  organization: {
40
- id: string;
41
40
  name: string;
41
+ id: string;
42
42
  };
43
43
  }, unknown>;
@@ -33,9 +33,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
33
33
  createdAt: string;
34
34
  }>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- id: string;
37
- status: string;
38
36
  name: string;
37
+ status: string;
38
+ id: string;
39
39
  organization: {
40
40
  name: string;
41
41
  slug: string;
@@ -47,9 +47,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
47
47
  createdAt: string;
48
48
  } | null;
49
49
  }, {
50
- id: string;
51
- status: string;
52
50
  name: string;
51
+ status: string;
52
+ id: string;
53
53
  organization: {
54
54
  name: string;
55
55
  slug: string;
@@ -61,9 +61,9 @@ export declare const AppsListTransformedResponseSchema: z.ZodArray<z.ZodEffects<
61
61
  createdAt: string;
62
62
  } | null;
63
63
  }>, {
64
- id: string;
65
- status: string;
66
64
  name: string;
65
+ status: string;
66
+ id: string;
67
67
  organization: {
68
68
  name: string;
69
69
  slug: string;
@@ -2,13 +2,13 @@ import { z } from 'zod';
2
2
  /**
3
3
  * certs list response extended with application name
4
4
  */
5
- export declare const CertsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
5
+ export declare const CertsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
6
6
  createdAt: z.ZodString;
7
7
  hostname: z.ZodString;
8
8
  clientStatus: z.ZodString;
9
- }, {
9
+ } & {
10
10
  app: z.ZodString;
11
- }>, "strip", z.ZodTypeAny, {
11
+ }, "strip", z.ZodTypeAny, {
12
12
  hostname: string;
13
13
  createdAt: string;
14
14
  clientStatus: string;
@@ -24,9 +24,9 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
24
24
  status: z.ZodString;
25
25
  version: z.ZodNumber;
26
26
  }, "strip", z.ZodTypeAny, {
27
- id: string;
28
- status: string;
29
27
  name: string;
28
+ status: string;
29
+ id: string;
30
30
  organization: {
31
31
  id: string;
32
32
  slug: string;
@@ -35,9 +35,9 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
35
35
  hostname: string;
36
36
  version: number;
37
37
  }, {
38
- id: string;
39
- status: string;
40
38
  name: string;
39
+ status: string;
40
+ id: string;
41
41
  organization: {
42
42
  id: string;
43
43
  slug: string;
@@ -46,9 +46,9 @@ export declare const PostgresListTransformedResponseSchema: z.ZodArray<z.ZodEffe
46
46
  hostname: string;
47
47
  version: number;
48
48
  }>, {
49
- id: string;
50
- status: string;
51
49
  name: string;
50
+ status: string;
51
+ id: string;
52
52
  organization: {
53
53
  id: string;
54
54
  slug: string;
@@ -2,13 +2,13 @@ import { z } from 'zod';
2
2
  /**
3
3
  * secrets list response extended with application name
4
4
  */
5
- export declare const SecretsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
5
+ export declare const SecretsListWithAppTransformedResponseSchema: z.ZodArray<z.ZodEffects<z.ZodObject<{
6
6
  name: z.ZodString;
7
7
  digest: z.ZodString;
8
8
  createdAt: z.ZodString;
9
- }, {
9
+ } & {
10
10
  app: z.ZodString;
11
- }>, "strip", z.ZodTypeAny, {
11
+ }, "strip", z.ZodTypeAny, {
12
12
  name: string;
13
13
  createdAt: string;
14
14
  app: string;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  /**
3
3
  * status response extended with domains and secrets
4
4
  */
5
- export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
5
+ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
6
6
  deployed: z.ZodBoolean;
7
7
  hostname: z.ZodString;
8
8
  id: z.ZodString;
@@ -42,20 +42,20 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
42
42
  output: z.ZodString;
43
43
  updatedAt: z.ZodString;
44
44
  }, "strip", z.ZodTypeAny, {
45
- status: string;
46
45
  name: string;
46
+ status: string;
47
47
  updatedAt: string;
48
48
  output: string;
49
49
  }, {
50
- status: string;
51
50
  name: string;
51
+ status: string;
52
52
  updatedAt: string;
53
53
  output: string;
54
54
  }>, "many">>;
55
55
  hostStatus: z.ZodString;
56
56
  }, "strip", z.ZodTypeAny, {
57
- id: string;
58
57
  name: string;
58
+ id: string;
59
59
  createdAt: string;
60
60
  state: string;
61
61
  region: string;
@@ -71,14 +71,14 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
71
71
  }[];
72
72
  hostStatus: string;
73
73
  checks?: {
74
- status: string;
75
74
  name: string;
75
+ status: string;
76
76
  updatedAt: string;
77
77
  output: string;
78
78
  }[] | undefined;
79
79
  }, {
80
- id: string;
81
80
  name: string;
81
+ id: string;
82
82
  createdAt: string;
83
83
  state: string;
84
84
  region: string;
@@ -94,8 +94,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
94
94
  }[];
95
95
  hostStatus: string;
96
96
  checks?: {
97
- status: string;
98
97
  name: string;
98
+ status: string;
99
99
  updatedAt: string;
100
100
  output: string;
101
101
  }[] | undefined;
@@ -113,7 +113,7 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
113
113
  }>;
114
114
  status: z.ZodString;
115
115
  version: z.ZodNumber;
116
- }, {
116
+ } & {
117
117
  domains: z.ZodArray<z.ZodObject<{
118
118
  hostname: z.ZodString;
119
119
  }, "strip", z.ZodTypeAny, {
@@ -128,10 +128,10 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
128
128
  }, {
129
129
  name: string;
130
130
  }>, "many">;
131
- }>, "strip", z.ZodTypeAny, {
132
- id: string;
133
- status: string;
131
+ }, "strip", z.ZodTypeAny, {
134
132
  name: string;
133
+ status: string;
134
+ id: string;
135
135
  organization: {
136
136
  id: string;
137
137
  slug: string;
@@ -140,8 +140,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
140
140
  hostname: string;
141
141
  version: number;
142
142
  machines: {
143
- id: string;
144
143
  name: string;
144
+ id: string;
145
145
  createdAt: string;
146
146
  state: string;
147
147
  region: string;
@@ -157,8 +157,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
157
157
  }[];
158
158
  hostStatus: string;
159
159
  checks?: {
160
- status: string;
161
160
  name: string;
161
+ status: string;
162
162
  updatedAt: string;
163
163
  output: string;
164
164
  }[] | undefined;
@@ -170,9 +170,9 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
170
170
  name: string;
171
171
  }[];
172
172
  }, {
173
- id: string;
174
- status: string;
175
173
  name: string;
174
+ status: string;
175
+ id: string;
176
176
  organization: {
177
177
  id: string;
178
178
  slug: string;
@@ -181,8 +181,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
181
181
  hostname: string;
182
182
  version: number;
183
183
  machines: {
184
- id: string;
185
184
  name: string;
185
+ id: string;
186
186
  createdAt: string;
187
187
  state: string;
188
188
  region: string;
@@ -198,8 +198,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
198
198
  }[];
199
199
  hostStatus: string;
200
200
  checks?: {
201
- status: string;
202
201
  name: string;
202
+ status: string;
203
203
  updatedAt: string;
204
204
  output: string;
205
205
  }[] | undefined;
@@ -211,9 +211,9 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
211
211
  name: string;
212
212
  }[];
213
213
  }>, {
214
- id: string;
215
- status: string;
216
214
  name: string;
215
+ status: string;
216
+ id: string;
217
217
  organization: {
218
218
  id: string;
219
219
  slug: string;
@@ -222,8 +222,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
222
222
  hostname: string;
223
223
  version: number;
224
224
  machines: {
225
- id: string;
226
225
  name: string;
226
+ id: string;
227
227
  createdAt: string;
228
228
  state: string;
229
229
  region: string;
@@ -239,8 +239,8 @@ export declare const StatusExtendedTransformedResponseSchema: z.ZodEffects<z.Zod
239
239
  }[];
240
240
  hostStatus: string;
241
241
  checks?: {
242
- status: string;
243
242
  name: string;
243
+ status: string;
244
244
  updatedAt: string;
245
245
  output: string;
246
246
  }[] | undefined;
@@ -46,20 +46,20 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
46
46
  output: z.ZodString;
47
47
  updatedAt: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- status: string;
50
49
  name: string;
50
+ status: string;
51
51
  updatedAt: string;
52
52
  output: string;
53
53
  }, {
54
- status: string;
55
54
  name: string;
55
+ status: string;
56
56
  updatedAt: string;
57
57
  output: string;
58
58
  }>, "many">>;
59
59
  hostStatus: z.ZodString;
60
60
  }, "strip", z.ZodTypeAny, {
61
- id: string;
62
61
  name: string;
62
+ id: string;
63
63
  createdAt: string;
64
64
  state: string;
65
65
  region: string;
@@ -75,14 +75,14 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
75
75
  }[];
76
76
  hostStatus: string;
77
77
  checks?: {
78
- status: string;
79
78
  name: string;
79
+ status: string;
80
80
  updatedAt: string;
81
81
  output: string;
82
82
  }[] | undefined;
83
83
  }, {
84
- id: string;
85
84
  name: string;
85
+ id: string;
86
86
  createdAt: string;
87
87
  state: string;
88
88
  region: string;
@@ -98,8 +98,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
98
98
  }[];
99
99
  hostStatus: string;
100
100
  checks?: {
101
- status: string;
102
101
  name: string;
102
+ status: string;
103
103
  updatedAt: string;
104
104
  output: string;
105
105
  }[] | undefined;
@@ -118,9 +118,9 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
118
118
  status: z.ZodString;
119
119
  version: z.ZodNumber;
120
120
  }, "strip", z.ZodTypeAny, {
121
- id: string;
122
- status: string;
123
121
  name: string;
122
+ status: string;
123
+ id: string;
124
124
  organization: {
125
125
  id: string;
126
126
  slug: string;
@@ -129,8 +129,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
129
129
  hostname: string;
130
130
  version: number;
131
131
  machines: {
132
- id: string;
133
132
  name: string;
133
+ id: string;
134
134
  createdAt: string;
135
135
  state: string;
136
136
  region: string;
@@ -146,16 +146,16 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
146
146
  }[];
147
147
  hostStatus: string;
148
148
  checks?: {
149
- status: string;
150
149
  name: string;
150
+ status: string;
151
151
  updatedAt: string;
152
152
  output: string;
153
153
  }[] | undefined;
154
154
  }[];
155
155
  }, {
156
- id: string;
157
- status: string;
158
156
  name: string;
157
+ status: string;
158
+ id: string;
159
159
  organization: {
160
160
  id: string;
161
161
  slug: string;
@@ -164,8 +164,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
164
164
  hostname: string;
165
165
  version: number;
166
166
  machines: {
167
- id: string;
168
167
  name: string;
168
+ id: string;
169
169
  createdAt: string;
170
170
  state: string;
171
171
  region: string;
@@ -181,8 +181,8 @@ export declare const statusFlyResponseSchema: z.ZodObject<{
181
181
  }[];
182
182
  hostStatus: string;
183
183
  checks?: {
184
- status: string;
185
184
  name: string;
185
+ status: string;
186
186
  updatedAt: string;
187
187
  output: string;
188
188
  }[] | undefined;
@@ -235,20 +235,20 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
235
235
  output: z.ZodString;
236
236
  updatedAt: z.ZodString;
237
237
  }, "strip", z.ZodTypeAny, {
238
- status: string;
239
238
  name: string;
239
+ status: string;
240
240
  updatedAt: string;
241
241
  output: string;
242
242
  }, {
243
- status: string;
244
243
  name: string;
244
+ status: string;
245
245
  updatedAt: string;
246
246
  output: string;
247
247
  }>, "many">>;
248
248
  hostStatus: z.ZodString;
249
249
  }, "strip", z.ZodTypeAny, {
250
- id: string;
251
250
  name: string;
251
+ id: string;
252
252
  createdAt: string;
253
253
  state: string;
254
254
  region: string;
@@ -264,14 +264,14 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
264
264
  }[];
265
265
  hostStatus: string;
266
266
  checks?: {
267
- status: string;
268
267
  name: string;
268
+ status: string;
269
269
  updatedAt: string;
270
270
  output: string;
271
271
  }[] | undefined;
272
272
  }, {
273
- id: string;
274
273
  name: string;
274
+ id: string;
275
275
  createdAt: string;
276
276
  state: string;
277
277
  region: string;
@@ -287,8 +287,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
287
287
  }[];
288
288
  hostStatus: string;
289
289
  checks?: {
290
- status: string;
291
290
  name: string;
291
+ status: string;
292
292
  updatedAt: string;
293
293
  output: string;
294
294
  }[] | undefined;
@@ -307,9 +307,9 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
307
307
  status: z.ZodString;
308
308
  version: z.ZodNumber;
309
309
  }, "strip", z.ZodTypeAny, {
310
- id: string;
311
- status: string;
312
310
  name: string;
311
+ status: string;
312
+ id: string;
313
313
  organization: {
314
314
  id: string;
315
315
  slug: string;
@@ -318,8 +318,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
318
318
  hostname: string;
319
319
  version: number;
320
320
  machines: {
321
- id: string;
322
321
  name: string;
322
+ id: string;
323
323
  createdAt: string;
324
324
  state: string;
325
325
  region: string;
@@ -335,16 +335,16 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
335
335
  }[];
336
336
  hostStatus: string;
337
337
  checks?: {
338
- status: string;
339
338
  name: string;
339
+ status: string;
340
340
  updatedAt: string;
341
341
  output: string;
342
342
  }[] | undefined;
343
343
  }[];
344
344
  }, {
345
- id: string;
346
- status: string;
347
345
  name: string;
346
+ status: string;
347
+ id: string;
348
348
  organization: {
349
349
  id: string;
350
350
  slug: string;
@@ -353,8 +353,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
353
353
  hostname: string;
354
354
  version: number;
355
355
  machines: {
356
- id: string;
357
356
  name: string;
357
+ id: string;
358
358
  createdAt: string;
359
359
  state: string;
360
360
  region: string;
@@ -370,16 +370,16 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
370
370
  }[];
371
371
  hostStatus: string;
372
372
  checks?: {
373
- status: string;
374
373
  name: string;
374
+ status: string;
375
375
  updatedAt: string;
376
376
  output: string;
377
377
  }[] | undefined;
378
378
  }[];
379
379
  }>, {
380
- id: string;
381
- status: string;
382
380
  name: string;
381
+ status: string;
382
+ id: string;
383
383
  organization: {
384
384
  id: string;
385
385
  slug: string;
@@ -388,8 +388,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
388
388
  hostname: string;
389
389
  version: number;
390
390
  machines: {
391
- id: string;
392
391
  name: string;
392
+ id: string;
393
393
  createdAt: string;
394
394
  state: string;
395
395
  region: string;
@@ -405,8 +405,8 @@ export declare const StatusTransformedResponseSchema: z.ZodEffects<z.ZodObject<{
405
405
  }[];
406
406
  hostStatus: string;
407
407
  checks?: {
408
- status: string;
409
408
  name: string;
409
+ status: string;
410
410
  updatedAt: string;
411
411
  output: string;
412
412
  }[] | undefined;