neonctl 1.25.0 → 1.25.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.
@@ -243,6 +243,13 @@ describe('branches', () => {
243
243
  snapshot: true,
244
244
  },
245
245
  });
246
+ testCliCommand({
247
+ name: 'get by name with numeric name',
248
+ args: ['branches', 'get', '123', '--project-id', 'test'],
249
+ expected: {
250
+ snapshot: true,
251
+ },
252
+ });
246
253
  testCliCommand({
247
254
  name: 'add compute',
248
255
  args: ['branches', 'add-compute', 'test_branch', '--project-id', 'test'],
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git@github.com:neondatabase/neonctl.git"
6
6
  },
7
7
  "type": "module",
8
- "version": "1.25.0",
8
+ "version": "1.25.2",
9
9
  "description": "CLI tool for NeonDB Cloud management",
10
10
  "main": "index.js",
11
11
  "author": "NeonDB",
@@ -1,5 +1,6 @@
1
1
  import { looksLikeBranchId } from './formats.js';
2
2
  export const branchIdResolve = async ({ branch, apiClient, projectId, }) => {
3
+ branch = branch.toString();
3
4
  if (looksLikeBranchId(branch)) {
4
5
  return branch;
5
6
  }