neon 8.3.5 → 8.3.6

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.
@@ -383,10 +383,14 @@ const enable = async (props) => {
383
383
  database_name: props.databaseName
384
384
  })));
385
385
  } catch (err) {
386
- if (isNeonApiError(err) && err.status === 409) {
387
- alreadyEnabled = true;
386
+ if (!(isNeonApiError(err) && err.status === 409)) throw err;
387
+ try {
388
388
  ({data} = await props.apiClient.getNeonAuth(props.projectId, branchId));
389
- } else throw err;
389
+ } catch (readErr) {
390
+ if (isNeonApiError(readErr) && readErr.status === 404) throw err;
391
+ throw readErr;
392
+ }
393
+ alreadyEnabled = true;
390
394
  }
391
395
  if (props.output === "json" || props.output === "yaml") {
392
396
  writer(props).end(data, { fields: INTEGRATION_RESPONSE_FIELDS });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "8.3.5",
3
+ "version": "8.3.6",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -64,9 +64,9 @@
64
64
  "yaml": "^2.9.0",
65
65
  "yargs": "17.7.2",
66
66
  "yoctocolors": "^2.1.2",
67
- "@neon/config": "1.8.6",
67
+ "@neon/config-runtime": "1.8.1",
68
68
  "@neon/sdk": "7.0.1",
69
- "@neon/config-runtime": "1.8.0"
69
+ "@neon/config": "1.8.7"
70
70
  },
71
71
  "optionalDependencies": {
72
72
  "@napi-rs/keyring": "1.3.0",
@@ -101,9 +101,9 @@
101
101
  "typescript": "^5.9.0",
102
102
  "vitest": "^3.0.9",
103
103
  "@neon-internals/cli-core": "0.0.0",
104
+ "@neon-internals/env-core": "0.0.30",
104
105
  "@neon/e2e-harness": "0.0.0",
105
- "@neon/functions": "0.11.0",
106
- "@neon-internals/env-core": "0.0.29"
106
+ "@neon/functions": "0.11.0"
107
107
  },
108
108
  "publishConfig": {
109
109
  "access": "public",