@causa/workspace-google 0.7.1 → 0.7.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.
@@ -116,6 +116,12 @@ export class EmulatorStartForSpanner extends EmulatorStart {
116
116
  const [db, operation] = await instance.createDatabase(database.id, {
117
117
  schema: ddls,
118
118
  });
119
+ // While unlikely, the database object might emit errors, e.g "The client has already been closed.".
120
+ // These errors could simply be ignored, as awaiting on the operation should be enough to ensure the database is
121
+ // created. However they are logged as warnings for completeness.
122
+ db.on('error', (error) => {
123
+ context.logger.warn(`⚠️ Uncaught Spanner database error: '${error.message}'.`);
124
+ });
119
125
  await operation.promise();
120
126
  await db.close();
121
127
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causa/workspace-google",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "The Causa workspace module providing many functionalities related to GCP and its services.",
5
5
  "repository": "github:causa-io/workspace-module-google",
6
6
  "license": "ISC",
@@ -41,14 +41,14 @@
41
41
  "@google-cloud/run": "^1.1.0",
42
42
  "@google-cloud/secret-manager": "^5.1.0",
43
43
  "@google-cloud/service-usage": "^3.2.0",
44
- "@google-cloud/spanner": "7.3.0",
44
+ "@google-cloud/spanner": "7.4.0",
45
45
  "@google-cloud/storage": "^7.7.0",
46
46
  "class-validator": "^0.14.1",
47
47
  "firebase": "^10.8.0",
48
48
  "firebase-admin": "^12.0.0",
49
49
  "globby": "^14.0.1",
50
50
  "google-auth-library": "^9.6.3",
51
- "google-gax": "4.3.0",
51
+ "google-gax": "4.3.1",
52
52
  "googleapis": "^133.0.0",
53
53
  "pino": "^8.19.0",
54
54
  "quicktype-core": "^23.0.104",
@@ -57,11 +57,11 @@
57
57
  "devDependencies": {
58
58
  "@tsconfig/node18": "^18.2.2",
59
59
  "@types/jest": "^29.5.12",
60
- "@types/node": "^18.19.17",
60
+ "@types/node": "^18.19.18",
61
61
  "@types/uuid": "^9.0.8",
62
62
  "@typescript-eslint/eslint-plugin": "^7.0.2",
63
63
  "copyfiles": "^2.4.1",
64
- "eslint": "^8.56.0",
64
+ "eslint": "^8.57.0",
65
65
  "eslint-config-prettier": "^9.1.0",
66
66
  "eslint-plugin-prettier": "^5.1.3",
67
67
  "jest": "^29.7.0",