@awsless/awsless 0.0.116 → 0.0.118

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
@@ -3464,9 +3464,9 @@ var graphqlPlugin = definePlugin({
3464
3464
  AWSIPAddress: "string"
3465
3465
  }
3466
3466
  });
3467
- await write(`graphql/${id}.d.ts`, output);
3468
- types2.addImport({ Schema: id }, `./graphql/${id}.d.ts`);
3469
- resources.addConst(id, id);
3467
+ await write(`graphql/${id}.ts`, output);
3468
+ types2.addImport({ Schema: id }, `./graphql/${id}.ts`);
3469
+ resources.addType(id, id);
3470
3470
  }
3471
3471
  }
3472
3472
  types2.addInterface("GraphQL", resources);
package/dist/index.d.ts CHANGED
@@ -11309,14 +11309,14 @@ type FunctionProps<H extends Handler<S>, S extends BaseSchema> = {
11309
11309
  logger?: Loggers;
11310
11310
  logViewableErrors?: boolean;
11311
11311
  };
11312
- declare const func: <H extends Handler<S>, S extends BaseSchema<any, any>>(props: FunctionProps<H, S>) => (event: _awsless_lambda.Input<S>, context?: _awsless_lambda.LambdaContext | undefined) => Promise<ReturnType<H>>;
11312
+ declare const func: <H extends Handler<S, unknown>, S extends BaseSchema<any, any>>(props: FunctionProps<H, S>) => (event: _awsless_lambda.Input<S>, context?: _awsless_lambda.LambdaContext | undefined) => Promise<ReturnType<H>>;
11313
11313
 
11314
11314
  type TopicProps<H extends Handler<S>, S extends BaseSchema> = {
11315
11315
  handle: H;
11316
11316
  schema?: S;
11317
11317
  logger?: Loggers;
11318
11318
  };
11319
- declare const topic: <H extends Handler<SnsTopicSchema<S>>, S extends BaseSchema<any, any>>(props: TopicProps<H, S>) => (event: valibot.Input<S> | valibot.Input<S>[] | {
11319
+ declare const topic: <H extends Handler<SnsTopicSchema<S>, unknown>, S extends BaseSchema<any, any>>(props: TopicProps<H, S>) => (event: valibot.Input<S> | valibot.Input<S>[] | {
11320
11320
  Records: {
11321
11321
  Sns: {
11322
11322
  Message: string | valibot.Input<S>;
@@ -11329,7 +11329,7 @@ type QueueProps<H extends Handler<S>, S extends BaseSchema> = {
11329
11329
  schema?: S;
11330
11330
  logger?: Loggers;
11331
11331
  };
11332
- declare const queue: <H extends Handler<SqsQueueSchema<S>>, S extends BaseSchema<any, any>>(props: QueueProps<H, S>) => (event: valibot.Input<S> | valibot.Input<S>[] | {
11332
+ declare const queue: <H extends Handler<SqsQueueSchema<S>, unknown>, S extends BaseSchema<any, any>>(props: QueueProps<H, S>) => (event: valibot.Input<S> | valibot.Input<S>[] | {
11333
11333
  Records: {
11334
11334
  body: string | valibot.Input<S>;
11335
11335
  }[];
@@ -11340,7 +11340,7 @@ type CronProps<H extends Handler<S>, S extends BaseSchema> = {
11340
11340
  schema?: S;
11341
11341
  logger?: Loggers;
11342
11342
  };
11343
- 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>>;
11343
+ declare const cron: <H extends Handler<S, unknown>, S extends BaseSchema<any, any>>(props: CronProps<H, S>) => (event: _awsless_lambda.Input<S>, context?: _awsless_lambda.LambdaContext | undefined) => Promise<ReturnType<H>>;
11344
11344
 
11345
11345
  interface FunctionMock {
11346
11346
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.116",
3
+ "version": "0.0.118",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "peerDependencies": {
27
- "@awsless/lambda": "^0.0.14",
27
+ "@awsless/lambda": "^0.0.15",
28
28
  "@awsless/redis": "^0.0.8",
29
29
  "@awsless/sns": "^0.0.7",
30
30
  "@awsless/sqs": "^0.0.7",
@@ -78,7 +78,7 @@
78
78
  "vitest": "^0.34.6",
79
79
  "wrap-ansi": "^8.1.0",
80
80
  "zod": "^3.21.4",
81
- "@awsless/graphql": "^0.0.3",
81
+ "@awsless/graphql": "^0.0.5",
82
82
  "@awsless/code": "^0.0.10"
83
83
  },
84
84
  "scripts": {