core-services-sdk 1.3.54 → 1.3.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-services-sdk",
3
- "version": "1.3.54",
3
+ "version": "1.3.55",
4
4
  "main": "src/index.js",
5
5
  "type": "module",
6
6
  "types": "types/index.d.ts",
@@ -33,7 +33,7 @@ import { connectToPg } from './connect-to-pg.js'
33
33
  export async function validateSchema({
34
34
  tables,
35
35
  connection,
36
- log = { error: console.error, info: console.info },
36
+ log = { info: console.info },
37
37
  }) {
38
38
  const db = connectToPg(connection)
39
39
 
@@ -47,9 +47,9 @@ export async function validateSchema({
47
47
  }
48
48
 
49
49
  if (missingTables.length > 0) {
50
- const errorMessage = `Missing the following tables: ${missingTables.join(', ')}. Did you run migrations?`
51
- log.error(errorMessage)
52
- throw new Error(errorMessage)
50
+ throw new Error(
51
+ `Missing the following tables: ${missingTables.join(', ')}. Did you run migrations?`,
52
+ )
53
53
  }
54
54
 
55
55
  if (tables.length) {