@awsless/cli 0.0.46-next.2 → 0.0.46-next.21

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.
@@ -1,7 +1,7 @@
1
1
  // src/feature/image/server/handle.ts
2
2
  import { getObject, putObject } from "@awsless/s3";
3
3
  import sharp from "sharp";
4
- import { getRouteEnv, invokeRoute } from "awsless";
4
+ import { getRouteEnv, internalInvoke } from "awsless";
5
5
 
6
6
  // src/feature/image/server/validate.ts
7
7
  import { object, picklist, pipe, safeParse, string, transform } from "@awsless/validate";
@@ -92,7 +92,7 @@ var handle_default = async (event) => {
92
92
  }
93
93
  const originRoute = getRouteEnv("IMAGE_ORIGIN");
94
94
  if (!baseImage && originRoute) {
95
- const result = await invokeRoute(originRoute, { path: originalPath });
95
+ const result = await internalInvoke(originRoute, { path: originalPath });
96
96
  if (typeof result === "string") {
97
97
  baseImage = Buffer.from(result, "base64");
98
98
  } else if (result === undefined) {
@@ -22,7 +22,7 @@ import {
22
22
  putItem,
23
23
  string as dbString
24
24
  } from "@awsless/dynamodb";
25
- import { getRouteEnv, invokeRoute } from "awsless";
25
+ import { getRouteEnv, internalInvoke } from "awsless";
26
26
  import { createHash } from "crypto";
27
27
  import * as zlib from "zlib";
28
28
  var RuntimeErrorSchema = object({
@@ -107,7 +107,7 @@ var handle_default = async (event, context) => {
107
107
  if (!error || await isOwnRequest(error.requestId)) {
108
108
  continue;
109
109
  }
110
- const invoke = invokeRoute(consumerRoute, {
110
+ const invoke = internalInvoke(consumerRoute, {
111
111
  ...error,
112
112
  origin,
113
113
  date: logEvent.timestamp