@effortless-aws/cli 0.4.0 → 0.5.0

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/dist/cli/index.js CHANGED
@@ -1938,7 +1938,8 @@ var DEFAULT_CORS = {
1938
1938
  AllowMethods: ["*"],
1939
1939
  AllowHeaders: ["*"]
1940
1940
  };
1941
- var ensureFunctionUrl = (functionName) => Effect13.gen(function* () {
1941
+ var ensureFunctionUrl = (functionName, invokeMode) => Effect13.gen(function* () {
1942
+ const mode = invokeMode ?? "BUFFERED";
1942
1943
  const existing = yield* lambda_exports.make("get_function_url_config", {
1943
1944
  FunctionName: functionName
1944
1945
  }).pipe(
@@ -1951,6 +1952,7 @@ var ensureFunctionUrl = (functionName) => Effect13.gen(function* () {
1951
1952
  yield* lambda_exports.make("update_function_url_config", {
1952
1953
  FunctionName: functionName,
1953
1954
  AuthType: "NONE",
1955
+ InvokeMode: mode,
1954
1956
  Cors: DEFAULT_CORS
1955
1957
  });
1956
1958
  return { functionUrl: existing.FunctionUrl };
@@ -1959,7 +1961,7 @@ var ensureFunctionUrl = (functionName) => Effect13.gen(function* () {
1959
1961
  const result = yield* lambda_exports.make("create_function_url_config", {
1960
1962
  FunctionName: functionName,
1961
1963
  AuthType: "NONE",
1962
- InvokeMode: "BUFFERED",
1964
+ InvokeMode: mode,
1963
1965
  Cors: DEFAULT_CORS
1964
1966
  });
1965
1967
  return { functionUrl: result.FunctionUrl };
@@ -4691,7 +4693,7 @@ var deploy = (input) => Effect28.gen(function* () {
4691
4693
  ...external.length > 0 ? { external } : {}
4692
4694
  });
4693
4695
  const lambdaName = `${input.project}-${tagCtx.stage}-${handlerName}`;
4694
- const { functionUrl } = yield* ensureFunctionUrl(lambdaName);
4696
+ const { functionUrl } = yield* ensureFunctionUrl(lambdaName, fn13.config.stream ? "RESPONSE_STREAM" : void 0);
4695
4697
  yield* addFunctionUrlPublicAccess(lambdaName);
4696
4698
  yield* Effect28.logDebug(`Deployment complete! URL: ${functionUrl}`);
4697
4699
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effortless-aws/cli",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "CLI and deploy tooling for effortless-aws",
@@ -39,7 +39,7 @@
39
39
  "esbuild": "^0.25.0",
40
40
  "glob": "^13.0.0",
41
41
  "ts-morph": "^27.0.2",
42
- "effortless-aws": "0.20.0"
42
+ "effortless-aws": "0.21.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@effect-ak/aws-sdk": "1.0.0-rc.3",