@lukoweb/apitogo 0.1.143 → 0.1.144

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.
Files changed (2) hide show
  1. package/dist/cli/cli.js +1 -28
  2. package/package.json +1 -1
package/dist/cli/cli.js CHANGED
@@ -5845,7 +5845,7 @@ import {
5845
5845
  // package.json
5846
5846
  var package_default = {
5847
5847
  name: "@lukoweb/apitogo",
5848
- version: "0.1.143",
5848
+ version: "0.1.144",
5849
5849
  type: "module",
5850
5850
  sideEffects: [
5851
5851
  "**/*.css",
@@ -18467,11 +18467,6 @@ function isPollableJobValue(value) {
18467
18467
 
18468
18468
  // src/cli/platform/helpers/warm-pool.ts
18469
18469
  var WARM_POOL_CAPACITY_TEMPORARILY_UNAVAILABLE = "WARM_POOL_CAPACITY_TEMPORARILY_UNAVAILABLE";
18470
- var COLD_MODULE_INFRA_RESOURCE_TYPES = /* @__PURE__ */ new Set([
18471
- "AzureProjectInfrastructure",
18472
- "DevPortalInfrastructure",
18473
- "BackendInfrastructure"
18474
- ]);
18475
18470
  var WARM_POOL_CREATE_RETRY_BUDGET_MS = 10 * 60 * 1e3;
18476
18471
  function sleep3(ms) {
18477
18472
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -18499,16 +18494,6 @@ function isWarmPoolInfrastructureTerminal(project) {
18499
18494
  const status2 = project.infrastructureStatus?.toLowerCase() ?? "";
18500
18495
  return status2 === "ready" || status2 === "failed" || status2 === "deleting";
18501
18496
  }
18502
- function shouldSkipColdModuleInfrastructureWait(project, infraStatus) {
18503
- const resourceType = infraStatus?.resourceType;
18504
- if (resourceType && COLD_MODULE_INFRA_RESOURCE_TYPES.has(resourceType)) {
18505
- return false;
18506
- }
18507
- if (resourceType === "WarmPoolBinding") {
18508
- return true;
18509
- }
18510
- return isWarmPoolInfrastructureReady(project);
18511
- }
18512
18497
  function resolvePortalBackendFqdn(project) {
18513
18498
  const portalApiUrl = project.portalApiUrl?.trim();
18514
18499
  if (!portalApiUrl) {
@@ -20058,12 +20043,6 @@ async function ensureModuleProvisioned(client, config2, projectId, moduleType, w
20058
20043
  if (isModuleProvisioned(project, moduleType)) {
20059
20044
  return;
20060
20045
  }
20061
- if (isWarmPoolInfrastructureReady(project)) {
20062
- const infra = await client.getInfrastructureStatus(projectId, moduleType);
20063
- if (shouldSkipColdModuleInfrastructureWait(project, infra) || isTerminalInfrastructureStatus(infra.status)) {
20064
- return;
20065
- }
20066
- }
20067
20046
  await progress?.onStep(`Activating module ${moduleType}`);
20068
20047
  try {
20069
20048
  await handleActivateModule(
@@ -20087,12 +20066,6 @@ async function ensureModuleProvisioned(client, config2, projectId, moduleType, w
20087
20066
  if (isModuleProvisioned(project, moduleType)) {
20088
20067
  return;
20089
20068
  }
20090
- if (isWarmPoolInfrastructureReady(project)) {
20091
- const infra = await client.getInfrastructureStatus(projectId, moduleType);
20092
- if (shouldSkipColdModuleInfrastructureWait(project, infra) || isTerminalInfrastructureStatus(infra.status)) {
20093
- return;
20094
- }
20095
- }
20096
20069
  const waitedJson = await handleWaitForJob(
20097
20070
  client,
20098
20071
  { ...config2, defaultProjectId: projectId },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo",
3
- "version": "0.1.143",
3
+ "version": "0.1.144",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/*.css",