@trpc/server 11.0.0-alpha-tmp-02-12-response-types-idea.839 → 11.0.0-alpha-tmp-issues-6554.823
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/aws-lambda/getPlanner.d.ts.map +1 -1
- package/dist/adapters/aws-lambda/getPlanner.js +3 -1
- package/dist/adapters/aws-lambda/getPlanner.mjs +3 -1
- package/dist/adapters/fetch/types.d.ts +2 -8
- package/dist/adapters/fetch/types.d.ts.map +1 -1
- package/dist/bundle-analysis.json +86 -72
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts +1 -1
- package/dist/unstable-core-do-not-import/clientish/inference.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/http/resolveResponse.js +1 -20
- package/dist/unstable-core-do-not-import/http/resolveResponse.mjs +1 -20
- package/dist/unstable-core-do-not-import/initTRPC.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/initTRPC.js +0 -1
- package/dist/unstable-core-do-not-import/initTRPC.mjs +0 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts +2 -4
- package/dist/unstable-core-do-not-import/procedureBuilder.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/procedureBuilder.js +3 -9
- package/dist/unstable-core-do-not-import/procedureBuilder.mjs +3 -9
- package/dist/unstable-core-do-not-import/rootConfig.d.ts +1 -3
- package/dist/unstable-core-do-not-import/rootConfig.d.ts.map +1 -1
- package/dist/unstable-core-do-not-import/transformer.d.ts +1 -1
- package/dist/vendor/cookie-es/set-cookie/split.d.ts +18 -0
- package/dist/vendor/cookie-es/set-cookie/split.d.ts.map +1 -0
- package/dist/vendor/cookie-es/set-cookie/split.js +79 -0
- package/dist/vendor/cookie-es/set-cookie/split.mjs +77 -0
- package/package.json +182 -47
- package/src/adapters/aws-lambda/getPlanner.ts +4 -4
- package/src/adapters/fetch/types.ts +2 -8
- package/src/unstable-core-do-not-import/clientish/inference.ts +3 -8
- package/src/unstable-core-do-not-import/http/resolveResponse.ts +4 -31
- package/src/unstable-core-do-not-import/initTRPC.ts +0 -1
- package/src/unstable-core-do-not-import/procedureBuilder.ts +2 -15
- package/src/unstable-core-do-not-import/rootConfig.ts +1 -3
- package/src/vendor/cookie-es/set-cookie/split.ts +91 -0
|
@@ -2,7 +2,6 @@ import type { inferObservableValue, Observable } from '../observable';
|
|
|
2
2
|
import type { AnyMiddlewareFunction, MiddlewareBuilder, MiddlewareFunction } from './middleware';
|
|
3
3
|
import type { inferParser, Parser } from './parser';
|
|
4
4
|
import type { AnyProcedure, LegacyObservableSubscriptionProcedure, MutationProcedure, ProcedureType, QueryProcedure, SubscriptionProcedure } from './procedure';
|
|
5
|
-
import type { RootConfig } from './rootConfig';
|
|
6
5
|
import type { inferTrackedOutput } from './stream/tracked';
|
|
7
6
|
import type { GetRawInputFn, MaybePromise, Overwrite, Simplify, TypeError } from './types';
|
|
8
7
|
import type { UnsetMarker } from './utils';
|
|
@@ -20,7 +19,6 @@ export type CallerOverride<TContext> = (opts: {
|
|
|
20
19
|
_def: AnyProcedure['_def'];
|
|
21
20
|
}) => Promise<unknown>;
|
|
22
21
|
type ProcedureBuilderDef<TMeta> = {
|
|
23
|
-
_config: Partial<Pick<RootConfig<any>, 'experimental'>>;
|
|
24
22
|
procedure: true;
|
|
25
23
|
inputs: Parser[];
|
|
26
24
|
output?: Parser;
|
|
@@ -42,6 +40,7 @@ type ProcedureBuilderDef<TMeta> = {
|
|
|
42
40
|
type?: ProcedureType;
|
|
43
41
|
caller?: CallerOverride<unknown>;
|
|
44
42
|
};
|
|
43
|
+
type AnyProcedureBuilderDef = ProcedureBuilderDef<any>;
|
|
45
44
|
/**
|
|
46
45
|
* Procedure resolver options (what the `.query()`, `.mutation()`, and `.subscription()` functions receive)
|
|
47
46
|
* @internal
|
|
@@ -138,8 +137,7 @@ export interface ProcedureBuilder<TContext, TMeta, TContextOverrides, TInputIn,
|
|
|
138
137
|
_def: ProcedureBuilderDef<TMeta>;
|
|
139
138
|
}
|
|
140
139
|
type ProcedureBuilderResolver = (opts: ProcedureResolverOptions<any, any, any, any>) => Promise<unknown>;
|
|
141
|
-
|
|
142
|
-
export declare function createBuilder<TContext, TMeta>(initDef: SetRequired<Partial<ProcedureBuilderDef<TMeta>>, '_config'>): ProcedureBuilder<TContext, TMeta, object, UnsetMarker, UnsetMarker, UnsetMarker, UnsetMarker, false>;
|
|
140
|
+
export declare function createBuilder<TContext, TMeta>(initDef?: Partial<AnyProcedureBuilderDef>): ProcedureBuilder<TContext, TMeta, object, UnsetMarker, UnsetMarker, UnsetMarker, UnsetMarker, false>;
|
|
143
141
|
/**
|
|
144
142
|
* @internal
|
|
145
143
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedureBuilder.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/procedureBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAMtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,KAAK,EAEV,YAAY,EAEZ,qCAAqC,EACrC,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"procedureBuilder.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/procedureBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,cAAc,CAAC;A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C,CAAC;IACP;;;OAGG;IACH,mBAAmB,CACjB,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAC/B,gBAAgB,CACjB,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,IAAI,CACL,CAAC;IACF;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC;CAClC;AAED,KAAK,wBAAwB,GAAG,CAC9B,IAAI,EAAE,wBAAwB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAC/C,OAAO,CAAC,OAAO,CAAC,CAAC;AAiBtB,wBAAgB,aAAa,CAAC,QAAQ,EAAE,KAAK,EAC3C,OAAO,GAAE,OAAO,CAAC,sBAAsB,CAAM,GAC5C,gBAAgB,CACjB,QAAQ,EACR,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,CACN,CAkEA;AA6CD;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,QAAQ;IAC5C,GAAG,EAAE,QAAQ,CAAC;IACd,WAAW,EAAE,aAAa,CAAC;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;CACjC"}
|
|
@@ -6,7 +6,7 @@ var parser = require('./parser.js');
|
|
|
6
6
|
var utils = require('./utils.js');
|
|
7
7
|
|
|
8
8
|
function createNewBuilder(def1, def2) {
|
|
9
|
-
const { middlewares = [], inputs, meta,
|
|
9
|
+
const { middlewares = [], inputs, meta, ...rest } = def2;
|
|
10
10
|
// TODO: maybe have a fn here to warn about calls
|
|
11
11
|
return createBuilder({
|
|
12
12
|
...utils.mergeWithoutOverrides(def1, rest),
|
|
@@ -21,16 +21,10 @@ function createNewBuilder(def1, def2) {
|
|
|
21
21
|
meta: def1.meta && meta ? {
|
|
22
22
|
...def1.meta,
|
|
23
23
|
...meta
|
|
24
|
-
} : meta ?? def1.meta
|
|
25
|
-
_config: !_config ? def1._config : {
|
|
26
|
-
experimental: {
|
|
27
|
-
...def1._config.experimental,
|
|
28
|
-
..._config.experimental
|
|
29
|
-
}
|
|
30
|
-
}
|
|
24
|
+
} : meta ?? def1.meta
|
|
31
25
|
});
|
|
32
26
|
}
|
|
33
|
-
function createBuilder(initDef) {
|
|
27
|
+
function createBuilder(initDef = {}) {
|
|
34
28
|
const _def = {
|
|
35
29
|
procedure: true,
|
|
36
30
|
inputs: [],
|
|
@@ -4,7 +4,7 @@ import { getParseFn } from './parser.mjs';
|
|
|
4
4
|
import { mergeWithoutOverrides } from './utils.mjs';
|
|
5
5
|
|
|
6
6
|
function createNewBuilder(def1, def2) {
|
|
7
|
-
const { middlewares = [], inputs, meta,
|
|
7
|
+
const { middlewares = [], inputs, meta, ...rest } = def2;
|
|
8
8
|
// TODO: maybe have a fn here to warn about calls
|
|
9
9
|
return createBuilder({
|
|
10
10
|
...mergeWithoutOverrides(def1, rest),
|
|
@@ -19,16 +19,10 @@ function createNewBuilder(def1, def2) {
|
|
|
19
19
|
meta: def1.meta && meta ? {
|
|
20
20
|
...def1.meta,
|
|
21
21
|
...meta
|
|
22
|
-
} : meta ?? def1.meta
|
|
23
|
-
_config: !_config ? def1._config : {
|
|
24
|
-
experimental: {
|
|
25
|
-
...def1._config.experimental,
|
|
26
|
-
..._config.experimental
|
|
27
|
-
}
|
|
28
|
-
}
|
|
22
|
+
} : meta ?? def1.meta
|
|
29
23
|
});
|
|
30
24
|
}
|
|
31
|
-
function createBuilder(initDef) {
|
|
25
|
+
function createBuilder(initDef = {}) {
|
|
32
26
|
const _def = {
|
|
33
27
|
procedure: true,
|
|
34
28
|
inputs: [],
|
|
@@ -71,9 +71,7 @@ export interface RootConfig<TTypes extends RootTypes> {
|
|
|
71
71
|
* @see https://trpc.io/docs/client/links/httpBatchStreamLink
|
|
72
72
|
*/
|
|
73
73
|
jsonl?: Pick<JSONLProducerOptions, 'pingMs'>;
|
|
74
|
-
experimental?: {
|
|
75
|
-
outputResponse?: boolean;
|
|
76
|
-
};
|
|
74
|
+
experimental?: {};
|
|
77
75
|
}
|
|
78
76
|
/**
|
|
79
77
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootConfig.d.ts","sourceRoot":"","sources":["../../src/unstable-core-do-not-import/rootConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAMmB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,SAAS;IAClD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;;OAGG;IACH,cAAc,EAAE,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IACpE;;;;OAIG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,SAA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serializes it with the router's transformers
|
|
65
65
|
**/
|
|
66
|
-
export declare function transformTRPCResponse<TResponse extends TRPCResponse | TRPCResponse[] | TRPCResponseMessage | TRPCResponseMessage[]>(config: RootConfig<AnyRootTypes>, itemOrItems: TResponse): import("./rpc").
|
|
66
|
+
export declare function transformTRPCResponse<TResponse extends TRPCResponse | TRPCResponse[] | TRPCResponseMessage | TRPCResponseMessage[]>(config: RootConfig<AnyRootTypes>, itemOrItems: TResponse): import("./rpc").TRPCSuccessResponse<unknown> | import("./rpc").TRPCErrorResponse<import("./rpc").TRPCErrorShape<object>> | ({
|
|
67
67
|
id: import("./rpc").JSONRPC2.RequestId;
|
|
68
68
|
} & TRPCResultMessage<unknown>) | (TRPCResponse | TRPCResponseMessage)[];
|
|
69
69
|
/** @internal */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Based on https://github.com/unjs/cookie-es/tree/v1.2.2
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Cookie-es copyright (c) Pooya Parsa <pooya@pi0.io>
|
|
6
|
+
* Set-Cookie parsing based on https://github.com/nfriedly/set-cookie-parser
|
|
7
|
+
* Copyright (c) 2015 Nathan Friedly <nathan@nfriedly.com> (http://nfriedly.com/)
|
|
8
|
+
*
|
|
9
|
+
* @see https://github.com/unjs/cookie-es/blob/main/src/set-cookie/split.ts
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
13
|
+
* that are within a single set-cookie field-value, such as in the Expires portion.
|
|
14
|
+
*
|
|
15
|
+
* See https://tools.ietf.org/html/rfc2616#section-4.2
|
|
16
|
+
*/
|
|
17
|
+
export declare function splitSetCookieString(cookiesString: string | string[]): string[];
|
|
18
|
+
//# sourceMappingURL=split.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split.d.ts","sourceRoot":"","sources":["../../../../src/vendor/cookie-es/set-cookie/split.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAChC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,GAC/B,MAAM,EAAE,CAuEV"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Based on https://github.com/unjs/cookie-es/tree/v1.2.2
|
|
5
|
+
* MIT License
|
|
6
|
+
*
|
|
7
|
+
* Cookie-es copyright (c) Pooya Parsa <pooya@pi0.io>
|
|
8
|
+
* Set-Cookie parsing based on https://github.com/nfriedly/set-cookie-parser
|
|
9
|
+
* Copyright (c) 2015 Nathan Friedly <nathan@nfriedly.com> (http://nfriedly.com/)
|
|
10
|
+
*
|
|
11
|
+
* @see https://github.com/unjs/cookie-es/blob/main/src/set-cookie/split.ts
|
|
12
|
+
*/ /**
|
|
13
|
+
* Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
14
|
+
* that are within a single set-cookie field-value, such as in the Expires portion.
|
|
15
|
+
*
|
|
16
|
+
* See https://tools.ietf.org/html/rfc2616#section-4.2
|
|
17
|
+
*/ function splitSetCookieString(cookiesString) {
|
|
18
|
+
if (Array.isArray(cookiesString)) {
|
|
19
|
+
return cookiesString.flatMap((c)=>splitSetCookieString(c));
|
|
20
|
+
}
|
|
21
|
+
if (typeof cookiesString !== "string") {
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
const cookiesStrings = [];
|
|
25
|
+
let pos = 0;
|
|
26
|
+
let start;
|
|
27
|
+
let ch;
|
|
28
|
+
let lastComma;
|
|
29
|
+
let nextStart;
|
|
30
|
+
let cookiesSeparatorFound;
|
|
31
|
+
const skipWhitespace = ()=>{
|
|
32
|
+
while(pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))){
|
|
33
|
+
pos += 1;
|
|
34
|
+
}
|
|
35
|
+
return pos < cookiesString.length;
|
|
36
|
+
};
|
|
37
|
+
const notSpecialChar = ()=>{
|
|
38
|
+
ch = cookiesString.charAt(pos);
|
|
39
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
40
|
+
};
|
|
41
|
+
while(pos < cookiesString.length){
|
|
42
|
+
start = pos;
|
|
43
|
+
cookiesSeparatorFound = false;
|
|
44
|
+
while(skipWhitespace()){
|
|
45
|
+
ch = cookiesString.charAt(pos);
|
|
46
|
+
if (ch === ",") {
|
|
47
|
+
// ',' is a cookie separator if we have later first '=', not ';' or ','
|
|
48
|
+
lastComma = pos;
|
|
49
|
+
pos += 1;
|
|
50
|
+
skipWhitespace();
|
|
51
|
+
nextStart = pos;
|
|
52
|
+
while(pos < cookiesString.length && notSpecialChar()){
|
|
53
|
+
pos += 1;
|
|
54
|
+
}
|
|
55
|
+
// currently special character
|
|
56
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
57
|
+
// we found cookies separator
|
|
58
|
+
cookiesSeparatorFound = true;
|
|
59
|
+
// pos is inside the next cookie, so back up and return it.
|
|
60
|
+
pos = nextStart;
|
|
61
|
+
cookiesStrings.push(cookiesString.slice(start, lastComma));
|
|
62
|
+
start = pos;
|
|
63
|
+
} else {
|
|
64
|
+
// in param ',' or param separator ';',
|
|
65
|
+
// we continue from that comma
|
|
66
|
+
pos = lastComma + 1;
|
|
67
|
+
}
|
|
68
|
+
} else {
|
|
69
|
+
pos += 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
73
|
+
cookiesStrings.push(cookiesString.slice(start));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return cookiesStrings;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
exports.splitSetCookieString = splitSetCookieString;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Based on https://github.com/unjs/cookie-es/tree/v1.2.2
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Cookie-es copyright (c) Pooya Parsa <pooya@pi0.io>
|
|
6
|
+
* Set-Cookie parsing based on https://github.com/nfriedly/set-cookie-parser
|
|
7
|
+
* Copyright (c) 2015 Nathan Friedly <nathan@nfriedly.com> (http://nfriedly.com/)
|
|
8
|
+
*
|
|
9
|
+
* @see https://github.com/unjs/cookie-es/blob/main/src/set-cookie/split.ts
|
|
10
|
+
*/ /**
|
|
11
|
+
* Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas
|
|
12
|
+
* that are within a single set-cookie field-value, such as in the Expires portion.
|
|
13
|
+
*
|
|
14
|
+
* See https://tools.ietf.org/html/rfc2616#section-4.2
|
|
15
|
+
*/ function splitSetCookieString(cookiesString) {
|
|
16
|
+
if (Array.isArray(cookiesString)) {
|
|
17
|
+
return cookiesString.flatMap((c)=>splitSetCookieString(c));
|
|
18
|
+
}
|
|
19
|
+
if (typeof cookiesString !== "string") {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
const cookiesStrings = [];
|
|
23
|
+
let pos = 0;
|
|
24
|
+
let start;
|
|
25
|
+
let ch;
|
|
26
|
+
let lastComma;
|
|
27
|
+
let nextStart;
|
|
28
|
+
let cookiesSeparatorFound;
|
|
29
|
+
const skipWhitespace = ()=>{
|
|
30
|
+
while(pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))){
|
|
31
|
+
pos += 1;
|
|
32
|
+
}
|
|
33
|
+
return pos < cookiesString.length;
|
|
34
|
+
};
|
|
35
|
+
const notSpecialChar = ()=>{
|
|
36
|
+
ch = cookiesString.charAt(pos);
|
|
37
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
38
|
+
};
|
|
39
|
+
while(pos < cookiesString.length){
|
|
40
|
+
start = pos;
|
|
41
|
+
cookiesSeparatorFound = false;
|
|
42
|
+
while(skipWhitespace()){
|
|
43
|
+
ch = cookiesString.charAt(pos);
|
|
44
|
+
if (ch === ",") {
|
|
45
|
+
// ',' is a cookie separator if we have later first '=', not ';' or ','
|
|
46
|
+
lastComma = pos;
|
|
47
|
+
pos += 1;
|
|
48
|
+
skipWhitespace();
|
|
49
|
+
nextStart = pos;
|
|
50
|
+
while(pos < cookiesString.length && notSpecialChar()){
|
|
51
|
+
pos += 1;
|
|
52
|
+
}
|
|
53
|
+
// currently special character
|
|
54
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
55
|
+
// we found cookies separator
|
|
56
|
+
cookiesSeparatorFound = true;
|
|
57
|
+
// pos is inside the next cookie, so back up and return it.
|
|
58
|
+
pos = nextStart;
|
|
59
|
+
cookiesStrings.push(cookiesString.slice(start, lastComma));
|
|
60
|
+
start = pos;
|
|
61
|
+
} else {
|
|
62
|
+
// in param ',' or param separator ';',
|
|
63
|
+
// we continue from that comma
|
|
64
|
+
pos = lastComma + 1;
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
pos += 1;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
71
|
+
cookiesStrings.push(cookiesString.slice(start));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return cookiesStrings;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { splitSetCookieString };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "11.0.0-alpha-tmp-
|
|
3
|
+
"version": "11.0.0-alpha-tmp-issues-6554.823+c4943c9f2",
|
|
4
4
|
"description": "The tRPC server library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,79 +24,214 @@
|
|
|
24
24
|
"exports": {
|
|
25
25
|
"./package.json": "./package.json",
|
|
26
26
|
".": {
|
|
27
|
-
"import":
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"default": "./dist/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"default": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"default": "./dist/index.js"
|
|
38
|
+
}
|
|
30
39
|
},
|
|
31
40
|
"./adapters/aws-lambda": {
|
|
32
|
-
"import":
|
|
33
|
-
|
|
34
|
-
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/adapters/aws-lambda/index.ts",
|
|
43
|
+
"default": "./dist/adapters/aws-lambda/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/adapters/aws-lambda/index.ts",
|
|
47
|
+
"default": "./dist/adapters/aws-lambda/index.js"
|
|
48
|
+
},
|
|
49
|
+
"default": {
|
|
50
|
+
"types": "./dist/adapters/aws-lambda/index.ts",
|
|
51
|
+
"default": "./dist/adapters/aws-lambda/index.js"
|
|
52
|
+
}
|
|
35
53
|
},
|
|
36
54
|
"./adapters/express": {
|
|
37
|
-
"import":
|
|
38
|
-
|
|
39
|
-
|
|
55
|
+
"import": {
|
|
56
|
+
"types": "./dist/adapters/express.ts",
|
|
57
|
+
"default": "./dist/adapters/express.mjs"
|
|
58
|
+
},
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./dist/adapters/express.ts",
|
|
61
|
+
"default": "./dist/adapters/express.js"
|
|
62
|
+
},
|
|
63
|
+
"default": {
|
|
64
|
+
"types": "./dist/adapters/express.ts",
|
|
65
|
+
"default": "./dist/adapters/express.js"
|
|
66
|
+
}
|
|
40
67
|
},
|
|
41
68
|
"./adapters/fastify": {
|
|
42
|
-
"import":
|
|
43
|
-
|
|
44
|
-
|
|
69
|
+
"import": {
|
|
70
|
+
"types": "./dist/adapters/fastify/index.ts",
|
|
71
|
+
"default": "./dist/adapters/fastify/index.mjs"
|
|
72
|
+
},
|
|
73
|
+
"require": {
|
|
74
|
+
"types": "./dist/adapters/fastify/index.ts",
|
|
75
|
+
"default": "./dist/adapters/fastify/index.js"
|
|
76
|
+
},
|
|
77
|
+
"default": {
|
|
78
|
+
"types": "./dist/adapters/fastify/index.ts",
|
|
79
|
+
"default": "./dist/adapters/fastify/index.js"
|
|
80
|
+
}
|
|
45
81
|
},
|
|
46
82
|
"./adapters/fetch": {
|
|
47
|
-
"import":
|
|
48
|
-
|
|
49
|
-
|
|
83
|
+
"import": {
|
|
84
|
+
"types": "./dist/adapters/fetch/index.ts",
|
|
85
|
+
"default": "./dist/adapters/fetch/index.mjs"
|
|
86
|
+
},
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/adapters/fetch/index.ts",
|
|
89
|
+
"default": "./dist/adapters/fetch/index.js"
|
|
90
|
+
},
|
|
91
|
+
"default": {
|
|
92
|
+
"types": "./dist/adapters/fetch/index.ts",
|
|
93
|
+
"default": "./dist/adapters/fetch/index.js"
|
|
94
|
+
}
|
|
50
95
|
},
|
|
51
96
|
"./adapters/next-app-dir": {
|
|
52
|
-
"import":
|
|
53
|
-
|
|
54
|
-
|
|
97
|
+
"import": {
|
|
98
|
+
"types": "./dist/adapters/next-app-dir.ts",
|
|
99
|
+
"default": "./dist/adapters/next-app-dir.mjs"
|
|
100
|
+
},
|
|
101
|
+
"require": {
|
|
102
|
+
"types": "./dist/adapters/next-app-dir.ts",
|
|
103
|
+
"default": "./dist/adapters/next-app-dir.js"
|
|
104
|
+
},
|
|
105
|
+
"default": {
|
|
106
|
+
"types": "./dist/adapters/next-app-dir.ts",
|
|
107
|
+
"default": "./dist/adapters/next-app-dir.js"
|
|
108
|
+
}
|
|
55
109
|
},
|
|
56
110
|
"./adapters/next": {
|
|
57
|
-
"import":
|
|
58
|
-
|
|
59
|
-
|
|
111
|
+
"import": {
|
|
112
|
+
"types": "./dist/adapters/next.ts",
|
|
113
|
+
"default": "./dist/adapters/next.mjs"
|
|
114
|
+
},
|
|
115
|
+
"require": {
|
|
116
|
+
"types": "./dist/adapters/next.ts",
|
|
117
|
+
"default": "./dist/adapters/next.js"
|
|
118
|
+
},
|
|
119
|
+
"default": {
|
|
120
|
+
"types": "./dist/adapters/next.ts",
|
|
121
|
+
"default": "./dist/adapters/next.js"
|
|
122
|
+
}
|
|
60
123
|
},
|
|
61
124
|
"./adapters/node-http": {
|
|
62
|
-
"import":
|
|
63
|
-
|
|
64
|
-
|
|
125
|
+
"import": {
|
|
126
|
+
"types": "./dist/adapters/node-http/index.ts",
|
|
127
|
+
"default": "./dist/adapters/node-http/index.mjs"
|
|
128
|
+
},
|
|
129
|
+
"require": {
|
|
130
|
+
"types": "./dist/adapters/node-http/index.ts",
|
|
131
|
+
"default": "./dist/adapters/node-http/index.js"
|
|
132
|
+
},
|
|
133
|
+
"default": {
|
|
134
|
+
"types": "./dist/adapters/node-http/index.ts",
|
|
135
|
+
"default": "./dist/adapters/node-http/index.js"
|
|
136
|
+
}
|
|
65
137
|
},
|
|
66
138
|
"./adapters/standalone": {
|
|
67
|
-
"import":
|
|
68
|
-
|
|
69
|
-
|
|
139
|
+
"import": {
|
|
140
|
+
"types": "./dist/adapters/standalone.ts",
|
|
141
|
+
"default": "./dist/adapters/standalone.mjs"
|
|
142
|
+
},
|
|
143
|
+
"require": {
|
|
144
|
+
"types": "./dist/adapters/standalone.ts",
|
|
145
|
+
"default": "./dist/adapters/standalone.js"
|
|
146
|
+
},
|
|
147
|
+
"default": {
|
|
148
|
+
"types": "./dist/adapters/standalone.ts",
|
|
149
|
+
"default": "./dist/adapters/standalone.js"
|
|
150
|
+
}
|
|
70
151
|
},
|
|
71
152
|
"./adapters/ws": {
|
|
72
|
-
"import":
|
|
73
|
-
|
|
74
|
-
|
|
153
|
+
"import": {
|
|
154
|
+
"types": "./dist/adapters/ws.ts",
|
|
155
|
+
"default": "./dist/adapters/ws.mjs"
|
|
156
|
+
},
|
|
157
|
+
"require": {
|
|
158
|
+
"types": "./dist/adapters/ws.ts",
|
|
159
|
+
"default": "./dist/adapters/ws.js"
|
|
160
|
+
},
|
|
161
|
+
"default": {
|
|
162
|
+
"types": "./dist/adapters/ws.ts",
|
|
163
|
+
"default": "./dist/adapters/ws.js"
|
|
164
|
+
}
|
|
75
165
|
},
|
|
76
166
|
"./http": {
|
|
77
|
-
"import":
|
|
78
|
-
|
|
79
|
-
|
|
167
|
+
"import": {
|
|
168
|
+
"types": "./dist/http.ts",
|
|
169
|
+
"default": "./dist/http.mjs"
|
|
170
|
+
},
|
|
171
|
+
"require": {
|
|
172
|
+
"types": "./dist/http.ts",
|
|
173
|
+
"default": "./dist/http.js"
|
|
174
|
+
},
|
|
175
|
+
"default": {
|
|
176
|
+
"types": "./dist/http.ts",
|
|
177
|
+
"default": "./dist/http.js"
|
|
178
|
+
}
|
|
80
179
|
},
|
|
81
180
|
"./observable": {
|
|
82
|
-
"import":
|
|
83
|
-
|
|
84
|
-
|
|
181
|
+
"import": {
|
|
182
|
+
"types": "./dist/observable/index.ts",
|
|
183
|
+
"default": "./dist/observable/index.mjs"
|
|
184
|
+
},
|
|
185
|
+
"require": {
|
|
186
|
+
"types": "./dist/observable/index.ts",
|
|
187
|
+
"default": "./dist/observable/index.js"
|
|
188
|
+
},
|
|
189
|
+
"default": {
|
|
190
|
+
"types": "./dist/observable/index.ts",
|
|
191
|
+
"default": "./dist/observable/index.js"
|
|
192
|
+
}
|
|
85
193
|
},
|
|
86
194
|
"./rpc": {
|
|
87
|
-
"import":
|
|
88
|
-
|
|
89
|
-
|
|
195
|
+
"import": {
|
|
196
|
+
"types": "./dist/rpc.ts",
|
|
197
|
+
"default": "./dist/rpc.mjs"
|
|
198
|
+
},
|
|
199
|
+
"require": {
|
|
200
|
+
"types": "./dist/rpc.ts",
|
|
201
|
+
"default": "./dist/rpc.js"
|
|
202
|
+
},
|
|
203
|
+
"default": {
|
|
204
|
+
"types": "./dist/rpc.ts",
|
|
205
|
+
"default": "./dist/rpc.js"
|
|
206
|
+
}
|
|
90
207
|
},
|
|
91
208
|
"./shared": {
|
|
92
|
-
"import":
|
|
93
|
-
|
|
94
|
-
|
|
209
|
+
"import": {
|
|
210
|
+
"types": "./dist/shared.ts",
|
|
211
|
+
"default": "./dist/shared.mjs"
|
|
212
|
+
},
|
|
213
|
+
"require": {
|
|
214
|
+
"types": "./dist/shared.ts",
|
|
215
|
+
"default": "./dist/shared.js"
|
|
216
|
+
},
|
|
217
|
+
"default": {
|
|
218
|
+
"types": "./dist/shared.ts",
|
|
219
|
+
"default": "./dist/shared.js"
|
|
220
|
+
}
|
|
95
221
|
},
|
|
96
222
|
"./unstable-core-do-not-import": {
|
|
97
|
-
"import":
|
|
98
|
-
|
|
99
|
-
|
|
223
|
+
"import": {
|
|
224
|
+
"types": "./dist/unstable-core-do-not-import.ts",
|
|
225
|
+
"default": "./dist/unstable-core-do-not-import.mjs"
|
|
226
|
+
},
|
|
227
|
+
"require": {
|
|
228
|
+
"types": "./dist/unstable-core-do-not-import.ts",
|
|
229
|
+
"default": "./dist/unstable-core-do-not-import.js"
|
|
230
|
+
},
|
|
231
|
+
"default": {
|
|
232
|
+
"types": "./dist/unstable-core-do-not-import.ts",
|
|
233
|
+
"default": "./dist/unstable-core-do-not-import.js"
|
|
234
|
+
}
|
|
100
235
|
}
|
|
101
236
|
},
|
|
102
237
|
"files": [
|
|
@@ -152,5 +287,5 @@
|
|
|
152
287
|
"peerDependencies": {
|
|
153
288
|
"typescript": ">=5.7.2"
|
|
154
289
|
},
|
|
155
|
-
"gitHead": "
|
|
290
|
+
"gitHead": "c4943c9f2d2aa2211ad98b4696c09f82535d8c58"
|
|
156
291
|
}
|