@supacloud/cli 0.3.0 → 0.3.1

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 (2) hide show
  1. package/dist/index.js +1 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4354,7 +4354,7 @@ function migrationVersionFromFilename(file, fallbackIndex = 0) {
4354
4354
  return Date.now() * 1000 + fallbackIndex;
4355
4355
  }
4356
4356
  function appliedMigrationKeys(data) {
4357
- const rows = Array.isArray(data) ? data : data?.rows || [];
4357
+ const rows = data?.rows || [];
4358
4358
  const keys = new Set;
4359
4359
  for (const row of rows) {
4360
4360
  if (!row || typeof row !== "object")
@@ -4374,8 +4374,6 @@ function sqlCreatesVectorExtension(sql) {
4374
4374
  return /\bCREATE\s+EXTENSION\s+(?:IF\s+NOT\s+EXISTS\s+)?["']?vector["']?/i.test(sql);
4375
4375
  }
4376
4376
  function extensionRows(data) {
4377
- if (Array.isArray(data))
4378
- return data;
4379
4377
  const shaped = data;
4380
4378
  const rows = shaped?.rows || [];
4381
4379
  return Array.isArray(rows) ? rows : [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",