@awsless/awsless 0.0.583 → 0.0.585

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 +1 @@
1
- 1552a14ad540cc49008ca8b937646894fbbbfc90
1
+ d2144cd2fb75094e561f9604606984b3cf8ae179
Binary file
@@ -1 +1 @@
1
- 755eb8fdc436c93b2385d01b2141cdc3f5ada376
1
+ 459f887cd6b8117a524d76a5e1f11224586dc56e
Binary file
@@ -1 +1 @@
1
- f25c05904c0f9349537dd7cb51577a1befa4c1af
1
+ 9737a7bc89cf998c23ff5f3a2173040adfb7443e
Binary file
package/dist/prebuild.js CHANGED
@@ -1,12 +1,12 @@
1
1
  // src/prebuild.ts
2
2
  import { mkdir } from "fs/promises";
3
- import { dirname as dirname2, join as join2 } from "path";
4
- import { fileURLToPath } from "url";
3
+ import { join as join2 } from "path";
5
4
 
6
5
  // src/feature/function/prebuild.ts
7
6
  import { days, seconds, toDays, toSeconds } from "@awsless/duration";
8
- import { $, Future, resolveInputs } from "@awsless/formation";
9
7
  import { mebibytes, toMebibytes } from "@awsless/size";
8
+ import { aws } from "@terraforge/aws";
9
+ import { Future, resolveInputs } from "@terraforge/core";
10
10
  import { pascalCase } from "change-case";
11
11
  import { writeFile } from "fs/promises";
12
12
  import { join } from "path";
@@ -28,7 +28,7 @@ var color = {
28
28
  primary: chalk.bold.hex("#FF9000"),
29
29
  // primary: chalk.bold.magentaBright,
30
30
  // title: chalk.white,
31
- // normal: chalk.white,
31
+ normal: chalk.reset.white,
32
32
  label: chalk.reset.white.bold,
33
33
  dim: chalk.dim,
34
34
  line: chalk.black,
@@ -166,14 +166,14 @@ var prebuild = async (file, output, external = []) => {
166
166
  };
167
167
 
168
168
  // src/prebuild.ts
169
- var __dirname = dirname2(fileURLToPath(import.meta.url));
169
+ var cwd = join2(process.cwd(), "./dist");
170
170
  var builds = {
171
171
  rpc: "../src/feature/rpc/server/handle.ts",
172
172
  image: "../src/feature/image/server/handle.ts",
173
173
  icon: "../src/feature/icon/server/handle.ts"
174
174
  };
175
175
  for (const [name, file] of Object.entries(builds)) {
176
- const output = join2(__dirname, "prebuild", name);
176
+ const output = join2(cwd, "prebuild", name);
177
177
  await mkdir(output, { recursive: true });
178
- await prebuild(join2(__dirname, file), output, ["sharp"]);
178
+ await prebuild(join2(cwd, file), output, ["sharp"]);
179
179
  }
package/dist/server.d.ts CHANGED
@@ -131,7 +131,7 @@ type RpcAuthorizerResponse = {
131
131
  authorized: true;
132
132
  context?: unknown;
133
133
  lockKey?: string;
134
- permissions?: string[];
134
+ allowedFunctions?: string[];
135
135
  ttl: Duration;
136
136
  };
137
137