-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(parser): add parser subpath exports to package.json (#2179)
* add exports and type version to package json, including index.js * use index.js as import for coverage * use package lock from main * fix envelope path and add types to exports * use explicit exports instead of * * import type * make export types explicit * adjust imports in tests for coverage, removed unused exports * remove duplicate imports
- Loading branch information
Showing
39 changed files
with
4,029 additions
and
2,366 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export { apiGatewayEnvelope } from './apigw.js'; | ||
export { apiGatewayV2Envelope } from './apigwv2.js'; | ||
export { cloudWatchEnvelope } from './cloudwatch.js'; | ||
export { dynamoDDStreamEnvelope } from './dynamodb.js'; | ||
export { eventBridgeEnvelope } from './event-bridge.js'; | ||
export { kafkaEnvelope } from './kafka.js'; | ||
export { kinesisEnvelope } from './kinesis.js'; | ||
export { kinesisFirehoseEnvelope } from './kinesis-firehose.js'; | ||
export { lambdaFunctionUrlEnvelope } from './lambda.js'; | ||
export { snsEnvelope, snsSqsEnvelope } from './sns.js'; | ||
export { sqsEnvelope } from './sqs.js'; | ||
export { vpcLatticeEnvelope } from './vpc-lattice.js'; | ||
export { vpcLatticeV2Envelope } from './vpc-latticev2.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { parser } from './parser.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export { AlbSchema, AlbMultiValueHeadersSchema } from './alb.js'; | ||
export { APIGatewayProxyEventSchema } from './apigw.js'; | ||
export { APIGatewayProxyEventV2Schema } from './apigwv2.js'; | ||
export { | ||
CloudFormationCustomResourceCreateSchema, | ||
CloudFormationCustomResourceDeleteSchema, | ||
CloudFormationCustomResourceUpdateSchema, | ||
} from './cloudformation-custom-resource.js'; | ||
export { | ||
CloudWatchLogEventSchema, | ||
CloudWatchLogsDecodeSchema, | ||
CloudWatchLogsSchema, | ||
} from './cloudwatch.js'; | ||
export { DynamoDBStreamSchema } from './dynamodb.js'; | ||
export { EventBridgeSchema } from './eventbridge.js'; | ||
export { KafkaMskEventSchema, KafkaSelfManagedEventSchema } from './kafka.js'; | ||
export { KinesisDataStreamSchema } from './kinesis.js'; | ||
export { | ||
KinesisFirehoseSchema, | ||
KinesisFirehoseSqsSchema, | ||
} from './kinesis-firehose.js'; | ||
export { LambdaFunctionUrlSchema } from './lambda.js'; | ||
export { | ||
S3SqsEventNotificationSchema, | ||
S3EventNotificationEventBridgeSchema, | ||
S3ObjectLambdaEventSchema, | ||
S3Schema, | ||
} from './s3.js'; | ||
export { SesSchema } from './ses.js'; | ||
export { SnsSchema } from './sns.js'; | ||
export { SqsSchema } from './sqs.js'; | ||
export { VpcLatticeSchema } from './vpc-lattice.js'; | ||
export { VpcLatticeV2Schema } from './vpc-latticev2.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import type { ZodSchema } from 'zod'; | ||
import { Envelope } from './envelope.js'; | ||
|
||
type ParserOptions<S extends ZodSchema> = { | ||
export type ParserOptions<S extends ZodSchema> = { | ||
schema: S; | ||
envelope?: Envelope; | ||
}; | ||
|
||
export { type ParserOptions }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export type { ParserOptions } from './ParserOptions.js'; | ||
export type { Envelope } from './envelope.js'; | ||
|
||
export type { | ||
ALBEvent, | ||
APIGatewayProxyEvent, | ||
ALBMultiValueHeadersEvent, | ||
APIGatewayProxyEventV2, | ||
S3Event, | ||
S3EventNotificationEventBridge, | ||
S3SqsEventNotification, | ||
SnsEvent, | ||
SqsEvent, | ||
DynamoDBStreamEvent, | ||
CloudWatchLogsEvent, | ||
CloudFormationCustomResourceCreateEvent, | ||
CloudFormationCustomResourceDeleteEvent, | ||
CloudFormationCustomResourceUpdateEvent, | ||
EventBridgeEvent, | ||
KafkaSelfManagedEvent, | ||
KafkaMskEvent, | ||
KinesisDataStreamEvent, | ||
KinesisDataStreamRecord, | ||
KinesisDataStreamRecordPayload, | ||
KinesisFireHoseEvent, | ||
KinesisFireHoseSqsEvent, | ||
LambdaFunctionUrlEvent, | ||
SesEvent, | ||
VpcLatticeEvent, | ||
VpcLatticeEventV2, | ||
} from './schema.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.