@heroku-cli/plugin-data 2.0.0 → 3.0.1-beta.0

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.
Files changed (59) hide show
  1. package/README.md +76 -31
  2. package/dist/commands/data/connectors/create.d.ts +15 -0
  3. package/{lib → dist}/commands/data/connectors/create.js +23 -25
  4. package/dist/commands/data/connectors/destroy.d.ts +12 -0
  5. package/dist/commands/data/connectors/destroy.js +39 -0
  6. package/dist/commands/data/connectors/index.d.ts +14 -0
  7. package/{lib → dist}/commands/data/connectors/index.js +23 -24
  8. package/dist/commands/data/connectors/info.d.ts +12 -0
  9. package/{lib → dist}/commands/data/connectors/info.js +22 -23
  10. package/{lib → dist}/commands/data/connectors/pause.d.ts +2 -2
  11. package/dist/commands/data/connectors/pause.js +27 -0
  12. package/{lib → dist}/commands/data/connectors/resume.d.ts +2 -2
  13. package/dist/commands/data/connectors/resume.js +27 -0
  14. package/dist/commands/data/connectors/update.d.ts +17 -0
  15. package/{lib → dist}/commands/data/connectors/update.js +19 -21
  16. package/{lib → dist}/commands/data/connectors/wait.d.ts +2 -2
  17. package/{lib → dist}/commands/data/connectors/wait.js +11 -10
  18. package/dist/commands/data/enhanced-certificates/disable.d.ts +11 -0
  19. package/dist/commands/data/enhanced-certificates/disable.js +31 -0
  20. package/dist/commands/data/enhanced-certificates/enable.d.ts +12 -0
  21. package/dist/commands/data/enhanced-certificates/enable.js +34 -0
  22. package/dist/commands/data/enhanced-certificates/status.d.ts +12 -0
  23. package/dist/commands/data/enhanced-certificates/status.js +30 -0
  24. package/dist/commands/data/labs/disable.d.ts +13 -0
  25. package/dist/commands/data/labs/disable.js +44 -0
  26. package/dist/commands/data/labs/enable.d.ts +13 -0
  27. package/dist/commands/data/labs/enable.js +44 -0
  28. package/{lib → dist}/commands/data/labs/list.d.ts +3 -3
  29. package/{lib → dist}/commands/data/labs/list.js +18 -19
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.js +1 -0
  32. package/dist/lib/base.js +25 -0
  33. package/oclif.manifest.json +149 -48
  34. package/package.json +33 -30
  35. package/lib/commands/data/connectors/create.d.ts +0 -15
  36. package/lib/commands/data/connectors/destroy.d.ts +0 -12
  37. package/lib/commands/data/connectors/destroy.js +0 -41
  38. package/lib/commands/data/connectors/index.d.ts +0 -14
  39. package/lib/commands/data/connectors/info.d.ts +0 -12
  40. package/lib/commands/data/connectors/pause.js +0 -28
  41. package/lib/commands/data/connectors/resume.js +0 -28
  42. package/lib/commands/data/connectors/update.d.ts +0 -17
  43. package/lib/commands/data/enhanced-certificates/disable.d.ts +0 -11
  44. package/lib/commands/data/enhanced-certificates/disable.js +0 -31
  45. package/lib/commands/data/enhanced-certificates/enable.d.ts +0 -12
  46. package/lib/commands/data/enhanced-certificates/enable.js +0 -34
  47. package/lib/commands/data/enhanced-certificates/status.d.ts +0 -12
  48. package/lib/commands/data/enhanced-certificates/status.js +0 -31
  49. package/lib/commands/data/labs/disable.d.ts +0 -13
  50. package/lib/commands/data/labs/disable.js +0 -44
  51. package/lib/commands/data/labs/enable.d.ts +0 -13
  52. package/lib/commands/data/labs/enable.js +0 -44
  53. package/lib/fetcher.d.ts +0 -3
  54. package/lib/fetcher.js +0 -16
  55. package/lib/index.d.ts +0 -2
  56. package/lib/index.js +0 -3
  57. package/lib/lib/base.js +0 -28
  58. package/lib/tsconfig.tsbuildinfo +0 -1
  59. /package/{lib → dist}/lib/base.d.ts +0 -0
