@sebspark/spanner-migrate 1.1.3 → 1.1.5

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.
@@ -168,7 +168,7 @@ var getAppliedMigrations = async (db) => {
168
168
  };
169
169
 
170
170
  // src/files.ts
171
- import { access, mkdir, readFile, readdir, writeFile } from "fs/promises";
171
+ import { access, mkdir, readdir, readFile, writeFile } from "fs/promises";
172
172
  import { join, resolve } from "path";
173
173
  var getMigrationFiles = async (path) => {
174
174
  try {
@@ -186,7 +186,7 @@ var getMigration = async (path, id) => {
186
186
  const filePath = resolve(process.cwd(), join(path, `${id}.sql`));
187
187
  try {
188
188
  await access(filePath);
189
- } catch (err) {
189
+ } catch {
190
190
  throw new Error(`Migration file not found: ${filePath}`);
191
191
  }
192
192
  const migrationText = await readFile(filePath, "utf8");
package/dist/cli.js CHANGED
@@ -218,7 +218,7 @@ var getMigration = async (path, id) => {
218
218
  const filePath = (0, import_node_path.resolve)(process.cwd(), (0, import_node_path.join)(path, `${id}.sql`));
219
219
  try {
220
220
  await (0, import_promises.access)(filePath);
221
- } catch (err) {
221
+ } catch {
222
222
  throw new Error(`Migration file not found: ${filePath}`);
223
223
  }
224
224
  const migrationText = await (0, import_promises.readFile)(filePath, "utf8");
package/dist/cli.mjs CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  init,
6
6
  status,
7
7
  up
8
- } from "./chunk-H6TMAEND.mjs";
8
+ } from "./chunk-YL5IK6VK.mjs";
9
9
 
10
10
  // src/cli.ts
11
11
  import fs from "fs/promises";
package/dist/index.js CHANGED
@@ -214,7 +214,7 @@ var getMigration = async (path, id) => {
214
214
  const filePath = (0, import_node_path.resolve)(process.cwd(), (0, import_node_path.join)(path, `${id}.sql`));
215
215
  try {
216
216
  await (0, import_promises.access)(filePath);
217
- } catch (err) {
217
+ } catch {
218
218
  throw new Error(`Migration file not found: ${filePath}`);
219
219
  }
220
220
  const migrationText = await (0, import_promises.readFile)(filePath, "utf8");
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  init,
5
5
  status,
6
6
  up
7
- } from "./chunk-H6TMAEND.mjs";
7
+ } from "./chunk-YL5IK6VK.mjs";
8
8
  export {
9
9
  create,
10
10
  down,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/spanner-migrate",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -18,24 +18,24 @@
18
18
  "typecheck": "tsc --noEmit "
19
19
  },
20
20
  "devDependencies": {
21
- "@google-cloud/spanner": "8.0.0",
21
+ "@google-cloud/spanner": "8.2.2",
22
22
  "@sebspark/cli-tester": "*",
23
23
  "@sebspark/spanner-mock": "*",
24
24
  "@types/jest": "29.5.14",
25
25
  "@types/yargs": "17.0.33",
26
26
  "jest": "29.7.0",
27
- "testcontainers": "11.0.3",
28
- "ts-jest": "29.4.0",
27
+ "testcontainers": "11.7.1",
28
+ "ts-jest": "29.4.5",
29
29
  "tsconfig": "*"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@google-cloud/spanner": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@inquirer/prompts": "7.5.3",
35
+ "@inquirer/prompts": "7.9.0",
36
36
  "@jest/globals": "29.7.0",
37
- "@types/node": "20.19.1",
38
- "typescript": "5.8.3",
37
+ "@types/node": "20.19.17",
38
+ "typescript": "5.9.3",
39
39
  "vitest": "3.2.4",
40
40
  "yargs": "17.7.2"
41
41
  }