@awsless/awsless 0.0.392 → 0.0.394

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/bin.js CHANGED
@@ -12529,7 +12529,7 @@ var restFeature = defineFeature({
12529
12529
 
12530
12530
  // src/feature/rpc/index.ts
12531
12531
  import { camelCase as camelCase6, constantCase as constantCase9, paramCase as paramCase6 } from "change-case";
12532
- import { aws as aws17, Node as Node16, Output as Output3 } from "@awsless/formation";
12532
+ import { Asset as Asset5, aws as aws17, Node as Node16, Output as Output3 } from "@awsless/formation";
12533
12533
  import { mebibytes as mebibytes2 } from "@awsless/size";
12534
12534
  import { dirname as dirname10, join as join9, relative as relative5 } from "path";
12535
12535
  import { fileURLToPath } from "node:url";
@@ -12726,7 +12726,7 @@ var rpcFeature = defineFeature({
12726
12726
  resourceType: "rpc",
12727
12727
  resourceName: id
12728
12728
  });
12729
- const { lambda } = createPrebuildLambdaFunction(group, ctx, "rpc", id, {
12729
+ const { lambda, code } = createPrebuildLambdaFunction(group, ctx, "rpc", id, {
12730
12730
  bundleFile: join9(__dirname, "/prebuild/rpc/bundle.zip"),
12731
12731
  bundleHash: join9(__dirname, "/prebuild/rpc/HASH"),
12732
12732
  memorySize: mebibytes2(256),
@@ -12746,6 +12746,12 @@ var rpcFeature = defineFeature({
12746
12746
  const authGroup = new Node16(group, "auth", "authorizer");
12747
12747
  const auth2 = createLambdaFunction(authGroup, ctx, "rpc", `${id}-auth`, props.auth);
12748
12748
  lambda.addEnvironment("AUTH", auth2.lambda.name);
12749
+ new aws17.lambda.SourceCodeUpdate(group, "update", {
12750
+ functionName: lambda.name,
12751
+ version: Asset5.fromFile(getBuildPath("function", auth2.name, "HASH")),
12752
+ architecture: "arm64",
12753
+ code
12754
+ });
12749
12755
  }
12750
12756
  const permission = new aws17.lambda.Permission(group, "permission", {
12751
12757
  principal: "*",
@@ -12904,7 +12910,7 @@ var searchFeature = defineFeature({
12904
12910
 
12905
12911
  // src/feature/site/index.ts
12906
12912
  import { days as days6, seconds as seconds4 } from "@awsless/duration";
12907
- import { Asset as Asset5, aws as aws19, Node as Node18 } from "@awsless/formation";
12913
+ import { Asset as Asset6, aws as aws19, Node as Node18 } from "@awsless/formation";
12908
12914
  import { glob as glob2 } from "glob";
12909
12915
  import { join as join10 } from "path";
12910
12916
 
@@ -13015,7 +13021,7 @@ var siteFeature = defineFeature({
13015
13021
  const object = new aws19.s3.BucketObject(group, file, {
13016
13022
  bucket: bucket.name,
13017
13023
  key: file,
13018
- body: Asset5.fromFile(join10(props.static, file)),
13024
+ body: Asset6.fromFile(join10(props.static, file)),
13019
13025
  cacheControl: getCacheControl(file),
13020
13026
  contentType: getContentType(file)
13021
13027
  });
@@ -1 +1 @@
1
- 6a73f3923c951c950feb8263ebdecb54d07f36c2
1
+ 97510d9a094a9b2d465e3a910caf3aa9b08ebf0d
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.392",
3
+ "version": "0.0.394",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,16 +29,16 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@awsless/lambda": "^0.0.26",
32
- "@awsless/open-search": "^0.0.15",
33
32
  "@awsless/iot": "^0.0.2",
34
- "@awsless/redis": "^0.0.13",
35
- "@awsless/sns": "^0.0.7",
33
+ "@awsless/mqtt": "^0.0.2",
36
34
  "@awsless/validate": "^0.0.15",
37
- "@awsless/sqs": "^0.0.7",
38
- "@awsless/weak-cache": "^0.0.1",
39
35
  "@awsless/s3": "^0.0.18",
36
+ "@awsless/sns": "^0.0.7",
37
+ "@awsless/open-search": "^0.0.15",
38
+ "@awsless/weak-cache": "^0.0.1",
40
39
  "@awsless/ssm": "^0.0.7",
41
- "@awsless/mqtt": "^0.0.2"
40
+ "@awsless/sqs": "^0.0.7",
41
+ "@awsless/redis": "^0.0.13"
42
42
  },
43
43
  "dependencies": {
44
44
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -113,12 +113,12 @@
113
113
  "zod": "^3.21.4",
114
114
  "zod-to-json-schema": "^3.22.3",
115
115
  "@awsless/duration": "^0.0.1",
116
- "@awsless/formation": "^0.0.57",
117
116
  "@awsless/size": "^0.0.1",
117
+ "@awsless/formation": "^0.0.57",
118
118
  "@awsless/validate": "^0.0.15",
119
+ "@awsless/code": "^0.0.10",
119
120
  "@awsless/graphql": "^0.0.9",
120
- "@awsless/ts-file-cache": "^0.0.10",
121
- "@awsless/code": "^0.0.10"
121
+ "@awsless/ts-file-cache": "^0.0.10"
122
122
  },
123
123
  "devDependencies": {
124
124
  "@node-rs/bcrypt": "^1.10.5"