@awsless/awsless 0.0.73 → 0.0.75

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
@@ -423,7 +423,7 @@ var Function = class extends Resource {
423
423
  return this;
424
424
  }
425
425
  warmUp(concurrency) {
426
- const source = new EventsEventSource(this._logicalId, this, {
426
+ const source = new EventsEventSource(`${this._logicalId}-warmer`, this, {
427
427
  schedule: "rate(5 minutes)",
428
428
  payload: {
429
429
  warmer: true,
@@ -1334,7 +1334,7 @@ var LogSchema = z6.union([
1334
1334
  z6.boolean(),
1335
1335
  DurationSchema.refine(durationMin(Duration.days(1)), "Minimum log retention is 1 day")
1336
1336
  ]);
1337
- var WarmSchema = z6.number().int().min(1).max(10);
1337
+ var WarmSchema = z6.number().int().min(0).max(10);
1338
1338
  var FunctionSchema = z6.union([
1339
1339
  LocalFileSchema,
1340
1340
  z6.object({
@@ -4597,7 +4597,7 @@ var configPlugin = definePlugin({
4597
4597
  const configs = stackConfig.configs;
4598
4598
  bind((lambda) => {
4599
4599
  if (configs && configs.length) {
4600
- lambda.addEnvironment("AWSLESS_CONFIG", configs.join(","));
4600
+ lambda.addEnvironment("CONFIG", configs.join(","));
4601
4601
  lambda.addPermissions({
4602
4602
  actions: [
4603
4603
  "ssm:GetParameter",
package/dist/index.js CHANGED
@@ -157,7 +157,7 @@ var getConfigName = (name) => {
157
157
  return `/.awsless/${APP}/${name}`;
158
158
  };
159
159
  var TEST = process.env.NODE_ENV === "test";
160
- var CONFIGS = process.env.AWSLESS_CONFIG;
160
+ var CONFIGS = process.env.CONFIG;
161
161
  var loadConfigData = /* @__NO_SIDE_EFFECTS__ */ async () => {
162
162
  if (!TEST && CONFIGS) {
163
163
  const keys = CONFIGS.split(",");
@@ -166,7 +166,7 @@ var loadConfigData = /* @__NO_SIDE_EFFECTS__ */ async () => {
166
166
  for (const key of keys) {
167
167
  paths[key] = getConfigName(key);
168
168
  }
169
- return await ssm(paths);
169
+ return ssm(paths);
170
170
  }
171
171
  }
172
172
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,