@shushed/helpers 0.0.233 → 0.0.234

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.
@@ -50,7 +50,6 @@ class BigQueryHelper extends runtime_1.default {
50
50
  }
51
51
  }
52
52
  for (const sql of alterStatements) {
53
- console.log(`Executing SQL: ${sql}`);
54
53
  await this.bigQuery.query({ query: sql });
55
54
  }
56
55
  return fullTableId;
@@ -777,9 +777,6 @@ class EnvEngine extends runtime_1.default {
777
777
  projectId: pubSubProjectId
778
778
  });
779
779
  global.HUSH_PUBSUB_INSTANCE = pubSub;
780
- this.logging.log('getPubSubHelper', {
781
- serviceAccountEmail: serviceAccount,
782
- });
783
780
  return new pubsub_1.default(this, {
784
781
  serviceAccountEmail: serviceAccount
785
782
  }, pubSub);
@@ -98,7 +98,7 @@ class Runtime {
98
98
  if (opts.trigger?.label) {
99
99
  this.triggerId = opts.trigger.id || '00000000-0000-0000-0000-000000000000';
100
100
  this.triggerName = opts.trigger?.label?.split(/\sv\d/)[0]?.trim() || this.workflowId;
101
- this.triggerVersion = buildSemver((opts.trigger.label.split(/\sv\d/)[1]?.trim() || 'v0').replace(/^v/, ''));
101
+ this.triggerVersion = buildSemver((opts.trigger?.label?.split(/\sv/)?.find(x => /^\d/.test(x))?.trim() || '0'));
102
102
  this.triggerDataProperties = opts.trigger.data?.properties;
103
103
  this.triggerConfigProperties = opts.trigger.config?.properties;
104
104
  }
@@ -182,7 +182,7 @@ class Runtime {
182
182
  exports.default = Runtime;
183
183
  ;
184
184
  function buildSemver(version) {
185
- const parts = version.split(/\./).map(x => parseInt(x, 10));
185
+ const parts = version.split('.').map(x => parseInt(x, 10)).filter(x => !isNaN(x));
186
186
  for (let i = parts.length; i < 3; i++) {
187
187
  parts.push(0);
188
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.233",
3
+ "version": "0.0.234",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",