boltdocs 2.9.1 → 2.9.3
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/adapters-HVuXENAe.mjs +6 -0
- package/dist/adapters-uGz-UKQa.cjs +6 -0
- package/dist/client/index.cjs +136 -125
- package/dist/client/index.js +136 -125
- package/dist/client/mdx.cjs +1 -1
- package/dist/client/mdx.js +1 -1
- package/dist/client/primitives.cjs +1 -1
- package/dist/client/primitives.js +1 -1
- package/dist/config-BCqkPkjC.mjs +7 -0
- package/dist/{config-GPVEdeon.mjs → config-BPWGa2W3.mjs} +1 -1
- package/dist/{config-kIQOJHXC.cjs → config-CnmfjOE4.cjs} +1 -1
- package/dist/config-D7ERJhqe.cjs +7 -0
- package/dist/{csp-RJyh0nHV.mjs → csp-DtM6q2gZ.mjs} +1 -1
- package/dist/{doctor-DzEgMMRo.cjs → doctor-A17UhTRn.cjs} +1 -1
- package/dist/{doctor-D8fl3Sbg.cjs → doctor-BL6c8x2Q.cjs} +1 -1
- package/dist/{doctor-C19DsI1e.mjs → doctor-Bc-Tx_md.mjs} +1 -1
- package/dist/{headers-HD_qTVVW.mjs → headers-DK0Hw7iB.mjs} +1 -1
- package/dist/{image-CjYu9Eml.js → image-BCDyLHyD.js} +1 -4
- package/dist/{image-B9YA_oQ_.cjs → image-DWdmichO.cjs} +1 -4
- package/dist/index-ZqgZUvwp.d.mts +274 -0
- package/dist/index-aWC0KjDF.d.cts +274 -0
- package/dist/{mdx-WXjAMS8Y.cjs → mdx-9QJoSITt.cjs} +1 -1
- package/dist/{mdx-Cy_c2zio.js → mdx-DFbspTP9.js} +1 -1
- package/dist/node/cli-entry.cjs +3 -3
- package/dist/node/cli-entry.mjs +3 -3
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.d.cts +1 -271
- package/dist/node/index.d.mts +2 -273
- package/dist/node/index.mjs +1 -1
- package/dist/node/routes/worker.cjs +1 -1
- package/dist/node/routes/worker.mjs +1 -1
- package/dist/node-JQ6C-CBi.mjs +105 -0
- package/dist/node-cZgna618.cjs +105 -0
- package/dist/{package-ByXh2JHp.cjs → package-BlYktJR3.cjs} +1 -1
- package/dist/{package-DQBAV8uo.mjs → package-Di7alQGe.mjs} +1 -1
- package/dist/{parser-B8naUXl2.cjs → parser-CHsNUEhU.cjs} +1 -1
- package/dist/{parser-IR9tfyGE.mjs → parser-Ww0eOqs7.mjs} +1 -1
- package/dist/plugin-BCCYSeId.cjs +61 -0
- package/dist/plugin-Bu75gPjx.mjs +61 -0
- package/dist/{routes-DX8ryKjs.cjs → routes-B2joDAlC.cjs} +1 -1
- package/dist/{routes-DgTQxpZi.cjs → routes-CyKj3dzf.cjs} +1 -1
- package/dist/{routes-TUSK5wD7.mjs → routes-DMBny9t9.mjs} +1 -1
- package/dist/{routes-DR13Y1em.mjs → routes-DZjS8QSV.mjs} +1 -1
- package/dist/server/index.cjs +6 -0
- package/dist/server/index.d.cts +3 -0
- package/dist/server/index.d.mts +3 -0
- package/dist/server/index.mjs +6 -0
- package/package.json +6 -1
- package/dist/config-BqZUYono.cjs +0 -7
- package/dist/config-DBKBEj3j.mjs +0 -7
- package/dist/node-B7qbjtLl.mjs +0 -105
- package/dist/node-Dj3-2YYP.cjs +0 -105
- package/dist/plugin-BkquLpOI.mjs +0 -61
- package/dist/plugin-CL1LsQXk.cjs +0 -61
- /package/dist/{csp-CBysWlAf.cjs → csp-DbbF3R9Q.cjs} +0 -0
- /package/dist/{generator-B6lrnDZ-.mjs → generator-BaSvGlxR.mjs} +0 -0
- /package/dist/{generator-DtUU3Cfk.cjs → generator-DsajVrDx.cjs} +0 -0
- /package/dist/{headers-BJ4jJAhU.cjs → headers-DuCAOgYX.cjs} +0 -0
- /package/dist/{meta-loader-CxAoQthW.mjs → meta-loader-CD3Yptr5.mjs} +0 -0
- /package/dist/{meta-loader-C9MKjAs0.cjs → meta-loader-CjphwtS7.cjs} +0 -0
- /package/dist/{parser-D4oEyuP-.cjs → parser-CLtGv_XH.cjs} +0 -0
- /package/dist/{worker-pool-m81xuM5v.cjs → worker-pool-CgOMozUz.cjs} +0 -0
- /package/dist/{worker-pool-C6r6V05j.mjs → worker-pool-v6tW2MDQ.mjs} +0 -0
package/dist/node/index.d.cts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
|
|
2
|
+
import { i as handleVercelFeedback, n as handleWebFeedback, r as handleNetlifyFeedback, t as handleAwsFeedback } from "../index-aWC0KjDF.cjs";
|
|
2
3
|
import { InlineConfig, Plugin } from "vite";
|
|
3
4
|
import { EXIT, SKIP } from "unist-util-visit";
|
|
4
|
-
import { VercelRequest, VercelResponse } from "@vercel/node";
|
|
5
|
-
import { HandlerEvent, HandlerResponse } from "@netlify/functions";
|
|
6
|
-
import { Writable } from "node:stream";
|
|
7
5
|
//#region src/shared/types.d.ts
|
|
8
6
|
/**
|
|
9
7
|
* Represents a single social link in the configuration.
|
|
@@ -729,274 +727,6 @@ declare const MDX_NODES: {
|
|
|
729
727
|
//#region src/node/plugins/index.d.ts
|
|
730
728
|
declare function createPlugin(plugin: SecureBoltdocsPlugin): SecureBoltdocsPlugin;
|
|
731
729
|
//#endregion
|
|
732
|
-
//#region src/node/feedback/adapters/vercel.d.ts
|
|
733
|
-
declare function handleVercelFeedback(req: VercelRequest, res: VercelResponse): Promise<VercelResponse | undefined>;
|
|
734
|
-
//#endregion
|
|
735
|
-
//#region src/node/feedback/adapters/netlify.d.ts
|
|
736
|
-
declare function handleNetlifyFeedback(event: HandlerEvent, env?: Record<string, string | undefined>): Promise<HandlerResponse>;
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region src/node/feedback/adapters/web.d.ts
|
|
739
|
-
declare function handleWebFeedback(request: Request, env?: Record<string, string | undefined>): Promise<Response>;
|
|
740
|
-
//#endregion
|
|
741
|
-
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/common/api-gateway.d.ts
|
|
742
|
-
// Default authorizer type, prefer using a specific type with the "...WithAuthorizer..." variant types.
|
|
743
|
-
// Note that this doesn't have to be a context from a custom lambda outhorizer, AWS also has a cognito
|
|
744
|
-
// authorizer type and could add more, so the property won't always be a string.
|
|
745
|
-
type APIGatewayEventDefaultAuthorizerContext = undefined | null | {
|
|
746
|
-
[name: string]: any;
|
|
747
|
-
};
|
|
748
|
-
// The requestContext property of both request authorizer and proxy integration events.
|
|
749
|
-
interface APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext> {
|
|
750
|
-
accountId: string;
|
|
751
|
-
apiId: string; // This one is a bit confusing: it is not actually present in authorizer calls
|
|
752
|
-
// and proxy calls without an authorizer. We model this by allowing undefined in the type,
|
|
753
|
-
// since it ends up the same and avoids breaking users that are testing the property.
|
|
754
|
-
// This lets us allow parameterizing the authorizer for proxy events that know what authorizer
|
|
755
|
-
// context values they have.
|
|
756
|
-
authorizer: TAuthorizerContext;
|
|
757
|
-
connectedAt?: number | undefined;
|
|
758
|
-
connectionId?: string | undefined;
|
|
759
|
-
domainName?: string | undefined;
|
|
760
|
-
domainPrefix?: string | undefined;
|
|
761
|
-
eventType?: string | undefined;
|
|
762
|
-
extendedRequestId?: string | undefined;
|
|
763
|
-
protocol: string;
|
|
764
|
-
httpMethod: string;
|
|
765
|
-
identity: APIGatewayEventIdentity;
|
|
766
|
-
messageDirection?: string | undefined;
|
|
767
|
-
messageId?: string | null | undefined;
|
|
768
|
-
path: string;
|
|
769
|
-
stage: string;
|
|
770
|
-
requestId: string;
|
|
771
|
-
requestTime?: string | undefined;
|
|
772
|
-
requestTimeEpoch: number;
|
|
773
|
-
resourceId: string;
|
|
774
|
-
resourcePath: string;
|
|
775
|
-
routeKey?: string | undefined;
|
|
776
|
-
}
|
|
777
|
-
interface APIGatewayEventClientCertificate {
|
|
778
|
-
clientCertPem: string;
|
|
779
|
-
serialNumber: string;
|
|
780
|
-
subjectDN: string;
|
|
781
|
-
issuerDN: string;
|
|
782
|
-
validity: {
|
|
783
|
-
notAfter: string;
|
|
784
|
-
notBefore: string;
|
|
785
|
-
};
|
|
786
|
-
}
|
|
787
|
-
interface APIGatewayEventIdentity {
|
|
788
|
-
accessKey: string | null;
|
|
789
|
-
accountId: string | null;
|
|
790
|
-
apiKey: string | null;
|
|
791
|
-
apiKeyId: string | null;
|
|
792
|
-
caller: string | null;
|
|
793
|
-
clientCert: APIGatewayEventClientCertificate | null;
|
|
794
|
-
cognitoAuthenticationProvider: string | null;
|
|
795
|
-
cognitoAuthenticationType: string | null;
|
|
796
|
-
cognitoIdentityId: string | null;
|
|
797
|
-
cognitoIdentityPoolId: string | null;
|
|
798
|
-
principalOrgId: string | null;
|
|
799
|
-
sourceIp: string;
|
|
800
|
-
user: string | null;
|
|
801
|
-
userAgent: string | null;
|
|
802
|
-
userArn: string | null;
|
|
803
|
-
vpcId?: string | undefined;
|
|
804
|
-
vpceId?: string | undefined;
|
|
805
|
-
}
|
|
806
|
-
//#endregion
|
|
807
|
-
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.ts
|
|
808
|
-
/**
|
|
809
|
-
* {@link Handler} context parameter.
|
|
810
|
-
* See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}.
|
|
811
|
-
*/
|
|
812
|
-
interface Context {
|
|
813
|
-
callbackWaitsForEmptyEventLoop: boolean;
|
|
814
|
-
functionName: string;
|
|
815
|
-
functionVersion: string;
|
|
816
|
-
invokedFunctionArn: string;
|
|
817
|
-
memoryLimitInMB: string;
|
|
818
|
-
awsRequestId: string;
|
|
819
|
-
logGroupName: string;
|
|
820
|
-
logStreamName: string;
|
|
821
|
-
identity?: CognitoIdentity | undefined;
|
|
822
|
-
clientContext?: ClientContext | undefined;
|
|
823
|
-
tenantId?: string | undefined;
|
|
824
|
-
getRemainingTimeInMillis(): number; // Functions for compatibility with earlier Node.js Runtime v0.10.42
|
|
825
|
-
// No longer documented, so they are deprecated, but they still work
|
|
826
|
-
// as of the 12.x runtime, so they are not removed from the types.
|
|
827
|
-
/** @deprecated Use handler callback or promise result */
|
|
828
|
-
done(error?: Error, result?: any): void;
|
|
829
|
-
/** @deprecated Use handler callback with first argument or reject a promise result */
|
|
830
|
-
fail(error: Error | string): void;
|
|
831
|
-
/** @deprecated Use handler callback with second argument or resolve a promise result */
|
|
832
|
-
succeed(messageOrObject: any): void; // Unclear what behavior this is supposed to have, I couldn't find any still extant reference,
|
|
833
|
-
// and it behaves like the above, ignoring the object parameter.
|
|
834
|
-
/** @deprecated Use handler callback or promise result */
|
|
835
|
-
succeed(message: string, object: any): void;
|
|
836
|
-
}
|
|
837
|
-
interface CognitoIdentity {
|
|
838
|
-
cognitoIdentityId: string;
|
|
839
|
-
cognitoIdentityPoolId: string;
|
|
840
|
-
}
|
|
841
|
-
interface ClientContext {
|
|
842
|
-
client: ClientContextClient;
|
|
843
|
-
custom?: any;
|
|
844
|
-
env: ClientContextEnv;
|
|
845
|
-
}
|
|
846
|
-
interface ClientContextClient {
|
|
847
|
-
installationId: string;
|
|
848
|
-
appTitle: string;
|
|
849
|
-
appVersionName: string;
|
|
850
|
-
appVersionCode: string;
|
|
851
|
-
appPackageName: string;
|
|
852
|
-
}
|
|
853
|
-
interface ClientContextEnv {
|
|
854
|
-
platformVersion: string;
|
|
855
|
-
platform: string;
|
|
856
|
-
make: string;
|
|
857
|
-
model: string;
|
|
858
|
-
locale: string;
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* Interface for using response streaming from AWS Lambda.
|
|
862
|
-
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
863
|
-
*
|
|
864
|
-
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
865
|
-
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
866
|
-
*
|
|
867
|
-
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
868
|
-
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
869
|
-
*
|
|
870
|
-
* @example <caption>Writing to the response stream</caption>
|
|
871
|
-
* import 'aws-lambda';
|
|
872
|
-
*
|
|
873
|
-
* export const handler = awslambda.streamifyResponse(
|
|
874
|
-
* async (event, responseStream, context) => {
|
|
875
|
-
* responseStream.setContentType("text/plain");
|
|
876
|
-
* responseStream.write("Hello, world!");
|
|
877
|
-
* responseStream.end();
|
|
878
|
-
* }
|
|
879
|
-
* );
|
|
880
|
-
*
|
|
881
|
-
* @example <caption>Using pipeline</caption>
|
|
882
|
-
* import 'aws-lambda';
|
|
883
|
-
* import { Readable } from 'stream';
|
|
884
|
-
* import { pipeline } from 'stream/promises';
|
|
885
|
-
* import zlib from 'zlib';
|
|
886
|
-
*
|
|
887
|
-
* export const handler = awslambda.streamifyResponse(
|
|
888
|
-
* async (event, responseStream, context) => {
|
|
889
|
-
* // As an example, convert event to a readable stream.
|
|
890
|
-
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
891
|
-
*
|
|
892
|
-
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
893
|
-
* }
|
|
894
|
-
* );
|
|
895
|
-
*/
|
|
896
|
-
type StreamifyHandler<TEvent = any, TResult = any> = (event: TEvent, responseStream: awslambda.HttpResponseStream, context: Context) => TResult | Promise<TResult>;
|
|
897
|
-
declare global {
|
|
898
|
-
namespace awslambda {
|
|
899
|
-
class HttpResponseStream extends Writable {
|
|
900
|
-
static from(writable: Writable, metadata: Record<string, unknown>): HttpResponseStream;
|
|
901
|
-
setContentType: (contentType: string) => void;
|
|
902
|
-
}
|
|
903
|
-
/**
|
|
904
|
-
* Decorator for using response streaming from AWS Lambda.
|
|
905
|
-
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
906
|
-
*
|
|
907
|
-
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
908
|
-
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
909
|
-
*
|
|
910
|
-
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
911
|
-
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
912
|
-
*
|
|
913
|
-
* @example <caption>Writing to the response stream</caption>
|
|
914
|
-
* import 'aws-lambda';
|
|
915
|
-
*
|
|
916
|
-
* export const handler = awslambda.streamifyResponse(
|
|
917
|
-
* async (event, responseStream, context) => {
|
|
918
|
-
* responseStream.setContentType("text/plain");
|
|
919
|
-
* responseStream.write("Hello, world!");
|
|
920
|
-
* responseStream.end();
|
|
921
|
-
* }
|
|
922
|
-
* );
|
|
923
|
-
*
|
|
924
|
-
* @example <caption>Using pipeline</caption>
|
|
925
|
-
* import 'aws-lambda';
|
|
926
|
-
* import { Readable } from 'stream';
|
|
927
|
-
* import { pipeline } from 'stream/promises';
|
|
928
|
-
* import zlib from 'zlib';
|
|
929
|
-
*
|
|
930
|
-
* export const handler = awslambda.streamifyResponse(
|
|
931
|
-
* async (event, responseStream, context) => {
|
|
932
|
-
* // As an example, convert event to a readable stream.
|
|
933
|
-
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
934
|
-
*
|
|
935
|
-
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
936
|
-
* }
|
|
937
|
-
* );
|
|
938
|
-
*/
|
|
939
|
-
function streamifyResponse<TEvent = any, TResult = void>(handler: StreamifyHandler<TEvent, TResult>): StreamifyHandler<TEvent, TResult>;
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
//#endregion
|
|
943
|
-
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts
|
|
944
|
-
/**
|
|
945
|
-
* Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
|
|
946
|
-
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
947
|
-
*/
|
|
948
|
-
type APIGatewayProxyEvent = APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>;
|
|
949
|
-
interface APIGatewayProxyEventHeaders {
|
|
950
|
-
[name: string]: string | undefined;
|
|
951
|
-
}
|
|
952
|
-
interface APIGatewayProxyEventMultiValueHeaders {
|
|
953
|
-
[name: string]: string[] | undefined;
|
|
954
|
-
}
|
|
955
|
-
interface APIGatewayProxyEventPathParameters {
|
|
956
|
-
[name: string]: string | undefined;
|
|
957
|
-
}
|
|
958
|
-
interface APIGatewayProxyEventQueryStringParameters {
|
|
959
|
-
[name: string]: string | undefined;
|
|
960
|
-
}
|
|
961
|
-
interface APIGatewayProxyEventMultiValueQueryStringParameters {
|
|
962
|
-
[name: string]: string[] | undefined;
|
|
963
|
-
}
|
|
964
|
-
interface APIGatewayProxyEventStageVariables {
|
|
965
|
-
[name: string]: string | undefined;
|
|
966
|
-
}
|
|
967
|
-
interface APIGatewayProxyEventBase<TAuthorizerContext> {
|
|
968
|
-
body: string | null;
|
|
969
|
-
headers: APIGatewayProxyEventHeaders;
|
|
970
|
-
multiValueHeaders: APIGatewayProxyEventMultiValueHeaders;
|
|
971
|
-
httpMethod: string;
|
|
972
|
-
isBase64Encoded: boolean;
|
|
973
|
-
path: string;
|
|
974
|
-
pathParameters: APIGatewayProxyEventPathParameters | null;
|
|
975
|
-
queryStringParameters: APIGatewayProxyEventQueryStringParameters | null;
|
|
976
|
-
multiValueQueryStringParameters: APIGatewayProxyEventMultiValueQueryStringParameters | null;
|
|
977
|
-
stageVariables: APIGatewayProxyEventStageVariables | null;
|
|
978
|
-
requestContext: APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext>;
|
|
979
|
-
resource: string;
|
|
980
|
-
}
|
|
981
|
-
/**
|
|
982
|
-
* Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
|
|
983
|
-
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
984
|
-
*/
|
|
985
|
-
interface APIGatewayProxyResult {
|
|
986
|
-
statusCode: number;
|
|
987
|
-
headers?: {
|
|
988
|
-
[header: string]: boolean | number | string;
|
|
989
|
-
} | undefined;
|
|
990
|
-
multiValueHeaders?: {
|
|
991
|
-
[header: string]: Array<boolean | number | string>;
|
|
992
|
-
} | undefined;
|
|
993
|
-
body: string;
|
|
994
|
-
isBase64Encoded?: boolean | undefined;
|
|
995
|
-
}
|
|
996
|
-
//#endregion
|
|
997
|
-
//#region src/node/feedback/adapters/aws.d.ts
|
|
998
|
-
declare function handleAwsFeedback(event: APIGatewayProxyEvent, env?: Record<string, string | undefined>): Promise<APIGatewayProxyResult>;
|
|
999
|
-
//#endregion
|
|
1000
730
|
//#region src/node/feedback/handler.d.ts
|
|
1001
731
|
interface FeedbackHandlerOptions {
|
|
1002
732
|
owner?: string;
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { i as handleVercelFeedback, n as handleWebFeedback, r as handleNetlifyFeedback, t as handleAwsFeedback } from "../index-ZqgZUvwp.mjs";
|
|
2
3
|
import { z } from "zod";
|
|
3
|
-
import { InlineConfig, Plugin } from "vite";
|
|
4
4
|
import { EXIT, SKIP } from "unist-util-visit";
|
|
5
|
-
import {
|
|
6
|
-
import { HandlerEvent, HandlerResponse } from "@netlify/functions";
|
|
7
|
-
import { Writable } from "node:stream";
|
|
8
|
-
|
|
5
|
+
import { InlineConfig, Plugin } from "vite";
|
|
9
6
|
//#region src/shared/types.d.ts
|
|
10
7
|
/**
|
|
11
8
|
* Represents a single social link in the configuration.
|
|
@@ -731,274 +728,6 @@ declare const MDX_NODES: {
|
|
|
731
728
|
//#region src/node/plugins/index.d.ts
|
|
732
729
|
declare function createPlugin(plugin: SecureBoltdocsPlugin): SecureBoltdocsPlugin;
|
|
733
730
|
//#endregion
|
|
734
|
-
//#region src/node/feedback/adapters/vercel.d.ts
|
|
735
|
-
declare function handleVercelFeedback(req: VercelRequest, res: VercelResponse): Promise<VercelResponse | undefined>;
|
|
736
|
-
//#endregion
|
|
737
|
-
//#region src/node/feedback/adapters/netlify.d.ts
|
|
738
|
-
declare function handleNetlifyFeedback(event: HandlerEvent, env?: Record<string, string | undefined>): Promise<HandlerResponse>;
|
|
739
|
-
//#endregion
|
|
740
|
-
//#region src/node/feedback/adapters/web.d.ts
|
|
741
|
-
declare function handleWebFeedback(request: Request, env?: Record<string, string | undefined>): Promise<Response>;
|
|
742
|
-
//#endregion
|
|
743
|
-
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/common/api-gateway.d.ts
|
|
744
|
-
// Default authorizer type, prefer using a specific type with the "...WithAuthorizer..." variant types.
|
|
745
|
-
// Note that this doesn't have to be a context from a custom lambda outhorizer, AWS also has a cognito
|
|
746
|
-
// authorizer type and could add more, so the property won't always be a string.
|
|
747
|
-
type APIGatewayEventDefaultAuthorizerContext = undefined | null | {
|
|
748
|
-
[name: string]: any;
|
|
749
|
-
};
|
|
750
|
-
// The requestContext property of both request authorizer and proxy integration events.
|
|
751
|
-
interface APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext> {
|
|
752
|
-
accountId: string;
|
|
753
|
-
apiId: string; // This one is a bit confusing: it is not actually present in authorizer calls
|
|
754
|
-
// and proxy calls without an authorizer. We model this by allowing undefined in the type,
|
|
755
|
-
// since it ends up the same and avoids breaking users that are testing the property.
|
|
756
|
-
// This lets us allow parameterizing the authorizer for proxy events that know what authorizer
|
|
757
|
-
// context values they have.
|
|
758
|
-
authorizer: TAuthorizerContext;
|
|
759
|
-
connectedAt?: number | undefined;
|
|
760
|
-
connectionId?: string | undefined;
|
|
761
|
-
domainName?: string | undefined;
|
|
762
|
-
domainPrefix?: string | undefined;
|
|
763
|
-
eventType?: string | undefined;
|
|
764
|
-
extendedRequestId?: string | undefined;
|
|
765
|
-
protocol: string;
|
|
766
|
-
httpMethod: string;
|
|
767
|
-
identity: APIGatewayEventIdentity;
|
|
768
|
-
messageDirection?: string | undefined;
|
|
769
|
-
messageId?: string | null | undefined;
|
|
770
|
-
path: string;
|
|
771
|
-
stage: string;
|
|
772
|
-
requestId: string;
|
|
773
|
-
requestTime?: string | undefined;
|
|
774
|
-
requestTimeEpoch: number;
|
|
775
|
-
resourceId: string;
|
|
776
|
-
resourcePath: string;
|
|
777
|
-
routeKey?: string | undefined;
|
|
778
|
-
}
|
|
779
|
-
interface APIGatewayEventClientCertificate {
|
|
780
|
-
clientCertPem: string;
|
|
781
|
-
serialNumber: string;
|
|
782
|
-
subjectDN: string;
|
|
783
|
-
issuerDN: string;
|
|
784
|
-
validity: {
|
|
785
|
-
notAfter: string;
|
|
786
|
-
notBefore: string;
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
interface APIGatewayEventIdentity {
|
|
790
|
-
accessKey: string | null;
|
|
791
|
-
accountId: string | null;
|
|
792
|
-
apiKey: string | null;
|
|
793
|
-
apiKeyId: string | null;
|
|
794
|
-
caller: string | null;
|
|
795
|
-
clientCert: APIGatewayEventClientCertificate | null;
|
|
796
|
-
cognitoAuthenticationProvider: string | null;
|
|
797
|
-
cognitoAuthenticationType: string | null;
|
|
798
|
-
cognitoIdentityId: string | null;
|
|
799
|
-
cognitoIdentityPoolId: string | null;
|
|
800
|
-
principalOrgId: string | null;
|
|
801
|
-
sourceIp: string;
|
|
802
|
-
user: string | null;
|
|
803
|
-
userAgent: string | null;
|
|
804
|
-
userArn: string | null;
|
|
805
|
-
vpcId?: string | undefined;
|
|
806
|
-
vpceId?: string | undefined;
|
|
807
|
-
}
|
|
808
|
-
//#endregion
|
|
809
|
-
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.ts
|
|
810
|
-
/**
|
|
811
|
-
* {@link Handler} context parameter.
|
|
812
|
-
* See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}.
|
|
813
|
-
*/
|
|
814
|
-
interface Context {
|
|
815
|
-
callbackWaitsForEmptyEventLoop: boolean;
|
|
816
|
-
functionName: string;
|
|
817
|
-
functionVersion: string;
|
|
818
|
-
invokedFunctionArn: string;
|
|
819
|
-
memoryLimitInMB: string;
|
|
820
|
-
awsRequestId: string;
|
|
821
|
-
logGroupName: string;
|
|
822
|
-
logStreamName: string;
|
|
823
|
-
identity?: CognitoIdentity | undefined;
|
|
824
|
-
clientContext?: ClientContext | undefined;
|
|
825
|
-
tenantId?: string | undefined;
|
|
826
|
-
getRemainingTimeInMillis(): number; // Functions for compatibility with earlier Node.js Runtime v0.10.42
|
|
827
|
-
// No longer documented, so they are deprecated, but they still work
|
|
828
|
-
// as of the 12.x runtime, so they are not removed from the types.
|
|
829
|
-
/** @deprecated Use handler callback or promise result */
|
|
830
|
-
done(error?: Error, result?: any): void;
|
|
831
|
-
/** @deprecated Use handler callback with first argument or reject a promise result */
|
|
832
|
-
fail(error: Error | string): void;
|
|
833
|
-
/** @deprecated Use handler callback with second argument or resolve a promise result */
|
|
834
|
-
succeed(messageOrObject: any): void; // Unclear what behavior this is supposed to have, I couldn't find any still extant reference,
|
|
835
|
-
// and it behaves like the above, ignoring the object parameter.
|
|
836
|
-
/** @deprecated Use handler callback or promise result */
|
|
837
|
-
succeed(message: string, object: any): void;
|
|
838
|
-
}
|
|
839
|
-
interface CognitoIdentity {
|
|
840
|
-
cognitoIdentityId: string;
|
|
841
|
-
cognitoIdentityPoolId: string;
|
|
842
|
-
}
|
|
843
|
-
interface ClientContext {
|
|
844
|
-
client: ClientContextClient;
|
|
845
|
-
custom?: any;
|
|
846
|
-
env: ClientContextEnv;
|
|
847
|
-
}
|
|
848
|
-
interface ClientContextClient {
|
|
849
|
-
installationId: string;
|
|
850
|
-
appTitle: string;
|
|
851
|
-
appVersionName: string;
|
|
852
|
-
appVersionCode: string;
|
|
853
|
-
appPackageName: string;
|
|
854
|
-
}
|
|
855
|
-
interface ClientContextEnv {
|
|
856
|
-
platformVersion: string;
|
|
857
|
-
platform: string;
|
|
858
|
-
make: string;
|
|
859
|
-
model: string;
|
|
860
|
-
locale: string;
|
|
861
|
-
}
|
|
862
|
-
/**
|
|
863
|
-
* Interface for using response streaming from AWS Lambda.
|
|
864
|
-
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
865
|
-
*
|
|
866
|
-
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
867
|
-
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
868
|
-
*
|
|
869
|
-
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
870
|
-
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
871
|
-
*
|
|
872
|
-
* @example <caption>Writing to the response stream</caption>
|
|
873
|
-
* import 'aws-lambda';
|
|
874
|
-
*
|
|
875
|
-
* export const handler = awslambda.streamifyResponse(
|
|
876
|
-
* async (event, responseStream, context) => {
|
|
877
|
-
* responseStream.setContentType("text/plain");
|
|
878
|
-
* responseStream.write("Hello, world!");
|
|
879
|
-
* responseStream.end();
|
|
880
|
-
* }
|
|
881
|
-
* );
|
|
882
|
-
*
|
|
883
|
-
* @example <caption>Using pipeline</caption>
|
|
884
|
-
* import 'aws-lambda';
|
|
885
|
-
* import { Readable } from 'stream';
|
|
886
|
-
* import { pipeline } from 'stream/promises';
|
|
887
|
-
* import zlib from 'zlib';
|
|
888
|
-
*
|
|
889
|
-
* export const handler = awslambda.streamifyResponse(
|
|
890
|
-
* async (event, responseStream, context) => {
|
|
891
|
-
* // As an example, convert event to a readable stream.
|
|
892
|
-
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
893
|
-
*
|
|
894
|
-
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
895
|
-
* }
|
|
896
|
-
* );
|
|
897
|
-
*/
|
|
898
|
-
type StreamifyHandler<TEvent = any, TResult = any> = (event: TEvent, responseStream: awslambda.HttpResponseStream, context: Context) => TResult | Promise<TResult>;
|
|
899
|
-
declare global {
|
|
900
|
-
namespace awslambda {
|
|
901
|
-
class HttpResponseStream extends Writable {
|
|
902
|
-
static from(writable: Writable, metadata: Record<string, unknown>): HttpResponseStream;
|
|
903
|
-
setContentType: (contentType: string) => void;
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* Decorator for using response streaming from AWS Lambda.
|
|
907
|
-
* To indicate to the runtime that Lambda should stream your function’s responses, you must wrap your function handler with the `awslambda.streamifyResponse()` decorator.
|
|
908
|
-
*
|
|
909
|
-
* The `streamifyResponse` decorator accepts the following additional parameter, `responseStream`, besides the default node handler parameters, `event`, and `context`.
|
|
910
|
-
* The new `responseStream` object provides a stream object that your function can write data to. Data written to this stream is sent immediately to the client. You can optionally set the Content-Type header of the response to pass additional metadata to your client about the contents of the stream.
|
|
911
|
-
*
|
|
912
|
-
* {@link https://aws.amazon.com/blogs/compute/introducing-aws-lambda-response-streaming/ AWS blog post}
|
|
913
|
-
* {@link https://docs.aws.amazon.com/lambda/latest/dg/config-rs-write-functions.html AWS documentation}
|
|
914
|
-
*
|
|
915
|
-
* @example <caption>Writing to the response stream</caption>
|
|
916
|
-
* import 'aws-lambda';
|
|
917
|
-
*
|
|
918
|
-
* export const handler = awslambda.streamifyResponse(
|
|
919
|
-
* async (event, responseStream, context) => {
|
|
920
|
-
* responseStream.setContentType("text/plain");
|
|
921
|
-
* responseStream.write("Hello, world!");
|
|
922
|
-
* responseStream.end();
|
|
923
|
-
* }
|
|
924
|
-
* );
|
|
925
|
-
*
|
|
926
|
-
* @example <caption>Using pipeline</caption>
|
|
927
|
-
* import 'aws-lambda';
|
|
928
|
-
* import { Readable } from 'stream';
|
|
929
|
-
* import { pipeline } from 'stream/promises';
|
|
930
|
-
* import zlib from 'zlib';
|
|
931
|
-
*
|
|
932
|
-
* export const handler = awslambda.streamifyResponse(
|
|
933
|
-
* async (event, responseStream, context) => {
|
|
934
|
-
* // As an example, convert event to a readable stream.
|
|
935
|
-
* const requestStream = Readable.from(Buffer.from(JSON.stringify(event)));
|
|
936
|
-
*
|
|
937
|
-
* await pipeline(requestStream, zlib.createGzip(), responseStream);
|
|
938
|
-
* }
|
|
939
|
-
* );
|
|
940
|
-
*/
|
|
941
|
-
function streamifyResponse<TEvent = any, TResult = void>(handler: StreamifyHandler<TEvent, TResult>): StreamifyHandler<TEvent, TResult>;
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
//#endregion
|
|
945
|
-
//#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts
|
|
946
|
-
/**
|
|
947
|
-
* Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
|
|
948
|
-
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
949
|
-
*/
|
|
950
|
-
type APIGatewayProxyEvent = APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>;
|
|
951
|
-
interface APIGatewayProxyEventHeaders {
|
|
952
|
-
[name: string]: string | undefined;
|
|
953
|
-
}
|
|
954
|
-
interface APIGatewayProxyEventMultiValueHeaders {
|
|
955
|
-
[name: string]: string[] | undefined;
|
|
956
|
-
}
|
|
957
|
-
interface APIGatewayProxyEventPathParameters {
|
|
958
|
-
[name: string]: string | undefined;
|
|
959
|
-
}
|
|
960
|
-
interface APIGatewayProxyEventQueryStringParameters {
|
|
961
|
-
[name: string]: string | undefined;
|
|
962
|
-
}
|
|
963
|
-
interface APIGatewayProxyEventMultiValueQueryStringParameters {
|
|
964
|
-
[name: string]: string[] | undefined;
|
|
965
|
-
}
|
|
966
|
-
interface APIGatewayProxyEventStageVariables {
|
|
967
|
-
[name: string]: string | undefined;
|
|
968
|
-
}
|
|
969
|
-
interface APIGatewayProxyEventBase<TAuthorizerContext> {
|
|
970
|
-
body: string | null;
|
|
971
|
-
headers: APIGatewayProxyEventHeaders;
|
|
972
|
-
multiValueHeaders: APIGatewayProxyEventMultiValueHeaders;
|
|
973
|
-
httpMethod: string;
|
|
974
|
-
isBase64Encoded: boolean;
|
|
975
|
-
path: string;
|
|
976
|
-
pathParameters: APIGatewayProxyEventPathParameters | null;
|
|
977
|
-
queryStringParameters: APIGatewayProxyEventQueryStringParameters | null;
|
|
978
|
-
multiValueQueryStringParameters: APIGatewayProxyEventMultiValueQueryStringParameters | null;
|
|
979
|
-
stageVariables: APIGatewayProxyEventStageVariables | null;
|
|
980
|
-
requestContext: APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext>;
|
|
981
|
-
resource: string;
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
|
|
985
|
-
* @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
|
|
986
|
-
*/
|
|
987
|
-
interface APIGatewayProxyResult {
|
|
988
|
-
statusCode: number;
|
|
989
|
-
headers?: {
|
|
990
|
-
[header: string]: boolean | number | string;
|
|
991
|
-
} | undefined;
|
|
992
|
-
multiValueHeaders?: {
|
|
993
|
-
[header: string]: Array<boolean | number | string>;
|
|
994
|
-
} | undefined;
|
|
995
|
-
body: string;
|
|
996
|
-
isBase64Encoded?: boolean | undefined;
|
|
997
|
-
}
|
|
998
|
-
//#endregion
|
|
999
|
-
//#region src/node/feedback/adapters/aws.d.ts
|
|
1000
|
-
declare function handleAwsFeedback(event: APIGatewayProxyEvent, env?: Record<string, string | undefined>): Promise<APIGatewayProxyResult>;
|
|
1001
|
-
//#endregion
|
|
1002
731
|
//#region src/node/feedback/handler.d.ts
|
|
1003
732
|
interface FeedbackHandlerOptions {
|
|
1004
733
|
owner?: string;
|
package/dist/node/index.mjs
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import{
|
|
6
|
+
import{C as e,D as t,E as n,O as r,T as i,_ as a,a as o,c as s,d as c,f as l,g as u,h as d,i as f,k as p,l as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,u as S,v as C,w,y as T}from"../node-JQ6C-CBi.mjs";import{f as E,u as D}from"../utils-DexBrwiP.mjs";import{a as O,n as k}from"../config-BCqkPkjC.mjs";import{a as A,n as j}from"../cache-CfhOTR3Q.mjs";import{o as M,r as N}from"../shiki-adapter-rQ087Lx3.mjs";import{t as P}from"../handler-CyIBbZdb.mjs";import{i as F,n as I,r as L,t as R}from"../adapters-HVuXENAe.mjs";export{j as AssetCache,w as BoltdocsPluginStore,f as EXIT,M as MDX_NODES,i as PluginCompatibilityError,n as PluginError,t as PluginHookError,T as PluginLifecycleManager,r as PluginValidationError,o as SKIP,_ as addNodeClass,b as createMdxAttribute,s as createMdxElement,y as createPlugin,m as createRehypeElement,g as createViteConfig,x as default,O as defineConfig,A as flushCache,p as generateEntryCode,S as getNodeProperty,R as handleAwsFeedback,P as handleFeedback,L as handleNetlifyFeedback,F as handleVercelFeedback,I as handleWebFeedback,c as hasNodeClass,D as normalizePath,N as parseMetaString,l as removeNodeClass,k as resolveConfig,E as sanitizeFilename,v as setNodeProperty,e as validatePlugins,h as visitMdxElements,d as visitNodes,u as visitRehypeElements,a as visitRemarkHeadings,C as visitRemarkLinks};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
require(`../../chunk-Ds5LZdWN.cjs`);const e=require(`../../parser-
|
|
6
|
+
require(`../../chunk-Ds5LZdWN.cjs`);const e=require(`../../parser-CLtGv_XH.cjs`);let t=require(`node:worker_threads`);if(!t.parentPort)throw Error(`This file must be run as a worker thread.`);t.parentPort.on(`message`,async n=>{if(n.type===`PARSE_FILE`)try{let r=await e.t(n.file,n.docsDir,n.basePath,n.config);t.parentPort?.postMessage({type:`SUCCESS`,file:n.file,result:r})}catch(e){t.parentPort?.postMessage({type:`ERROR`,file:n.file,error:e.message||`Unknown parsing error`})}});
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Copyright (c) 2026 Jesus Alcala
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import{n as e}from"../../parser-
|
|
6
|
+
import{n as e}from"../../parser-Ww0eOqs7.mjs";import{parentPort as t}from"node:worker_threads";if(!t)throw Error(`This file must be run as a worker thread.`);t.on(`message`,async n=>{if(n.type===`PARSE_FILE`)try{let r=await e(n.file,n.docsDir,n.basePath,n.config);t?.postMessage({type:`SUCCESS`,file:n.file,result:r})}catch(e){t?.postMessage({type:`ERROR`,file:n.file,error:e.message||`Unknown parsing error`})}});export{};
|