@shushed/helpers 0.0.198-v2-20251104134625 → 0.0.198-v2-20251104174054

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.
@@ -298,6 +298,7 @@ class EnvEngine extends runtime_1.default {
298
298
  triggerId: audience ? (audience.triggerId || this.triggerId) : null
299
299
  };
300
300
  const serviceName = process.env.K_SERVICE || '<not-cloud-run>';
301
+ console.log('JAKUB8', serviceName);
301
302
  const expectedAudience = [process.env.GCLOUD_PROJECT, audienceNorm.workflowId, audienceNorm.triggerId].filter(x => x !== null).join('-');
302
303
  return this.with(`google_identity_token_${serviceName}_${expectedAudience}`, 'env', { encrypted: true, ephemeralMs: 10 * 60 * 1000, fetch: () => (0, utils_1.getIdentityToken)(expectedAudience) });
303
304
  }
@@ -106,6 +106,9 @@ class Runtime {
106
106
  if (options.env?.triggerEnv) {
107
107
  systemEnvName = options.env.triggerEnv.systemEnvName;
108
108
  }
109
+ if (options.env?.runtimeEnv) {
110
+ return options.env.runtimeEnv;
111
+ }
109
112
  if (options.runtimeUrl || options.request?.host || options.url) {
110
113
  const hostId = (options.runtimeUrl || options.request?.host || options.url || '').replace(/^(?:https?:)?\/\//i, '').split('/')[0].split('.')[0].toLowerCase();
111
114
  if (hostId.includes('-')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.198-v2-20251104134625",
3
+ "version": "0.0.198-v2-20251104174054",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",