@orcapt/cli 1.0.4 → 1.0.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orcapt/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "CLI tool for managing Orca projects - Quick setup and deployment",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -592,12 +592,12 @@ async function lambdaRemove(functionName) {
592
592
  console.log(chalk.yellow('ECR repository will be kept for potential rollback.\n'));
593
593
 
594
594
  const spinner = ora('Removing function...').start();
595
-
595
+ const endpoint = API_ENDPOINTS.LAMBDA_DELETE.replace('{functionName}', functionName);
596
596
  try {
597
597
  // Call backend API to delete Lambda function
598
598
  const response = await makeApiRequest(
599
599
  'DELETE',
600
- `${API_ENDPOINTS.LAMBDA_DELETE}/${functionName}`,
600
+ endpoint,
601
601
  credentials
602
602
  );
603
603
 
@@ -631,12 +631,12 @@ async function lambdaInfo(functionName) {
631
631
  const credentials = requireAuth();
632
632
 
633
633
  const spinner = ora('Fetching function details...').start();
634
-
634
+ const endpoint = API_ENDPOINTS.LAMBDA_INFO.replace('{functionName}', functionName);
635
635
  try {
636
636
  // Call backend API to get function details
637
637
  const response = await makeApiRequest(
638
638
  'GET',
639
- `${API_ENDPOINTS.LAMBDA_INFO}/${functionName}`,
639
+ endpoint,
640
640
  credentials
641
641
  );
642
642