@@ -1,49 +1,48 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const color_1 = require("@heroku-cli/color");
4
- const command_1 = require("@heroku-cli/command");
5
- const core_1 = require("@oclif/core");
6
- const fetcher_1 = require("../../../fetcher");
7
- const base_1 = require("../../../lib/base");
8
- class LabsList extends base_1.default {
1
+ import { flags } from '@heroku-cli/command';
2
+ import * as color from '@heroku/heroku-cli-util/color';
3
+ import { styledHeader } from '@heroku/heroku-cli-util/hux';
4
+ import { AddonResolver } from '@heroku/heroku-cli-util/utils/addons';
5
+ import { Args } from '@oclif/core';
6
+ import { ux } from '@oclif/core/ux';
7
+ import BaseCommand from '../../../lib/base.js';
8
+ export default class LabsList extends BaseCommand {
9
9
  static args = {
10
- addon: core_1.Args.string({ description: 'name of the addon', required: true }),
10
+ addon: Args.string({ description: 'name of the addon', required: true }),
11
11
  };
12
12
  static description = 'List available experimental features on an addon and their statuses';
13
13
  static examples = [
14
14
  '$ heroku data:labs:list happy-postgres-1234',
15
15
  ];
16
16
  static flags = {
17
- app: command_1.flags.app(),
17
+ app: flags.app(),
18
18
  };
19
19
  printFeatures(features, addonName) {
20
20
  features.sort((a, b) => a.name < b.name ? -1 : 1);
21
21
  const longest = Math.max.apply(null, features.map(f => f.name.length));
22
- core_1.ux.styledHeader(`Experimental Features Available for ${color_1.default.cyan(addonName)}:`);
22
+ styledHeader(`Experimental Features Available for ${color.addon(addonName)}:`);
23
23
  for (const f of features) {
24
24
  const pref = f.status.enabled ? '[+]' : (f.status.message ? '[-]' : '[ ]');
25
25
  let line = `${pref} ${f.name.padEnd(longest)}`;
26
26
  if (f.status.enabled)
27
- line = color_1.default.green(line);
27
+ line = color.green(line);
28
28
  if (f.status.message)
29
- line = color_1.default.yellow(line);
29
+ line = color.yellow(line);
30
30
  let statusMessage = f.status.message ? `(STATUS: ${f.status.message})` : '';
31
- statusMessage = color_1.default.yellow(statusMessage);
31
+ statusMessage = color.yellow(statusMessage);
32
32
  line = `${line} ${statusMessage} ${f.description}`;
33
- core_1.ux.log(line);
33
+ ux.stdout(line);
34
34
  }
35
35
  }
36
36
  async run() {
37
37
  const { args, flags } = await this.parse(LabsList);
38
- const addon = await (0, fetcher_1.fetchAddon)(this.heroku, args.addon, flags.app);
38
+ const addonResolver = new AddonResolver(this.heroku);
39
+ const addon = await addonResolver.resolve(args.addon, flags.app);
39
40
  try {
40
41
  const { body: res } = await this.shogun.get(`/client/v11/labs/${addon.id}/list`, this.shogun.defaults);
41
42
  this.printFeatures(res.message, addon.name);
42
43
  }
43
44
  catch (error) {
44
- core_1.ux.error(error);
45
+ ux.error(error);
45
46
  }
46
- core_1.ux.action.stop();
47
47
  }
48
48
  }
49
- exports.default = LabsList;
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
@@ -0,0 +1,25 @@
1
+ import { APIClient, Command } from '@heroku-cli/command';
2
+ import * as color from '@heroku/heroku-cli-util/color';
3
+ import { prompt } from '@heroku/heroku-cli-util/hux';
4
+ import { ux } from '@oclif/core/ux';
5
+ export default class Base extends Command {
6
+ shogun;
7
+ constructor(argv, config) {
8
+ super(argv, config);
9
+ const client = new APIClient(this.config, {});
10
+ client.defaults.host = process.env.HEROKU_DATA_HOST || 'api.data.heroku.com';
11
+ client.defaults.headers = {
12
+ ...this.heroku.defaults.headers,
13
+ authorization: `Basic ${Buffer.from(':' + this.heroku.auth).toString('base64')}`,
14
+ };
15
+ this.shogun = client;
16
+ }
17
+ }
18
+ export async function confirmConnector(connector, confirm) {
19
+ if (!confirm) {
20
+ confirm = await prompt(`To proceed, type ${color.red(connector)} or re-run this command with ${color.command(`--confirm ${connector}`)}`);
21
+ }
22
+ if (confirm !== connector) {
23
+ ux.error(`Confirmation ${color.red(confirm)} did not match ${color.red(connector)}. Aborted.`);
24
+ }
25
+ }
@@ -9,11 +9,18 @@
9
9
  "$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.users --exclude-column public.users.password"
10
10
  ],
