@trpc/server 10.27.3 → 10.28.1
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/{TRPCError-61026c9a.js → TRPCError-7c3909ea.js} +47 -47
- package/dist/adapters/aws-lambda/index.d.ts +9 -9
- package/dist/adapters/aws-lambda/index.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/index.js +4 -4
- package/dist/adapters/aws-lambda/index.mjs +4 -4
- package/dist/adapters/aws-lambda/utils.d.ts +37 -37
- package/dist/adapters/aws-lambda/utils.d.ts.map +1 -1
- package/dist/adapters/express.d.ts +5 -5
- package/dist/adapters/express.d.ts.map +1 -1
- package/dist/adapters/express.js +5 -5
- package/dist/adapters/express.mjs +5 -5
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts +12 -12
- package/dist/adapters/fastify/fastifyRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts +11 -11
- package/dist/adapters/fastify/fastifyTRPCPlugin.d.ts.map +1 -1
- package/dist/adapters/fastify/index.d.ts +2 -2
- package/dist/adapters/fastify/index.js +4 -4
- package/dist/adapters/fastify/index.mjs +4 -4
- package/dist/adapters/fetch/fetchRequestHandler.d.ts +7 -7
- package/dist/adapters/fetch/fetchRequestHandler.d.ts.map +1 -1
- package/dist/adapters/fetch/index.d.ts +2 -2
- package/dist/adapters/fetch/index.js +4 -4
- package/dist/adapters/fetch/index.mjs +4 -4
- package/dist/adapters/fetch/types.d.ts +19 -19
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/adapters/lambda/index.d.ts +11 -11
- package/dist/adapters/lambda/index.d.ts.map +1 -1
- package/dist/adapters/next.d.ts +5 -5
- package/dist/adapters/next.d.ts.map +1 -1
- package/dist/adapters/next.js +5 -5
- package/dist/adapters/next.mjs +5 -5
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.d.ts +69 -69
- package/dist/adapters/node-http/content-type/form-data/fileUploadHandler.d.ts.map +1 -1
- package/dist/adapters/node-http/content-type/form-data/index.d.ts +23 -23
- package/dist/adapters/node-http/content-type/form-data/index.js +1 -3
- package/dist/adapters/node-http/content-type/form-data/index.mjs +1 -3
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.d.ts +30 -30
- package/dist/adapters/node-http/content-type/form-data/memoryUploadHandler.d.ts.map +1 -1
- package/dist/adapters/node-http/content-type/form-data/streamSlice.d.ts +10 -10
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.d.ts +40 -39
- package/dist/adapters/node-http/content-type/form-data/uploadHandler.d.ts.map +1 -1
- package/dist/adapters/node-http/content-type/json/getPostBody.d.ts +6 -6
- package/dist/adapters/node-http/content-type/json/index.d.ts +1 -1
- package/dist/adapters/node-http/index.d.ts +2 -2
- package/dist/adapters/node-http/index.js +5 -5
- package/dist/adapters/node-http/index.mjs +5 -5
- package/dist/adapters/node-http/internals/contentType.d.ts +8 -8
- package/dist/adapters/node-http/nodeHTTPRequestHandler.d.ts +3 -3
- package/dist/adapters/node-http/types.d.ts +63 -63
- package/dist/adapters/node-http/types.d.ts.map +1 -1
- package/dist/adapters/standalone.d.ts +13 -13
- package/dist/adapters/standalone.d.ts.map +1 -1
- package/dist/adapters/standalone.js +5 -5
- package/dist/adapters/standalone.mjs +5 -5
- package/dist/adapters/ws.d.ts +21 -21
- package/dist/adapters/ws.d.ts.map +1 -1
- package/dist/adapters/ws.js +3 -3
- package/dist/adapters/ws.mjs +3 -3
- package/dist/{codes-b3c262d8.js → codes-1c9ad84e.js} +44 -44
- package/dist/{config-91ab0b1d.js → config-54786004.js} +168 -192
- package/dist/{config-d1cf9de0.mjs → config-65c5b6d1.mjs} +5 -28
- package/dist/{config-f355c4d8.js → config-f3ce0144.js} +5 -28
- package/dist/{contentType-f27e4bfc.js → contentType-24c44bba.js} +2 -2
- package/dist/{contentType-a75c990c.js → contentType-7354963c.js} +54 -54
- package/dist/core/index.d.ts +8 -8
- package/dist/core/initTRPC.d.ts +104 -104
- package/dist/core/initTRPC.d.ts.map +1 -1
- package/dist/core/internals/config.d.ts +74 -74
- package/dist/core/internals/config.d.ts.map +1 -1
- package/dist/core/internals/getParseFn.d.ts +8 -8
- package/dist/core/internals/getParseFn.d.ts.map +1 -1
- package/dist/core/internals/mergeRouters.d.ts +17 -17
- package/dist/core/internals/mergeRouters.d.ts.map +1 -1
- package/dist/core/internals/mergeWithoutOverrides.d.ts +4 -4
- package/dist/core/internals/omitPrototype.d.ts +5 -5
- package/dist/core/internals/procedureBuilder.d.ts +115 -115
- package/dist/core/internals/procedureBuilder.d.ts.map +1 -1
- package/dist/core/internals/utils.d.ts +51 -51
- package/dist/core/internals/utils.d.ts.map +1 -1
- package/dist/core/middleware.d.ts +127 -127
- package/dist/core/middleware.d.ts.map +1 -1
- package/dist/core/parser.d.ts +27 -27
- package/dist/core/parser.d.ts.map +1 -1
- package/dist/core/procedure.d.ts +72 -72
- package/dist/core/procedure.d.ts.map +1 -1
- package/dist/core/router.d.ts +111 -111
- package/dist/core/router.d.ts.map +1 -1
- package/dist/core/types.d.ts +28 -28
- package/dist/core/types.d.ts.map +1 -1
- package/dist/deprecated/internals/middlewares.d.ts +51 -51
- package/dist/deprecated/internals/middlewares.d.ts.map +1 -1
- package/dist/deprecated/internals/procedure.d.ts +95 -95
- package/dist/deprecated/internals/procedure.d.ts.map +1 -1
- package/dist/deprecated/interop.d.ts +43 -43
- package/dist/deprecated/interop.d.ts.map +1 -1
- package/dist/deprecated/router.d.ts +203 -203
- package/dist/deprecated/router.d.ts.map +1 -1
- package/dist/error/TRPCError.d.ts +11 -11
- package/dist/error/formatter.d.ts +32 -32
- package/dist/error/formatter.d.ts.map +1 -1
- package/dist/error/utils.d.ts +5 -5
- package/dist/http/contentType.d.ts +28 -28
- package/dist/http/contentType.d.ts.map +1 -1
- package/dist/http/getHTTPStatusCode.d.ts +23 -23
- package/dist/http/getHTTPStatusCode.d.ts.map +1 -1
- package/dist/http/index.d.ts +3 -3
- package/dist/http/index.js +4 -4
- package/dist/http/index.mjs +4 -4
- package/dist/http/internals/types.d.ts +24 -24
- package/dist/http/internals/types.d.ts.map +1 -1
- package/dist/http/resolveHTTPResponse.d.ts +16 -16
- package/dist/http/types.d.ts +24 -24
- package/dist/{index-315a9f08.mjs → index-044a193b.mjs} +3 -2
- package/dist/{index-8e243a74.js → index-4a823936.js} +3 -2
- package/dist/{index-cddfa242.js → index-ca9a128e.js} +88 -87
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/index.mjs +3 -3
- package/dist/internals/invert.d.ts +11 -11
- package/dist/internals/invert.d.ts.map +1 -1
- package/dist/internals/types.d.ts +25 -25
- package/dist/internals/types.d.ts.map +1 -1
- package/dist/internals.d.ts +9 -9
- package/dist/{nodeHTTPRequestHandler-8a261b10.mjs → nodeHTTPRequestHandler-0f979796.mjs} +1 -1
- package/dist/{nodeHTTPRequestHandler-7762c7d4.js → nodeHTTPRequestHandler-5bbf93f1.js} +1 -1
- package/dist/{nodeHTTPRequestHandler-fc509b47.js → nodeHTTPRequestHandler-bd47641d.js} +62 -62
- package/dist/observable/index.d.ts +4 -4
- package/dist/observable/internals/identity.d.ts +1 -1
- package/dist/observable/internals/observableToPromise.d.ts +9 -9
- package/dist/observable/internals/pipe.d.ts +3 -3
- package/dist/observable/observable.d.ts +4 -4
- package/dist/observable/observable.d.ts.map +1 -1
- package/dist/observable/operators/index.d.ts +3 -3
- package/dist/observable/operators/map.d.ts +2 -2
- package/dist/observable/operators/share.d.ts +5 -5
- package/dist/observable/operators/tap.d.ts +2 -2
- package/dist/observable/types.d.ts +28 -28
- package/dist/observable/types.d.ts.map +1 -1
- package/dist/{observable-a1c2103f.js → observable-15588f28.js} +76 -76
- package/dist/{resolveHTTPResponse-36f4e729.mjs → resolveHTTPResponse-4e576698.mjs} +3 -3
- package/dist/{resolveHTTPResponse-27fe1108.js → resolveHTTPResponse-9523b4e3.js} +3 -3
- package/dist/{resolveHTTPResponse-5f8945d7.js → resolveHTTPResponse-ba557d3e.js} +162 -162
- package/dist/rpc/codes.d.ts +52 -52
- package/dist/rpc/codes.d.ts.map +1 -1
- package/dist/rpc/envelopes.d.ts +98 -98
- package/dist/rpc/envelopes.d.ts.map +1 -1
- package/dist/rpc/index.d.ts +2 -2
- package/dist/shared/createProxy/index.d.ts +18 -18
- package/dist/shared/createProxy/index.d.ts.map +1 -1
- package/dist/shared/getErrorShape.d.ts +14 -14
- package/dist/shared/index.d.ts +5 -5
- package/dist/shared/index.js +2 -2
- package/dist/shared/index.mjs +2 -2
- package/dist/shared/internal/serialize.d.ts +29 -29
- package/dist/shared/internal/serialize.d.ts.map +1 -1
- package/dist/shared/jsonify.d.ts +9 -9
- package/dist/shared/jsonify.d.ts.map +1 -1
- package/dist/shared/transformTRPCResponse.d.ts +8 -8
- package/dist/shared/transformTRPCResponse.d.ts.map +1 -1
- package/dist/subscription.d.ts +12 -12
- package/dist/{transformTRPCResponse-6887ae6d.mjs → transformTRPCResponse-3dca0b20.mjs} +1 -1
- package/dist/{transformTRPCResponse-f7b2ffd1.js → transformTRPCResponse-48d70ef6.js} +1 -1
- package/dist/{transformTRPCResponse-8cb7e890.js → transformTRPCResponse-7fcbe472.js} +48 -48
- package/dist/transformer.d.ts +73 -73
- package/dist/transformer.d.ts.map +1 -1
- package/dist/types.d.ts +77 -77
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -6
- package/src/adapters/node-http/content-type/form-data/fileUploadHandler.ts +3 -3
- package/src/adapters/node-http/content-type/form-data/uploadHandler.ts +3 -1
- package/src/core/router.ts +6 -41
- package/src/shared/createProxy/index.ts +3 -2
- package/src/adapters/node-http/content-type/json/getPostBody.test.ts +0 -49
- package/src/observable/observable.test.ts +0 -100
- package/src/observable/operators/map.test.ts +0 -91
- package/src/observable/operators/share.test.ts +0 -60
package/dist/adapters/next.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { T as TRPCError } from '../TRPCError-2b10c8d2.mjs';
|
|
2
|
-
import { g as getErrorShape } from '../transformTRPCResponse-
|
|
3
|
-
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-
|
|
4
|
-
import '../index-
|
|
2
|
+
import { g as getErrorShape } from '../transformTRPCResponse-3dca0b20.mjs';
|
|
3
|
+
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-0f979796.mjs';
|
|
4
|
+
import '../index-044a193b.mjs';
|
|
5
5
|
import '../codes-24aa1ce1.mjs';
|
|
6
|
-
import '../resolveHTTPResponse-
|
|
7
|
-
import '../config-
|
|
6
|
+
import '../resolveHTTPResponse-4e576698.mjs';
|
|
7
|
+
import '../config-65c5b6d1.mjs';
|
|
8
8
|
import '../contentType-acc3be52.mjs';
|
|
9
9
|
import './node-http/content-type/json/index.mjs';
|
|
10
10
|
import '../contentType-3194ed5f.mjs';
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { UploadHandler } from './uploadHandler';
|
|
4
|
-
export declare function readableStreamToString(stream: ReadableStream<Uint8Array>, encoding?: BufferEncoding): Promise<string>;
|
|
5
|
-
export
|
|
6
|
-
filename: string;
|
|
7
|
-
contentType: string;
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
export
|
|
11
|
-
filename: string;
|
|
12
|
-
contentType: string;
|
|
13
|
-
name: string;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Chooses the path of the file to be uploaded. If a string is not
|
|
17
|
-
* returned the file will not be written.
|
|
18
|
-
*/
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
/**
|
|
22
|
-
* Avoid file conflicts by appending a count on the end of the filename
|
|
23
|
-
* if it already exists on disk. Defaults to `true`.
|
|
24
|
-
*/
|
|
25
|
-
avoidFileConflicts?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The directory to write the upload.
|
|
28
|
-
*/
|
|
29
|
-
directory?: string | FileUploadHandlerPathResolver;
|
|
30
|
-
/**
|
|
31
|
-
* The name of the file in the directory. Can be a relative path, the directory
|
|
32
|
-
* structure will be created if it does not exist.
|
|
33
|
-
*/
|
|
34
|
-
file?: FileUploadHandlerPathResolver;
|
|
35
|
-
/**
|
|
36
|
-
* The maximum upload size allowed. If the size is exceeded an error will be thrown.
|
|
37
|
-
* Defaults to 3000000B (3MB).
|
|
38
|
-
*/
|
|
39
|
-
maxPartSize?: number;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @param filename
|
|
43
|
-
* @param contentType
|
|
44
|
-
* @param name
|
|
45
|
-
*/
|
|
46
|
-
filter?(args: FileUploadHandlerFilterArgs): boolean | Promise<boolean>;
|
|
47
|
-
};
|
|
48
|
-
export declare function createFileUploadHandler({ directory, avoidFileConflicts, file, filter, maxPartSize, }?: FileUploadHandlerOptions): UploadHandler;
|
|
49
|
-
export declare class NodeOnDiskFile
|
|
50
|
-
private filepath;
|
|
51
|
-
type: string;
|
|
52
|
-
private slicer?;
|
|
53
|
-
name: string;
|
|
54
|
-
lastModified: number;
|
|
55
|
-
webkitRelativePath: string;
|
|
56
|
-
constructor(filepath: string, type: string, slicer?: {
|
|
57
|
-
start: number;
|
|
58
|
-
end: number;
|
|
59
|
-
} | undefined);
|
|
60
|
-
get size(): number;
|
|
61
|
-
slice(start?: number, end?: number, type?: string):
|
|
62
|
-
arrayBuffer(): Promise<ArrayBuffer>;
|
|
63
|
-
stream(): ReadableStream<any>;
|
|
64
|
-
stream(): NodeJS.ReadableStream;
|
|
65
|
-
text(): Promise<string>;
|
|
66
|
-
get [Symbol.toStringTag](): string;
|
|
67
|
-
remove(): Promise<void>;
|
|
68
|
-
getFilePath(): string;
|
|
69
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { UploadHandler } from './uploadHandler';
|
|
4
|
+
export declare function readableStreamToString(stream: ReadableStream<Uint8Array>, encoding?: BufferEncoding): Promise<string>;
|
|
5
|
+
export type FileUploadHandlerFilterArgs = {
|
|
6
|
+
filename: string;
|
|
7
|
+
contentType: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export type FileUploadHandlerPathResolverArgs = {
|
|
11
|
+
filename: string;
|
|
12
|
+
contentType: string;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Chooses the path of the file to be uploaded. If a string is not
|
|
17
|
+
* returned the file will not be written.
|
|
18
|
+
*/
|
|
19
|
+
export type FileUploadHandlerPathResolver = (args: FileUploadHandlerPathResolverArgs) => string | undefined;
|
|
20
|
+
export type FileUploadHandlerOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* Avoid file conflicts by appending a count on the end of the filename
|
|
23
|
+
* if it already exists on disk. Defaults to `true`.
|
|
24
|
+
*/
|
|
25
|
+
avoidFileConflicts?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The directory to write the upload.
|
|
28
|
+
*/
|
|
29
|
+
directory?: string | FileUploadHandlerPathResolver;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the file in the directory. Can be a relative path, the directory
|
|
32
|
+
* structure will be created if it does not exist.
|
|
33
|
+
*/
|
|
34
|
+
file?: FileUploadHandlerPathResolver;
|
|
35
|
+
/**
|
|
36
|
+
* The maximum upload size allowed. If the size is exceeded an error will be thrown.
|
|
37
|
+
* Defaults to 3000000B (3MB).
|
|
38
|
+
*/
|
|
39
|
+
maxPartSize?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param filename
|
|
43
|
+
* @param contentType
|
|
44
|
+
* @param name
|
|
45
|
+
*/
|
|
46
|
+
filter?(args: FileUploadHandlerFilterArgs): boolean | Promise<boolean>;
|
|
47
|
+
};
|
|
48
|
+
export declare function createFileUploadHandler({ directory, avoidFileConflicts, file, filter, maxPartSize, }?: FileUploadHandlerOptions): UploadHandler;
|
|
49
|
+
export declare class NodeOnDiskFile {
|
|
50
|
+
private filepath;
|
|
51
|
+
type: string;
|
|
52
|
+
private slicer?;
|
|
53
|
+
name: string;
|
|
54
|
+
lastModified: number;
|
|
55
|
+
webkitRelativePath: string;
|
|
56
|
+
constructor(filepath: string, type: string, slicer?: {
|
|
57
|
+
start: number;
|
|
58
|
+
end: number;
|
|
59
|
+
} | undefined);
|
|
60
|
+
get size(): number;
|
|
61
|
+
slice(start?: number, end?: number, type?: string): NodeOnDiskFile;
|
|
62
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
63
|
+
stream(): ReadableStream<any>;
|
|
64
|
+
stream(): NodeJS.ReadableStream;
|
|
65
|
+
text(): Promise<string>;
|
|
66
|
+
get [Symbol.toStringTag](): string;
|
|
67
|
+
remove(): Promise<void>;
|
|
68
|
+
getFilePath(): string;
|
|
69
|
+
}
|
|
70
70
|
//# sourceMappingURL=fileUploadHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"],"names":[],"mappings":";;AAoBA,OAAO,EAA4B,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,QAAQ,CAAC,EAAE,cAAc,mBAoB1B;AAED,
|
|
1
|
+
{"version":3,"file":"fileUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/fileUploadHandler.ts"],"names":[],"mappings":";;AAoBA,OAAO,EAA4B,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,wBAAsB,sBAAsB,CAC1C,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,EAClC,QAAQ,CAAC,EAAE,cAAc,mBAoB1B;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,IAAI,EAAE,iCAAiC,KACpC,MAAM,GAAG,SAAS,CAAC;AAExB,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,6BAA6B,CAAC;IACnD;;;OAGG;IACH,IAAI,CAAC,EAAE,6BAA6B,CAAC;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxE,CAAC;AA4BF,wBAAgB,uBAAuB,CAAC,EACtC,SAAoB,EACpB,kBAAyB,EACzB,IAA8B,EAC9B,MAAM,EACN,WAAqB,GACtB,GAAE,wBAA6B,GAAG,aAAa,CAyD/C;AAED,qBAAa,cAAc;IAMvB,OAAO,CAAC,QAAQ;IACT,IAAI,EAAE,MAAM;IACnB,OAAO,CAAC,MAAM,CAAC;IAPjB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,SAAK;IACjB,kBAAkB,SAAM;gBAGd,QAAQ,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACX,MAAM,CAAC;eAAW,MAAM;aAAO,MAAM;iBAAE;IAKjD,IAAI,IAAI,IAAI,MAAM,CASjB;IAED,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc;IAkB5D,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;IAczC,MAAM,IAAI,cAAc,CAAC,GAAG,CAAC;IAC7B,MAAM,IAAI,MAAM,CAAC,cAAc;IAUzB,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;IAI7B,IAAW,CAAC,MAAM,CAAC,WAAW,CAAC,WAE9B;IAED,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAGvB,WAAW,IAAI,MAAM;CAGtB"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2021 Remix Software Inc.
|
|
3
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
5
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6
|
-
*/
|
|
7
|
-
import { NodeHTTPRequest } from '../../types';
|
|
8
|
-
import { UploadHandler } from './uploadHandler';
|
|
9
|
-
/**
|
|
10
|
-
* Allows you to handle multipart forms (file uploads) for your app.
|
|
11
|
-
*
|
|
12
|
-
* TODO: Update this comment
|
|
13
|
-
* @see https://remix.run/utils/parse-multipart-form-data
|
|
14
|
-
*/
|
|
15
|
-
declare function parseMultipartFormData(request: NodeHTTPRequest, uploadHandler: UploadHandler): Promise<FormData>;
|
|
16
|
-
declare function isMultipartFormDataRequest(req: NodeHTTPRequest): boolean;
|
|
17
|
-
export declare const nodeHTTPFormDataContentTypeHandler: <TRequest extends NodeHTTPRequest, TResponse extends import("../../types").NodeHTTPResponse>() => import("../../internals/contentType").NodeHTTPContentTypeHandler<TRequest, TResponse>;
|
|
18
|
-
export { parseMultipartFormData as experimental_parseMultipartFormData };
|
|
19
|
-
export { createMemoryUploadHandler as experimental_createMemoryUploadHandler } from './memoryUploadHandler';
|
|
20
|
-
export { createFileUploadHandler as experimental_createFileUploadHandler } from './fileUploadHandler';
|
|
21
|
-
export { composeUploadHandlers as experimental_composeUploadHandlers } from './uploadHandler';
|
|
22
|
-
export { type UploadHandler } from './uploadHandler';
|
|
23
|
-
export { isMultipartFormDataRequest as experimental_isMultipartFormDataRequest };
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2021 Remix Software Inc.
|
|
3
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
5
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6
|
+
*/
|
|
7
|
+
import { NodeHTTPRequest } from '../../types';
|
|
8
|
+
import { UploadHandler } from './uploadHandler';
|
|
9
|
+
/**
|
|
10
|
+
* Allows you to handle multipart forms (file uploads) for your app.
|
|
11
|
+
*
|
|
12
|
+
* TODO: Update this comment
|
|
13
|
+
* @see https://remix.run/utils/parse-multipart-form-data
|
|
14
|
+
*/
|
|
15
|
+
declare function parseMultipartFormData(request: NodeHTTPRequest, uploadHandler: UploadHandler): Promise<FormData>;
|
|
16
|
+
declare function isMultipartFormDataRequest(req: NodeHTTPRequest): boolean;
|
|
17
|
+
export declare const nodeHTTPFormDataContentTypeHandler: <TRequest extends NodeHTTPRequest, TResponse extends import("../../types").NodeHTTPResponse>() => import("../../internals/contentType").NodeHTTPContentTypeHandler<TRequest, TResponse>;
|
|
18
|
+
export { parseMultipartFormData as experimental_parseMultipartFormData };
|
|
19
|
+
export { createMemoryUploadHandler as experimental_createMemoryUploadHandler } from './memoryUploadHandler';
|
|
20
|
+
export { createFileUploadHandler as experimental_createFileUploadHandler } from './fileUploadHandler';
|
|
21
|
+
export { composeUploadHandlers as experimental_composeUploadHandlers } from './uploadHandler';
|
|
22
|
+
export { type UploadHandler } from './uploadHandler';
|
|
23
|
+
export { isMultipartFormDataRequest as experimental_isMultipartFormDataRequest };
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -406,9 +406,7 @@ async function* streamMultipart(body, boundary) {
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
|
|
410
|
-
* @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/formData.ts
|
|
411
|
-
*/ function composeUploadHandlers(...handlers) {
|
|
409
|
+
function composeUploadHandlers(...handlers) {
|
|
412
410
|
return async (part)=>{
|
|
413
411
|
for (const handler of handlers){
|
|
414
412
|
const value = await handler(part);
|
|
@@ -396,9 +396,7 @@ async function* streamMultipart(body, boundary) {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
|
|
400
|
-
* @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/formData.ts
|
|
401
|
-
*/ function composeUploadHandlers(...handlers) {
|
|
399
|
+
function composeUploadHandlers(...handlers) {
|
|
402
400
|
return async (part)=>{
|
|
403
401
|
for (const handler of handlers){
|
|
404
402
|
const value = await handler(part);
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2021 Remix Software Inc.
|
|
3
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
5
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/upload/memoryUploadHandler.ts
|
|
9
|
-
*/
|
|
10
|
-
import { UploadHandler } from './uploadHandler';
|
|
11
|
-
export
|
|
12
|
-
filename?: string;
|
|
13
|
-
contentType: string;
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
16
|
-
export
|
|
17
|
-
/**
|
|
18
|
-
* The maximum upload size allowed. If the size is exceeded an error will be thrown.
|
|
19
|
-
* Defaults to 3000000B (3MB).
|
|
20
|
-
*/
|
|
21
|
-
maxPartSize?: number;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @param filename
|
|
25
|
-
* @param mimetype
|
|
26
|
-
* @param encoding
|
|
27
|
-
*/
|
|
28
|
-
filter?(args: MemoryUploadHandlerFilterArgs): boolean | Promise<boolean>;
|
|
29
|
-
};
|
|
30
|
-
export declare function createMemoryUploadHandler({ filter, maxPartSize, }?: MemoryUploadHandlerOptions): UploadHandler;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2021 Remix Software Inc.
|
|
3
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
5
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/upload/memoryUploadHandler.ts
|
|
9
|
+
*/
|
|
10
|
+
import { UploadHandler } from './uploadHandler';
|
|
11
|
+
export type MemoryUploadHandlerFilterArgs = {
|
|
12
|
+
filename?: string;
|
|
13
|
+
contentType: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type MemoryUploadHandlerOptions = {
|
|
17
|
+
/**
|
|
18
|
+
* The maximum upload size allowed. If the size is exceeded an error will be thrown.
|
|
19
|
+
* Defaults to 3000000B (3MB).
|
|
20
|
+
*/
|
|
21
|
+
maxPartSize?: number;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param filename
|
|
25
|
+
* @param mimetype
|
|
26
|
+
* @param encoding
|
|
27
|
+
*/
|
|
28
|
+
filter?(args: MemoryUploadHandlerFilterArgs): boolean | Promise<boolean>;
|
|
29
|
+
};
|
|
30
|
+
export declare function createMemoryUploadHandler({ filter, maxPartSize, }?: MemoryUploadHandlerOptions): UploadHandler;
|
|
31
31
|
//# sourceMappingURL=memoryUploadHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoryUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,OAAO,EAA4B,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,
|
|
1
|
+
{"version":3,"file":"memoryUploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/memoryUploadHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,OAAO,EAA4B,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE1E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1E,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,WAAqB,GACtB,GAAE,0BAA+B,GAAG,aAAa,CAsBjD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { Transform, TransformCallback } from 'node:stream';
|
|
4
|
-
declare class SliceStream extends Transform {
|
|
5
|
-
#private;
|
|
6
|
-
constructor(start?: number, end?: number);
|
|
7
|
-
_transform(chunk: any, _: BufferEncoding, done: TransformCallback): void;
|
|
8
|
-
}
|
|
9
|
-
export declare function streamSlice(start?: number, end?: number): SliceStream;
|
|
10
|
-
export {};
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { Transform, TransformCallback } from 'node:stream';
|
|
4
|
+
declare class SliceStream extends Transform {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(start?: number, end?: number);
|
|
7
|
+
_transform(chunk: any, _: BufferEncoding, done: TransformCallback): void;
|
|
8
|
+
}
|
|
9
|
+
export declare function streamSlice(start?: number, end?: number): SliceStream;
|
|
10
|
+
export {};
|
|
11
11
|
//# sourceMappingURL=streamSlice.d.ts.map
|
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export declare
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
* @param
|
|
32
|
-
* @param
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
import { NodeOnDiskFile } from './fileUploadHandler';
|
|
2
|
+
/**
|
|
3
|
+
* @see https://github.com/remix-run/remix/blob/0bcb4a304dd2f08f6032c3bf0c3aa7eb5b976901/packages/remix-server-runtime/formData.ts
|
|
4
|
+
*/
|
|
5
|
+
export type UploadHandlerPart = {
|
|
6
|
+
name: string;
|
|
7
|
+
filename?: string;
|
|
8
|
+
contentType: string;
|
|
9
|
+
data: AsyncIterable<Uint8Array>;
|
|
10
|
+
};
|
|
11
|
+
export type UploadHandler = (part: UploadHandlerPart) => Promise<NodeOnDiskFile | File | string | null | undefined>;
|
|
12
|
+
export declare function composeUploadHandlers(...handlers: UploadHandler[]): UploadHandler;
|
|
13
|
+
export declare class MaxPartSizeExceededError extends Error {
|
|
14
|
+
field: string;
|
|
15
|
+
maxBytes: number;
|
|
16
|
+
constructor(field: string, maxBytes: number);
|
|
17
|
+
}
|
|
18
|
+
export type MemoryUploadHandlerFilterArgs = {
|
|
19
|
+
filename?: string;
|
|
20
|
+
contentType: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
export type MemoryUploadHandlerOptions = {
|
|
24
|
+
/**
|
|
25
|
+
* The maximum upload size allowed. If the size is exceeded an error will be thrown.
|
|
26
|
+
* Defaults to 3000000B (3MB).
|
|
27
|
+
*/
|
|
28
|
+
maxPartSize?: number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param filename
|
|
32
|
+
* @param mimetype
|
|
33
|
+
* @param encoding
|
|
34
|
+
*/
|
|
35
|
+
filter?(args: MemoryUploadHandlerFilterArgs): boolean | Promise<boolean>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @see
|
|
39
|
+
*/
|
|
40
|
+
export declare function createMemoryUploadHandler({ filter, maxPartSize, }?: MemoryUploadHandlerOptions): UploadHandler;
|
|
40
41
|
//# sourceMappingURL=uploadHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/uploadHandler.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"uploadHandler.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/node-http/content-type/form-data/uploadHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAC1B,IAAI,EAAE,iBAAiB,KACpB,OAAO,CAAC,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAEhE,wBAAgB,qBAAqB,CACnC,GAAG,QAAQ,EAAE,aAAa,EAAE,GAC3B,aAAa,CAWf;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IAC9B,KAAK,EAAE,MAAM;IAAS,QAAQ,EAAE,MAAM;gBAAtC,KAAK,EAAE,MAAM,EAAS,QAAQ,EAAE,MAAM;CAG1D;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,MAAM,CAAC,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1E,CAAC;AAEF;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,EACN,WAAqB,GACtB,GAAE,0BAA+B,GAAG,aAAa,CAsBjD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BodyResult } from '../../../../http/contentType';
|
|
2
|
-
import { NodeHTTPRequest } from '../../types';
|
|
3
|
-
export declare function getPostBody(opts: {
|
|
4
|
-
req: NodeHTTPRequest;
|
|
5
|
-
maxBodySize?: number;
|
|
6
|
-
}): Promise<BodyResult>;
|
|
1
|
+
import { BodyResult } from '../../../../http/contentType';
|
|
2
|
+
import { NodeHTTPRequest } from '../../types';
|
|
3
|
+
export declare function getPostBody(opts: {
|
|
4
|
+
req: NodeHTTPRequest;
|
|
5
|
+
maxBodySize?: number;
|
|
6
|
+
}): Promise<BodyResult>;
|
|
7
7
|
//# sourceMappingURL=getPostBody.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const nodeHTTPJSONContentTypeHandler: <TRequest extends import("../..").NodeHTTPRequest, TResponse extends import("../..").NodeHTTPResponse>() => import("../../internals/contentType").NodeHTTPContentTypeHandler<TRequest, TResponse>;
|
|
1
|
+
export declare const nodeHTTPJSONContentTypeHandler: <TRequest extends import("../..").NodeHTTPRequest, TResponse extends import("../..").NodeHTTPResponse>() => import("../../internals/contentType").NodeHTTPContentTypeHandler<TRequest, TResponse>;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './nodeHTTPRequestHandler';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './nodeHTTPRequestHandler';
|
|
2
|
+
export * from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var nodeHTTPRequestHandler = require('../../nodeHTTPRequestHandler-
|
|
6
|
-
require('../../resolveHTTPResponse-
|
|
7
|
-
require('../../config-
|
|
5
|
+
var nodeHTTPRequestHandler = require('../../nodeHTTPRequestHandler-5bbf93f1.js');
|
|
6
|
+
require('../../resolveHTTPResponse-9523b4e3.js');
|
|
7
|
+
require('../../config-f3ce0144.js');
|
|
8
8
|
require('../../TRPCError-16b2e52d.js');
|
|
9
|
-
require('../../index-
|
|
9
|
+
require('../../index-4a823936.js');
|
|
10
10
|
require('../../codes-0eeb600d.js');
|
|
11
|
-
require('../../transformTRPCResponse-
|
|
11
|
+
require('../../transformTRPCResponse-48d70ef6.js');
|
|
12
12
|
require('../../contentType-8356d528.js');
|
|
13
13
|
require('./content-type/json/index.js');
|
|
14
14
|
require('../../contentType-8c16408e.js');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { n as nodeHTTPRequestHandler } from '../../nodeHTTPRequestHandler-
|
|
2
|
-
import '../../resolveHTTPResponse-
|
|
3
|
-
import '../../config-
|
|
1
|
+
export { n as nodeHTTPRequestHandler } from '../../nodeHTTPRequestHandler-0f979796.mjs';
|
|
2
|
+
import '../../resolveHTTPResponse-4e576698.mjs';
|
|
3
|
+
import '../../config-65c5b6d1.mjs';
|
|
4
4
|
import '../../TRPCError-2b10c8d2.mjs';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-044a193b.mjs';
|
|
6
6
|
import '../../codes-24aa1ce1.mjs';
|
|
7
|
-
import '../../transformTRPCResponse-
|
|
7
|
+
import '../../transformTRPCResponse-3dca0b20.mjs';
|
|
8
8
|
import '../../contentType-acc3be52.mjs';
|
|
9
9
|
import './content-type/json/index.mjs';
|
|
10
10
|
import '../../contentType-3194ed5f.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnyRouter } from '../../../core';
|
|
2
|
-
import { BaseContentTypeHandler } from '../../../http/contentType';
|
|
3
|
-
import { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from '../types';
|
|
4
|
-
export interface NodeHTTPContentTypeHandler<TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse> extends BaseContentTypeHandler<NodeHTTPRequestHandlerOptions<AnyRouter, TRequest, TResponse> & {
|
|
5
|
-
query: URLSearchParams;
|
|
6
|
-
}> {
|
|
7
|
-
}
|
|
8
|
-
export declare function createNodeHTTPContentTypeHandler(contentTypeHandler: NodeHTTPContentTypeHandler<NodeHTTPRequest, NodeHTTPResponse>): <TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse>() => NodeHTTPContentTypeHandler<TRequest, TResponse>;
|
|
1
|
+
import { AnyRouter } from '../../../core';
|
|
2
|
+
import { BaseContentTypeHandler } from '../../../http/contentType';
|
|
3
|
+
import { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from '../types';
|
|
4
|
+
export interface NodeHTTPContentTypeHandler<TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse> extends BaseContentTypeHandler<NodeHTTPRequestHandlerOptions<AnyRouter, TRequest, TResponse> & {
|
|
5
|
+
query: URLSearchParams;
|
|
6
|
+
}> {
|
|
7
|
+
}
|
|
8
|
+
export declare function createNodeHTTPContentTypeHandler(contentTypeHandler: NodeHTTPContentTypeHandler<NodeHTTPRequest, NodeHTTPResponse>): <TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse>() => NodeHTTPContentTypeHandler<TRequest, TResponse>;
|
|
9
9
|
//# sourceMappingURL=contentType.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyRouter } from '../../core';
|
|
2
|
-
import { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from './types';
|
|
3
|
-
export declare function nodeHTTPRequestHandler<TRouter extends AnyRouter, TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse>(opts: NodeHTTPRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
|
|
1
|
+
import { AnyRouter } from '../../core';
|
|
2
|
+
import { NodeHTTPRequest, NodeHTTPRequestHandlerOptions, NodeHTTPResponse } from './types';
|
|
3
|
+
export declare function nodeHTTPRequestHandler<TRouter extends AnyRouter, TRequest extends NodeHTTPRequest, TResponse extends NodeHTTPResponse>(opts: NodeHTTPRequestHandlerOptions<TRouter, TRequest, TResponse>): Promise<void>;
|
|
4
4
|
//# sourceMappingURL=nodeHTTPRequestHandler.d.ts.map
|