@shushed/helpers 0.0.200-runtime-url-fix2-20251125160039 → 0.0.200-v2-20251126101957
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.
|
@@ -92,9 +92,6 @@ class Runtime {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
getRuntimeUrl(options) {
|
|
95
|
-
if (options.runtimeUrl && this.isDeployment) {
|
|
96
|
-
return options.runtimeUrl;
|
|
97
|
-
}
|
|
98
95
|
const systemEnvName = this.getSystemEnvName(options);
|
|
99
96
|
const [_, ...idParts] = (process.env.GCLOUD_PROJECT || '').split('-');
|
|
100
97
|
if (process.env.RUNTIME_URL) {
|
|
@@ -133,9 +130,6 @@ class Runtime {
|
|
|
133
130
|
}
|
|
134
131
|
return systemEnvName || 'test-env';
|
|
135
132
|
}
|
|
136
|
-
get isDeployment() {
|
|
137
|
-
return process.env.K_SERVICE === 'manager';
|
|
138
|
-
}
|
|
139
133
|
}
|
|
140
134
|
exports.default = Runtime;
|
|
141
135
|
;
|
|
@@ -66,7 +66,7 @@ export declare function onResponse(config: any & {
|
|
|
66
66
|
cacheMaxAge: number;
|
|
67
67
|
} | undefined;
|
|
68
68
|
interface Price {
|
|
69
|
-
price_changes
|
|
69
|
+
price_changes?: undefined | Array<{
|
|
70
70
|
price: number;
|
|
71
71
|
effective_from?: string;
|
|
72
72
|
effective_until?: string;
|