11
11
  "flags": {
12
+ "prompt": {
13
+ "description": "interactively prompt for command arguments and flags",
14
+ "helpGroup": "GLOBAL",
15
+ "name": "prompt",
16
+ "allowNo": false,
17
+ "type": "boolean"
18
+ },
12
19
  "app": {
13
20
  "char": "a",
14
21
  "description": "app to run command against",
15
22
  "name": "app",
16
- "hasDynamicHelp": false,
23
+ "hasDynamicHelp": true,
17
24
  "multiple": false,
18
25
  "type": "option"
19
26
  },
@@ -67,16 +74,16 @@
67
74
  "type": "option"
68
75
  }
69
76
  },
70
- "hasDynamicHelp": false,
77
+ "hasDynamicHelp": true,
71
78
  "hiddenAliases": [],
72
79
  "id": "data:connectors:create",
73
80
  "pluginAlias": "@heroku-cli/plugin-data",
74
81
  "pluginName": "@heroku-cli/plugin-data",
75
82
  "pluginType": "core",
76
83
  "strict": true,
77
- "isESM": false,
84
+ "isESM": true,
78
85
  "relativePath": [
79
- "lib",
86
+ "dist",
80
87
  "commands",
81
88
  "data",
82
89
  "connectors",
@@ -98,6 +105,13 @@
98
105
  "$ heroku data:connectors:destroy gentle-connector-1234 --confirm gentle-connector-1234"
99
106
  ],
