neon 3.1.0 → 3.2.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.
- package/README.md +30 -5
- package/dist/{_shared/auth_selection.js → _chunks/auth_selection-DGgq6ifc.js} +3 -3
- package/dist/_chunks/cmd_pipeline-CUbBO9U_.js +2818 -0
- package/dist/{_shared/credentials.js → _chunks/credentials-MYdHdKah.js} +3 -3
- package/dist/_chunks/env-NbA61JR3.js +585 -0
- package/dist/{_shared/env-core/env.js → _chunks/env_services-Tz9G4JeT.js} +179 -43
- package/dist/{_shared/paths.js → _chunks/paths-DMq0Lt7a.js} +2 -2
- package/dist/{_shared/profiles.js → _chunks/profiles-Ir29rqns.js} +4 -13
- package/dist/_chunks/psql-DWH-kc69.js +2169 -0
- package/dist/{_virtual/_rolldown/runtime.js → _chunks/rolldown-runtime-D7D4PA-g.js} +1 -1
- package/dist/{_shared/secure_file.js → _chunks/secure_file-BucZj4yQ.js} +2 -4
- package/dist/analytics.js +2 -2
- package/dist/auth_context.js +1 -1
- package/dist/commands/api.js +2 -2
- package/dist/commands/api_keys.js +2 -2
- package/dist/commands/auth.js +7 -6
- package/dist/commands/bootstrap.js +3 -3
- package/dist/commands/branches.js +2 -2
- package/dist/commands/bucket.js +2 -2
- package/dist/commands/checkout.js +2 -2
- package/dist/commands/config.js +2 -2
- package/dist/commands/connection_string.js +2 -2
- package/dist/commands/data_api.js +2 -2
- package/dist/commands/databases.js +2 -2
- package/dist/commands/deploy.js +2 -2
- package/dist/commands/dev.js +3 -3
- package/dist/commands/diff.js +2 -2
- package/dist/commands/env.js +42 -32
- package/dist/commands/functions.js +2 -2
- package/dist/commands/index.js +35 -33
- package/dist/commands/init.js +3 -3
- package/dist/commands/inspect.js +2 -2
- package/dist/commands/ip_allow.js +2 -2
- package/dist/commands/link.js +2 -2
- package/dist/commands/logs.js +2 -2
- package/dist/commands/neon_auth.js +2 -2
- package/dist/commands/open.js +33 -0
- package/dist/commands/operations.js +2 -2
- package/dist/commands/orgs.js +2 -2
- package/dist/commands/profile.js +7 -7
- package/dist/commands/projects.js +2 -2
- package/dist/commands/psql.js +2 -2
- package/dist/commands/roles.js +2 -2
- package/dist/commands/set_context.js +2 -2
- package/dist/commands/snapshots.js +2 -2
- package/dist/commands/status.js +2 -2
- package/dist/commands/user.js +2 -2
- package/dist/commands/vpc_endpoints.js +2 -2
- package/dist/config.js +1 -1
- package/dist/dev/env.js +1 -364
- package/dist/env_services.js +2 -49
- package/dist/index.js +2 -1
- package/dist/init/auth.js +4 -4
- package/dist/psql/cli.js +1 -1
- package/dist/psql/command/cmd_copy.js +1 -1
- package/dist/psql/command/cmd_io.js +1 -1403
- package/dist/psql/command/cmd_pipeline.js +1 -595
- package/dist/psql/command/dispatch.js +1 -2
- package/dist/psql/core/common.js +1 -834
- package/dist/psql/core/mainloop.js +1 -2
- package/dist/psql/core/startup.js +1 -656
- package/dist/psql/index.js +1 -1516
- package/dist/psql/io/psqlrc.js +1 -1
- package/dist/psql/types/index.js +6 -0
- package/dist/utils/inspect_db.js +1 -1
- package/dist/utils/middlewares.js +2 -1
- package/package.json +7 -4
- package/dist/_shared/env-core/reuse-secrets.js +0 -179
package/dist/init/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { inspectCredentials, interpretCredentials } from "../
|
|
2
|
-
import { resolveConfigFile } from "../
|
|
3
|
-
import { DEFAULT_PROFILE } from "../
|
|
1
|
+
import { o as inspectCredentials, s as interpretCredentials } from "../_chunks/credentials-MYdHdKah.js";
|
|
2
|
+
import { o as resolveConfigFile } from "../_chunks/paths-DMq0Lt7a.js";
|
|
3
|
+
import { t as DEFAULT_PROFILE } from "../_chunks/profiles-Ir29rqns.js";
|
|
4
4
|
import { log } from "@clack/prompts";
|
|
5
5
|
import { execa } from "execa";
|
|
6
6
|
//#region src/init/auth.ts
|
|
@@ -43,7 +43,7 @@ async function isAuthenticated() {
|
|
|
43
43
|
* Shares the reader with `neon` and `@neon/env` rather than keeping a copy — the inline path
|
|
44
44
|
* resolution this replaced was the third implementation of "where is the config directory", and
|
|
45
45
|
* it also looked only for `access_token`, so an account signed in with an API key read as not
|
|
46
|
-
* authenticated and got sent to a browser. See `
|
|
46
|
+
* authenticated and got sent to a browser. See `internals/cli-core/README.md`.
|
|
47
47
|
*
|
|
48
48
|
* `null` means *absent*, and only absent. A file that exists and cannot be read throws: this
|
|
49
49
|
* value decides whether to start a browser sign-in, and a sign-in overwrites the file it could
|
package/dist/psql/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { writeErr, writeOut } from "./shared.js";
|
|
2
2
|
import { pumpReadable } from "../wire/copy.js";
|
|
3
|
-
import { getPipelineState } from "
|
|
3
|
+
import { m as getPipelineState } from "../../_chunks/cmd_pipeline-CUbBO9U_.js";
|
|
4
4
|
import { createReadStream, createWriteStream, promises } from "node:fs";
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
import { Buffer } from "node:buffer";
|