pgflow 0.0.1-prealpha.0 → 0.0.12
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 +13 -0
- package/LICENSE.md +660 -0
- package/eslint.config.cjs +3 -0
- package/package.json +13 -6
- package/project.json +40 -0
- package/src/commands/install/copy-migrations.ts +101 -0
- package/src/commands/install/index.ts +45 -0
- package/src/commands/install/supabase-path-prompt.ts +28 -0
- package/src/commands/install/update-config-toml.ts +130 -0
- package/src/index.ts +76 -0
- package/src/types.d.ts +1 -0
- package/tsconfig.json +20 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.spec.json +33 -0
- package/vite.config.ts +25 -0
- package/dist/node_modules/.package-lock.json +0 -129
- package/dist/node_modules/@commander-js/extra-typings/LICENSE +0 -21
- package/dist/node_modules/@commander-js/extra-typings/README.md +0 -66
- package/dist/node_modules/@commander-js/extra-typings/esm.d.mts +0 -2
- package/dist/node_modules/@commander-js/extra-typings/esm.mjs +0 -16
- package/dist/node_modules/@commander-js/extra-typings/index.d.ts +0 -1467
- package/dist/node_modules/@commander-js/extra-typings/index.js +0 -25
- package/dist/node_modules/@commander-js/extra-typings/package.json +0 -63
- package/dist/node_modules/@esbuild/linux-x64/README.md +0 -3
- package/dist/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/dist/node_modules/@esbuild/linux-x64/package.json +0 -20
- package/dist/node_modules/commander/LICENSE +0 -22
- package/dist/node_modules/commander/Readme.md +0 -1149
- package/dist/node_modules/commander/esm.mjs +0 -16
- package/dist/node_modules/commander/index.js +0 -24
- package/dist/node_modules/commander/lib/argument.js +0 -149
- package/dist/node_modules/commander/lib/command.js +0 -2662
- package/dist/node_modules/commander/lib/error.js +0 -39
- package/dist/node_modules/commander/lib/help.js +0 -709
- package/dist/node_modules/commander/lib/option.js +0 -367
- package/dist/node_modules/commander/lib/suggestSimilar.js +0 -101
- package/dist/node_modules/commander/package-support.json +0 -16
- package/dist/node_modules/commander/package.json +0 -82
- package/dist/node_modules/commander/typings/esm.d.mts +0 -3
- package/dist/node_modules/commander/typings/index.d.ts +0 -1045
- package/dist/node_modules/esbuild/LICENSE.md +0 -21
- package/dist/node_modules/esbuild/README.md +0 -3
- package/dist/node_modules/esbuild/bin/esbuild +0 -0
- package/dist/node_modules/esbuild/install.js +0 -287
- package/dist/node_modules/esbuild/lib/main.d.ts +0 -705
- package/dist/node_modules/esbuild/lib/main.js +0 -2251
- package/dist/node_modules/esbuild/package.json +0 -48
- package/dist/node_modules/get-tsconfig/LICENSE +0 -21
- package/dist/node_modules/get-tsconfig/README.md +0 -235
- package/dist/node_modules/get-tsconfig/dist/index.cjs +0 -7
- package/dist/node_modules/get-tsconfig/dist/index.d.cts +0 -1439
- package/dist/node_modules/get-tsconfig/dist/index.d.mts +0 -1439
- package/dist/node_modules/get-tsconfig/dist/index.mjs +0 -7
- package/dist/node_modules/get-tsconfig/package.json +0 -46
- package/dist/node_modules/resolve-pkg-maps/LICENSE +0 -21
- package/dist/node_modules/resolve-pkg-maps/README.md +0 -216
- package/dist/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
- package/dist/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
- package/dist/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
- package/dist/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
- package/dist/node_modules/resolve-pkg-maps/package.json +0 -42
- package/dist/node_modules/tsx/LICENSE +0 -21
- package/dist/node_modules/tsx/README.md +0 -32
- package/dist/node_modules/tsx/dist/cjs/api/index.cjs +0 -1
- package/dist/node_modules/tsx/dist/cjs/api/index.d.cts +0 -35
- package/dist/node_modules/tsx/dist/cjs/api/index.d.mts +0 -35
- package/dist/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
- package/dist/node_modules/tsx/dist/cjs/index.cjs +0 -1
- package/dist/node_modules/tsx/dist/cjs/index.mjs +0 -1
- package/dist/node_modules/tsx/dist/cli.cjs +0 -54
- package/dist/node_modules/tsx/dist/cli.mjs +0 -55
- package/dist/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
- package/dist/node_modules/tsx/dist/client-D6NvIMSC.cjs +0 -1
- package/dist/node_modules/tsx/dist/esm/api/index.cjs +0 -1
- package/dist/node_modules/tsx/dist/esm/api/index.d.cts +0 -35
- package/dist/node_modules/tsx/dist/esm/api/index.d.mts +0 -35
- package/dist/node_modules/tsx/dist/esm/api/index.mjs +0 -1
- package/dist/node_modules/tsx/dist/esm/index.cjs +0 -2
- package/dist/node_modules/tsx/dist/esm/index.mjs +0 -2
- package/dist/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
- package/dist/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +0 -1
- package/dist/node_modules/tsx/dist/index-B4SIRlEU.cjs +0 -16
- package/dist/node_modules/tsx/dist/index-DlKgSVBb.mjs +0 -16
- package/dist/node_modules/tsx/dist/loader.cjs +0 -1
- package/dist/node_modules/tsx/dist/loader.mjs +0 -1
- package/dist/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
- package/dist/node_modules/tsx/dist/node-features-roYmp9jK.cjs +0 -1
- package/dist/node_modules/tsx/dist/package--YiorJOq.mjs +0 -1
- package/dist/node_modules/tsx/dist/package-BUuKnQXZ.cjs +0 -1
- package/dist/node_modules/tsx/dist/patch-repl.cjs +0 -1
- package/dist/node_modules/tsx/dist/patch-repl.mjs +0 -1
- package/dist/node_modules/tsx/dist/preflight.cjs +0 -1
- package/dist/node_modules/tsx/dist/preflight.mjs +0 -1
- package/dist/node_modules/tsx/dist/register-C3TE0KFF.mjs +0 -3
- package/dist/node_modules/tsx/dist/register-CVZT-Tul.cjs +0 -1
- package/dist/node_modules/tsx/dist/register-DCnOAxY2.cjs +0 -3
- package/dist/node_modules/tsx/dist/register-RyGUjI6j.mjs +0 -1
- package/dist/node_modules/tsx/dist/repl.cjs +0 -3
- package/dist/node_modules/tsx/dist/repl.mjs +0 -3
- package/dist/node_modules/tsx/dist/require-BnyFnlmk.mjs +0 -1
- package/dist/node_modules/tsx/dist/require-DBpSESet.cjs +0 -1
- package/dist/node_modules/tsx/dist/suppress-warnings.cjs +0 -1
- package/dist/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
- package/dist/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +0 -1
- package/dist/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
- package/dist/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
- package/dist/node_modules/tsx/package.json +0 -68
- package/dist/package.json +0 -27
- package/dist/sql/000000_schema.sql +0 -150
- package/dist/sql/000005_create_flow.sql +0 -29
- package/dist/sql/000010_add_step.sql +0 -48
- package/dist/sql/000015_start_ready_steps.sql +0 -45
- package/dist/sql/000020_start_flow.sql +0 -46
- package/dist/sql/000030_read_with_poll_backport.sql +0 -70
- package/dist/sql/000040_poll_for_tasks.sql +0 -100
- package/dist/sql/000045_maybe_complete_run.sql +0 -30
- package/dist/sql/000050_complete_task.sql +0 -98
- package/dist/sql/000055_calculate_retry_delay.sql +0 -11
- package/dist/sql/000060_fail_task.sql +0 -124
- package/dist/sql/000_edge_worker_initial.sql +0 -86
- package/dist/src/commands/install.d.ts +0 -4
- package/dist/src/commands/install.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CommanderError class
|
|
3
|
-
*/
|
|
4
|
-
class CommanderError extends Error {
|
|
5
|
-
/**
|
|
6
|
-
* Constructs the CommanderError class
|
|
7
|
-
* @param {number} exitCode suggested exit code which could be used with process.exit
|
|
8
|
-
* @param {string} code an id string representing the error
|
|
9
|
-
* @param {string} message human-readable description of the error
|
|
10
|
-
*/
|
|
11
|
-
constructor(exitCode, code, message) {
|
|
12
|
-
super(message);
|
|
13
|
-
// properly capture stack trace in Node.js
|
|
14
|
-
Error.captureStackTrace(this, this.constructor);
|
|
15
|
-
this.name = this.constructor.name;
|
|
16
|
-
this.code = code;
|
|
17
|
-
this.exitCode = exitCode;
|
|
18
|
-
this.nestedError = undefined;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* InvalidArgumentError class
|
|
24
|
-
*/
|
|
25
|
-
class InvalidArgumentError extends CommanderError {
|
|
26
|
-
/**
|
|
27
|
-
* Constructs the InvalidArgumentError class
|
|
28
|
-
* @param {string} [message] explanation of why argument is invalid
|
|
29
|
-
*/
|
|
30
|
-
constructor(message) {
|
|
31
|
-
super(1, 'commander.invalidArgument', message);
|
|
32
|
-
// properly capture stack trace in Node.js
|
|
33
|
-
Error.captureStackTrace(this, this.constructor);
|
|
34
|
-
this.name = this.constructor.name;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
exports.CommanderError = CommanderError;
|
|
39
|
-
exports.InvalidArgumentError = InvalidArgumentError;
|