@awsless/awsless 0.0.87 → 0.0.89

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/index.d.ts CHANGED
@@ -11262,6 +11262,13 @@ declare const queue: <H extends Handler<SqsQueueSchema<S>>, S extends BaseSchema
11262
11262
  }[];
11263
11263
  }, context?: _awsless_lambda.LambdaContext | undefined) => Promise<ReturnType<H>>;
11264
11264
 
11265
+ type CronProps<H extends Handler<S>, S extends BaseSchema> = {
11266
+ handle: H;
11267
+ schema?: S;
11268
+ logger?: Loggers;
11269
+ };
11270
+ declare const cron: <H extends Handler<S>, S extends BaseSchema<any, any>>(props: CronProps<H, S>) => (event: _awsless_lambda.Input<S>, context?: _awsless_lambda.LambdaContext | undefined) => Promise<ReturnType<H>>;
11271
+
11265
11272
  type AppConfig = CombinedDefaultPluginsConfigInput;
11266
11273
  type StackConfig = CombinedDefaultPluginsConfigInput['stacks'][number];
11267
11274
  declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (StackConfig$1 & {
@@ -12063,4 +12070,4 @@ declare const defineStackConfig: (config: StackConfig) => StackConfig$1 | (Stack
12063
12070
  });
12064
12071
  declare const defineAppConfig: (config: AppConfig | AppConfigFactory<AppConfig>) => CombinedDefaultPluginsConfigInput | AppConfigFactory<CombinedDefaultPluginsConfigInput>;
12065
12072
 
12066
- export { APP, AppConfig, Auth, AuthResources, Cache, CacheResources, Config, ConfigResources, Fn, Function, FunctionProps, FunctionResources, Plugin, Queue, QueueProps, QueueResources, STACK, Search, SearchResources, StackConfig, Store, StoreResources, Table, TableResources, Topic, TopicProps, TopicResources, defineAppConfig, definePlugin, defineStackConfig, func, getAuthName, getAuthProps, getCacheProps, getConfigName, getFunctionName, getGlobalResourceName, getLocalResourceName, getQueueName, getSearchName, getStoreName, getTableName, getTopicName, queue, topic };
12073
+ export { APP, AppConfig, Auth, AuthResources, Cache, CacheResources, Config, ConfigResources, CronProps, Fn, Function, FunctionProps, FunctionResources, Plugin, Queue, QueueProps, QueueResources, STACK, Search, SearchResources, StackConfig, Store, StoreResources, Table, TableResources, Topic, TopicProps, TopicResources, cron, defineAppConfig, definePlugin, defineStackConfig, func, getAuthName, getAuthProps, getCacheProps, getConfigName, getFunctionName, getGlobalResourceName, getLocalResourceName, getQueueName, getSearchName, getStoreName, getTableName, getTopicName, queue, topic };
package/dist/index.js CHANGED
@@ -266,6 +266,15 @@ var queue = (props) => {
266
266
  });
267
267
  };
268
268
 
269
+ // src/node/handle/cron.ts
270
+ import { lambda as lambda4 } from "@awsless/lambda";
271
+ var cron = (props) => {
272
+ return lambda4({
273
+ ...props,
274
+ logViewableErrors: true
275
+ });
276
+ };
277
+
269
278
  // src/index.ts
270
279
  var defineStackConfig = (config) => config;
271
280
  var defineAppConfig = (config) => config;
@@ -282,6 +291,7 @@ export {
282
291
  Store,
283
292
  Table,
284
293
  Topic,
294
+ cron,
285
295
  defineAppConfig,
286
296
  definePlugin,
287
297
  defineStackConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@awsless/validate": "^0.0.5",
28
- "@awsless/lambda": "^0.0.9",
29
28
  "@awsless/redis": "^0.0.8",
30
29
  "@awsless/sns": "^0.0.7",
30
+ "@awsless/lambda": "^0.0.10",
31
31
  "@awsless/sqs": "^0.0.7",
32
32
  "@awsless/ssm": "^0.0.7"
33
33
  },