100
107
  "flags": {
108
+ "prompt": {
109
+ "description": "interactively prompt for command arguments and flags",
110
+ "helpGroup": "GLOBAL",
111
+ "name": "prompt",
112
+ "allowNo": false,
113
+ "type": "boolean"
114
+ },
101
115
  "confirm": {
102
116
  "description": "confirms destroying the connector if passed in",
103
117
  "name": "confirm",
@@ -114,9 +128,9 @@
114
128
  "pluginName": "@heroku-cli/plugin-data",
115
129
  "pluginType": "core",
116
130
  "strict": true,
117
- "isESM": false,
131
+ "isESM": true,
118
132
  "relativePath": [
119
- "lib",
133
+ "dist",
120
134
  "commands",
121
135
  "data",
122
136
  "connectors",
@@ -135,6 +149,13 @@
135
149
  "heroku data:connectors --addon=your-postgres-addon --table"
136
150
  ],
137
151
  "flags": {
152
+ "prompt": {
153
+ "description": "interactively prompt for command arguments and flags",
154
+ "helpGroup": "GLOBAL",
155
+ "name": "prompt",
156
+ "allowNo": false,
157
+ "type": "boolean"
158
+ },
138
159
  "addon": {
139
160
  "description": "The ID or name for the addon your connector is attached to",
140
161
  "name": "addon",
@@ -146,7 +167,7 @@
146
167
  "char": "a",
147
168
  "description": "app to run command against",
148
169
  "name": "app",
149
- "hasDynamicHelp": false,
170
+ "hasDynamicHelp": true,
150
171
  "multiple": false,
151
172
  "type": "option"
152
173
  },
@@ -177,16 +198,16 @@
177
198
  "type": "boolean"
178
199
  }
179
200
  },
180
- "hasDynamicHelp": false,
201
+ "hasDynamicHelp": true,
181
202
  "hiddenAliases": [],
182
203
  "id": "data:connectors",
183
204
  "pluginAlias": "@heroku-cli/plugin-data",
184
205
  "pluginName": "@heroku-cli/plugin-data",
185
206
  "pluginType": "core",
186
207
  "strict": true,
187
- "isESM": false,
208
+ "isESM": true,
188
209
  "relativePath": [
189
- "lib",
210
+ "dist",
190
211
  "commands",
191
212
  "data",
192
213
  "connectors",
@@ -208,6 +229,13 @@
208
229
  "$ heroku data:connectors:info gentle-connector-1234 --json"
209
230
  ],
210
231
  "flags": {
232
+ "prompt": {
233
+ "description": "interactively prompt for command arguments and flags",
234
+ "helpGroup": "GLOBAL",
235
+ "name": "prompt",
236
+ "allowNo": false,
237
+ "type": "boolean"
238
+ },
211
239
  "json": {
212
240
  "description": "Return the results as JSON",
213
241
  "name": "json",
@@ -222,9 +250,9 @@
222
250
  "pluginName": "@heroku-cli/plugin-data",
223
251
  "pluginType": "core",
224
252
  "strict": true,
225
- "isESM": false,
253
+ "isESM": true,
226
254
  "relativePath": [
227
- "lib",
255
+ "dist",
228
256
  "commands",
229
257
  "data",
230
258
  "connectors",
@@ -244,7 +272,15 @@
244
272
  "examples": [
245
273
  "$ heroku data:connectors:pause gentle-connector-1234"
246
274
  ],
247
- "flags": {},
275
+ "flags": {
276
+ "prompt": {
277
+ "description": "interactively prompt for command arguments and flags",
278
+ "helpGroup": "GLOBAL",
279
+ "name": "prompt",
280
+ "allowNo": false,
281
+ "type": "boolean"
282
+ }
283
+ },
248
284
  "hasDynamicHelp": false,
249
285
  "hiddenAliases": [],
250
286
  "id": "data:connectors:pause",
@@ -252,9 +288,9 @@
252
288
  "pluginName": "@heroku-cli/plugin-data",
253
289
  "pluginType": "core",
254
290
  "strict": true,
255
- "isESM": false,
291
+ "isESM": true,
256
292
  "relativePath": [
257
- "lib",
293
+ "dist",
258
294
  "commands",
259
295
  "data",
260
296
  "connectors",
@@ -274,7 +310,15 @@
274
310
  "examples": [
275
311
  "$ heroku data:connectors:resume gentle-connector-1234"
276
312
  ],
277
- "flags": {},
313
+ "flags": {
314
+ "prompt": {
315
+ "description": "interactively prompt for command arguments and flags",
316
+ "helpGroup": "GLOBAL",
317
+ "name": "prompt",
318
+ "allowNo": false,
319
+ "type": "boolean"
320
+ }
321
+ },
278
322
  "hasDynamicHelp": false,
279
323
  "hiddenAliases": [],
280
324
  "id": "data:connectors:resume",
@@ -282,9 +326,9 @@
282
326
  "pluginName": "@heroku-cli/plugin-data",
283
327
  "pluginType": "core",
284
328
  "strict": true,
285
- "isESM": false,
329
+ "isESM": true,
286
330
  "relativePath": [
287
- "lib",
331
+ "dist",
288
332
  "commands",
289
333
  "data",
290
334
  "connectors",
@@ -305,6 +349,13 @@
305
349
  "$ heroku data:connectors:update gentle-connector-1234 --setting key=value --setting otherKey=otherValue --add-table public.posts --add-table public.people --remove-table public.messages --exclude-column public.posts.key --remove-excluded-column public.parcels.key"
306
350
  ],
307
351
  "flags": {
352
+ "prompt": {
353
+ "description": "interactively prompt for command arguments and flags",
354
+ "helpGroup": "GLOBAL",
355
+ "name": "prompt",
356
+ "allowNo": false,
357
+ "type": "boolean"
358
+ },
308
359
  "setting": {
309
360
  "name": "setting",
310
361
  "required": false,
@@ -352,9 +403,9 @@
352
403
  "pluginName": "@heroku-cli/plugin-data",
353
404
  "pluginType": "core",
354
405
  "strict": true,
355
- "isESM": false,
406
+ "isESM": true,
356
407
  "relativePath": [
357
- "lib",
408
+ "dist",
358
409
  "commands",
359
410
  "data",
360
411
  "connectors",
@@ -374,7 +425,15 @@
374
425
  "examples": [
375
426
  "$ heroku data:connectors:wait gentle-connector-1234"
376
427
  ],
377
- "flags": {},
428
+ "flags": {
429
+ "prompt": {
430
+ "description": "interactively prompt for command arguments and flags",
431
+ "helpGroup": "GLOBAL",
432
+ "name": "prompt",
433
+ "allowNo": false,
434
+ "type": "boolean"
435
+ }
436
+ },
378
437
  "hasDynamicHelp": false,
379
438
  "hiddenAliases": [],
380
439
  "id": "data:connectors:wait",
@@ -382,9 +441,9 @@
382
441
  "pluginName": "@heroku-cli/plugin-data",
383
442
  "pluginType": "core",
384
443
  "strict": true,
385
- "isESM": false,
444
+ "isESM": true,
386
445
  "relativePath": [
387
- "lib",
446
+ "dist",
388
447
  "commands",
389
448
  "data",
390
449
  "connectors",
@@ -405,6 +464,13 @@
405
464
  "$ heroku data:labs:disable wal-compression --addon=happy-postgres-1234 -a example-app"
406
465
  ],
407
466
  "flags": {
467
+ "prompt": {
468
+ "description": "interactively prompt for command arguments and flags",
469
+ "helpGroup": "GLOBAL",
470
+ "name": "prompt",
471
+ "allowNo": false,
472
+ "type": "boolean"
473
+ },
408
474
  "addon": {
409
475
  "description": "The addon you want to disable features on",
410
476
  "name": "addon",
@@ -417,21 +483,21 @@
417
483
  "char": "a",
418
484
  "description": "app to run command against",
419
485
  "name": "app",
420
- "hasDynamicHelp": false,
486
+ "hasDynamicHelp": true,
421
487
  "multiple": false,
422
488
  "type": "option"
423
489
  }
424
490
  },
425
- "hasDynamicHelp": false,
491
+ "hasDynamicHelp": true,
426
492
  "hiddenAliases": [],
427
493
  "id": "data:labs:disable",
428
494
  "pluginAlias": "@heroku-cli/plugin-data",
429
495
  "pluginName": "@heroku-cli/plugin-data",
430
496
  "pluginType": "core",
431
497
  "strict": true,
432
- "isESM": false,
498
+ "isESM": true,
433
499
  "relativePath": [
434
- "lib",
500
+ "dist",
435
501
  "commands",
436
502
  "data",
437
503
  "labs",
@@ -452,6 +518,13 @@
452
518
  "$ heroku data:labs:enable wal-compression --addon=happy-postgres-1234 -a example-app"
453
519
  ],
454
520
  "flags": {
521
+ "prompt": {
522
+ "description": "interactively prompt for command arguments and flags",
523
+ "helpGroup": "GLOBAL",
524
+ "name": "prompt",
525
+ "allowNo": false,
526
+ "type": "boolean"
527
+ },
455
528
  "addon": {
456
529
  "description": "The addon you want to enable features on",
457
530
  "name": "addon",
@@ -464,21 +537,21 @@
464
537
  "char": "a",
465
538
  "description": "app to run command against",
466
539
  "name": "app",
467
- "hasDynamicHelp": false,
540
+ "hasDynamicHelp": true,
468
541
  "multiple": false,
469
542
  "type": "option"
470
543
  }
471
544
  },
472
- "hasDynamicHelp": false,
545
+ "hasDynamicHelp": true,
473
546
  "hiddenAliases": [],
474
547
  "id": "data:labs:enable",
475
548
  "pluginAlias": "@heroku-cli/plugin-data",
476
549
  "pluginName": "@heroku-cli/plugin-data",
477
550
  "pluginType": "core",
478
551
  "strict": true,
479
- "isESM": false,
552
+ "isESM": true,
480
553
  "relativePath": [
481
- "lib",
554
+ "dist",
482
555
  "commands",
483
556
  "data",
484
557
  "labs",
@@ -499,25 +572,32 @@
499
572
  "$ heroku data:labs:list happy-postgres-1234"
500
573
  ],
501
574
  "flags": {
575
+ "prompt": {
576
+ "description": "interactively prompt for command arguments and flags",
577
+ "helpGroup": "GLOBAL",
578
+ "name": "prompt",
579
+ "allowNo": false,
580
+ "type": "boolean"
581
+ },
502
582
  "app": {
503
583
  "char": "a",
504
584
  "description": "app to run command against",
505
585
  "name": "app",
506
- "hasDynamicHelp": false,
586
+ "hasDynamicHelp": true,
507
587
  "multiple": false,
508
588
  "type": "option"
509
589
  }
510
590
  },
511
- "hasDynamicHelp": false,
591
+ "hasDynamicHelp": true,
512
592
  "hiddenAliases": [],
513
593
  "id": "data:labs:list",
514
594
  "pluginAlias": "@heroku-cli/plugin-data",
515
595
  "pluginName": "@heroku-cli/plugin-data",
516
596
  "pluginType": "core",
517
597
  "strict": true,
518
- "isESM": false,
598
+ "isESM": true,
519
599
  "relativePath": [
520
- "lib",
600
+ "dist",
521
601
  "commands",
522
602
  "data",
523
603
  "labs",
@@ -535,25 +615,32 @@
535
615
  },
536
616
  "description": "Disable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates",
537
617
  "flags": {
618
+ "prompt": {
619
+ "description": "interactively prompt for command arguments and flags",
620
+ "helpGroup": "GLOBAL",
621
+ "name": "prompt",
622
+ "allowNo": false,
623
+ "type": "boolean"
624
+ },
538
625
  "app": {
539
626
  "char": "a",
540
627
  "description": "app to run command against",
541
628
  "name": "app",
542
- "hasDynamicHelp": false,
629
+ "hasDynamicHelp": true,
543
630
  "multiple": false,
544
631
  "type": "option"
545
632
  }
546
633
  },
547
- "hasDynamicHelp": false,
634
+ "hasDynamicHelp": true,
548
635
  "hiddenAliases": [],
549
636
  "id": "data:enhanced-certificates:disable",
550
637
  "pluginAlias": "@heroku-cli/plugin-data",
551
638
  "pluginName": "@heroku-cli/plugin-data",
552
639
  "pluginType": "core",
553
640
  "strict": true,
554
- "isESM": false,
641
+ "isESM": true,
555
642
  "relativePath": [
556
- "lib",
643
+ "dist",
557
644
  "commands",
558
645
  "data",
559
646
  "enhanced-certificates",
@@ -574,25 +661,32 @@
574
661
  "$ heroku data:enhanced-certificates:enable happy-postgres-1234 -a example-app"
575
662
  ],
576
663
  "flags": {
664
+ "prompt": {
665
+ "description": "interactively prompt for command arguments and flags",
666
+ "helpGroup": "GLOBAL",
667
+ "name": "prompt",
668
+ "allowNo": false,
669
+ "type": "boolean"
670
+ },
577
671
  "app": {
578
672
  "char": "a",
579
673
  "description": "app to run command against",
580
674
  "name": "app",
581
- "hasDynamicHelp": false,
675
+ "hasDynamicHelp": true,
582
676
  "multiple": false,
583
677
  "type": "option"
584
678
  }
585
679
  },
586
- "hasDynamicHelp": false,
680
+ "hasDynamicHelp": true,
587
681
  "hiddenAliases": [],
588
682
  "id": "data:enhanced-certificates:enable",
589
683
  "pluginAlias": "@heroku-cli/plugin-data",
590
684
  "pluginName": "@heroku-cli/plugin-data",
591
685
  "pluginType": "core",
592
686
  "strict": true,
593
- "isESM": false,
687
+ "isESM": true,
594
688
  "relativePath": [
595
- "lib",
689
+ "dist",
596
690
  "commands",
597
691
  "data",
598
692
  "enhanced-certificates",
@@ -610,11 +704,18 @@
610
704
  },
611
705
  "description": "Get the status of Enhanced Certificates\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates",
612
706
  "flags": {
707
+ "prompt": {
708
+ "description": "interactively prompt for command arguments and flags",
709
+ "helpGroup": "GLOBAL",
710
+ "name": "prompt",
711
+ "allowNo": false,
712
+ "type": "boolean"
713
+ },
613
714
  "app": {
614
715
  "char": "a",
615
716
  "description": "app to run command against",
616
717
  "name": "app",
617
- "hasDynamicHelp": false,
718
+ "hasDynamicHelp": true,
618
719
  "multiple": false,
619
720
  "type": "option"
620
721
  },
@@ -625,16 +726,16 @@
625
726
  "type": "boolean"
626
727
  }
627
728
  },
628
- "hasDynamicHelp": false,
729
+ "hasDynamicHelp": true,
629
730
  "hiddenAliases": [],
630
731
  "id": "data:enhanced-certificates:status",
631
732
  "pluginAlias": "@heroku-cli/plugin-data",
632
733
  "pluginName": "@heroku-cli/plugin-data",
633
734
  "pluginType": "core",
634
735
  "strict": true,
635
- "isESM": false,
736
+ "isESM": true,
636
737
  "relativePath": [
637
- "lib",
738
+ "dist",
638
739
  "commands",
639
740
  "data",
640
741
  "enhanced-certificates",
@@ -642,5 +743,5 @@
642
743
  ]
643
744
  }
644
745
  },
645
- "version": "2.0.0"
746
+ "version": "3.0.1-beta.0"
646
747
  }
package/package.json CHANGED
@@ -1,41 +1,40 @@
1
1
  {
2
2
  "name": "@heroku-cli/plugin-data",
3
3
  "description": "A Heroku CLI Plugin for managing Heroku Data",
4
- "version": "2.0.0",
4
+ "version": "3.0.1-beta.0",
5
5
  "author": "Heroku",
6
6
  "bugs": "https://github.com/heroku/heroku-cli-plugin-data/issues",
7
7
  "dependencies": {
8
- "@heroku-cli/color": "^2.0.1",
9
- "@heroku-cli/command": "^11.5.0",
10
- "@oclif/core": "^2.16.0",
11
- "tslib": "^1.14.1"
8
+ "@heroku-cli/command": "12.3.3",
9
+ "@heroku/heroku-cli-util": "^10.8.0",
10
+ "@oclif/core": "^4.11.4",
11
+ "tslib": "^2.8.1"
12
12
  },
13
13
  "devDependencies": {
14
- "@heroku-cli/schema": "^2.0.0",
15
- "@oclif/plugin-help": "^5",
16
- "@oclif/test": "^2",
14
+ "@heroku-cli/schema": "^2.0.1",
15
+ "@heroku-cli/test-utils": "^0.3.0",
16
+ "@oclif/plugin-help": "^6.2.49",
17
17
  "@types/chai": "^4",
18
18
  "@types/mocha": "^10.0.10",
19
19
  "@types/node": "20.14.8",
20
- "@types/supports-color": "^8.1.3",
21
- "chai": "^4",
22
- "eslint": "^8.57.0",
23
- "eslint-config-oclif": "^5.2.2",
24
- "eslint-config-oclif-typescript": "^3.1.14",
25
- "eslint-plugin-mocha": "^10.5.0",
26
- "globby": "^14",
27
- "mocha": "^11.1.0",
28
- "nock": "^13.5.6",
29
- "nyc": "^17.1.0",
30
- "oclif": "^4.20.1",
31
- "ts-node": "^10.9.2",
32
- "typescript": "^5.8.2"
20
+ "ansis": "^4.3.0",
21
+ "c8": "^10.1.3",
22
+ "chai": "^5.3.3",
23
+ "eslint": "^9.39.4",
24
+ "eslint-config-oclif": "^6.0.144",
25
+ "eslint-plugin-mocha": "^11.2.0",
26
+ "mocha": "^11.7.5",
27
+ "nock": "^14.0.15",
28
+ "oclif": "^4.23.0",
29
+ "tsx": "^4.22.3",
30
+ "typescript": "^5.9.3"
33
31
  },
32
+ "type": "module",
34
33
  "engines": {
35
- "node": ">=20.0.0"
34
+ "node": ">=22.0.0"
36
35
  },
37
36
  "files": [
38
- "/lib",
37
+ "/dist",
39
38
  "/oclif.manifest.json"
40
39
  ],
41
40
  "homepage": "https://github.com/heroku/heroku-cli-plugin-data",
@@ -44,7 +43,7 @@
44
43
  ],
45
44
  "license": "MIT",
46
45
  "oclif": {
47
- "commands": "./lib/commands",
46
+ "commands": "./dist/commands",
48
47
  "bin": "heroku",
49
48
  "devPlugins": [
50
49
  "@oclif/plugin-help"
@@ -55,12 +54,16 @@
55
54
  "access": "public"
56
55
  },
57
56
  "scripts": {
58
- "build": "rm -rf lib && tsc -b",
59
- "lint": "eslint . --ext .ts --config test/.eslintrc",
60
- "postpack": "rm -f oclif.manifest.json",
61
- "posttest": "yarn lint",
62
- "prepack": "yarn build && oclif manifest && oclif readme",
63
- "test": "nyc --extension .ts mocha --forbid-only --config test/mocharc.json \"test/**/*.test.ts\"",
57
+ "build": "rm -rf dist && tsc && oclif manifest && oclif readme",
58
+ "lint": "eslint .",
59
+ "postpublish": "rm -f oclif.manifest.json",
60
+ "posttest": "npm run lint",
61
+ "prepare": "npm run build",
62
+ "test": "c8 mocha --forbid-only \"test/**/*.test.ts\"",
64
63
  "version": "oclif readme && git add README.md"
64
+ },
65
+ "//overrides": "serialize-javascript: mocha transitive dep, pinned for CVE-2024-11831",
66
+ "overrides": {
67
+ "serialize-javascript": "^7.0.5"
65
68
  }
66
69
  }