-
Notifications
You must be signed in to change notification settings - Fork 156
chore(parser): add parser subpath exports to package.json #2179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
91c47b2
add exports and type version to package json, including index.js
am29d 4db17fe
use index.js as import for coverage
am29d a2b8eaf
use package lock from main
am29d 935dd7a
fix envelope path and add types to exports
am29d f0f2ad5
use explicit exports instead of *
am29d a861c0b
import type
am29d 089a41b
make export types explicit
am29d 125bcc1
adjust imports in tests for coverage, removed unused exports
am29d cf26f0e
remove duplicate imports
am29d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.