@temporary-name/server 1.9.3-alpha.592ae1e02e18c5274906b132313b083116248636 → 1.9.3-alpha.5dc8b200530586870ac736830d4584e0333cfd05
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/index.d.mts +3 -4
- package/dist/adapters/aws-lambda/index.d.ts +3 -4
- package/dist/adapters/aws-lambda/index.mjs +4 -6
- package/dist/adapters/fetch/index.d.mts +3 -4
- package/dist/adapters/fetch/index.d.ts +3 -4
- package/dist/adapters/fetch/index.mjs +4 -6
- package/dist/adapters/node/index.d.mts +3 -4
- package/dist/adapters/node/index.d.ts +3 -4
- package/dist/adapters/node/index.mjs +4 -6
- package/dist/adapters/standard/index.d.mts +20 -32
- package/dist/adapters/standard/index.d.ts +20 -32
- package/dist/adapters/standard/index.mjs +5 -7
- package/dist/helpers/index.mjs +3 -29
- package/dist/index.d.mts +71 -339
- package/dist/index.d.ts +71 -339
- package/dist/index.mjs +218 -355
- package/dist/openapi/index.d.mts +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.mjs +60 -77
- package/dist/plugins/index.d.mts +4 -80
- package/dist/plugins/index.d.ts +4 -80
- package/dist/plugins/index.mjs +17 -189
- package/dist/shared/{server.CQyYNJ1H.d.ts → server.B-meye9-.d.ts} +2 -4
- package/dist/shared/{server.DLsti1Pv.mjs → server.Ba0Z2fNc.mjs} +58 -97
- package/dist/shared/server.C1RJffw4.mjs +30 -0
- package/dist/shared/server.DkYpsO6W.d.mts +251 -0
- package/dist/shared/server.DkYpsO6W.d.ts +251 -0
- package/dist/shared/{server.SLLuK6_v.d.ts → server.DwNnHUZP.d.ts} +2 -2
- package/dist/shared/{server.BeuTpcmO.d.mts → server.I-tTl_ce.d.mts} +2 -2
- package/dist/shared/{server.BEHw7Eyx.mjs → server.JtIZ8YG7.mjs} +1 -11
- package/dist/shared/server.miXh-9wo.mjs +416 -0
- package/dist/shared/{server.C1fnTLq0.d.mts → server.vLcMd_kA.d.mts} +2 -4
- package/package.json +10 -21
- package/dist/shared/server.BKSOrA6h.d.mts +0 -192
- package/dist/shared/server.BKSOrA6h.d.ts +0 -192
- package/dist/shared/server.BKh8I1Ny.mjs +0 -239
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { MaybeOptionalOptions } from '@temporary-name/shared';
|
|
2
2
|
import { SendStandardResponseOptions, APIGatewayProxyEventV2, ResponseStream } from '@temporary-name/standard-server-aws-lambda';
|
|
3
|
-
import { C as Context, R as Router } from '../../shared/server.
|
|
4
|
-
import { b as StandardHandlerOptions } from '../../shared/server.
|
|
5
|
-
import { F as FriendlyStandardHandleOptions } from '../../shared/server.
|
|
3
|
+
import { C as Context, R as Router } from '../../shared/server.DkYpsO6W.mjs';
|
|
4
|
+
import { b as StandardHandlerOptions } from '../../shared/server.vLcMd_kA.mjs';
|
|
5
|
+
import { F as FriendlyStandardHandleOptions } from '../../shared/server.I-tTl_ce.mjs';
|
|
6
6
|
import '@temporary-name/contract';
|
|
7
|
-
import '@temporary-name/standard-server';
|
|
8
7
|
|
|
9
8
|
interface AwsLambdaHandlerOptions<T extends Context> extends StandardHandlerOptions<T>, SendStandardResponseOptions {
|
|
10
9
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { MaybeOptionalOptions } from '@temporary-name/shared';
|
|
2
2
|
import { SendStandardResponseOptions, APIGatewayProxyEventV2, ResponseStream } from '@temporary-name/standard-server-aws-lambda';
|
|
3
|
-
import { C as Context, R as Router } from '../../shared/server.
|
|
4
|
-
import { b as StandardHandlerOptions } from '../../shared/server.
|
|
5
|
-
import { F as FriendlyStandardHandleOptions } from '../../shared/server.
|
|
3
|
+
import { C as Context, R as Router } from '../../shared/server.DkYpsO6W.js';
|
|
4
|
+
import { b as StandardHandlerOptions } from '../../shared/server.B-meye9-.js';
|
|
5
|
+
import { F as FriendlyStandardHandleOptions } from '../../shared/server.DwNnHUZP.js';
|
|
6
6
|
import '@temporary-name/contract';
|
|
7
|
-
import '@temporary-name/standard-server';
|
|
8
7
|
|
|
9
8
|
interface AwsLambdaHandlerOptions<T extends Context> extends StandardHandlerOptions<T>, SendStandardResponseOptions {
|
|
10
9
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { resolveMaybeOptionalOptions } from '@temporary-name/shared';
|
|
2
2
|
import { toStandardLazyRequest, sendStandardResponse } from '@temporary-name/standard-server-aws-lambda';
|
|
3
|
-
import { S as StandardHandler, r as resolveFriendlyStandardHandleOptions } from '../../shared/server.
|
|
3
|
+
import { S as StandardHandler, r as resolveFriendlyStandardHandleOptions } from '../../shared/server.Ba0Z2fNc.mjs';
|
|
4
4
|
import '@temporary-name/contract';
|
|
5
5
|
import '@temporary-name/standard-server';
|
|
6
6
|
import '@temporary-name/server';
|
|
7
7
|
import 'rou3';
|
|
8
|
-
import '../../shared/server.
|
|
9
|
-
import '
|
|
10
|
-
import '
|
|
11
|
-
import 'zod/v4/core';
|
|
12
|
-
import '../../shared/server.BEHw7Eyx.mjs';
|
|
8
|
+
import '../../shared/server.miXh-9wo.mjs';
|
|
9
|
+
import '@temporary-name/zod';
|
|
10
|
+
import '../../shared/server.JtIZ8YG7.mjs';
|
|
13
11
|
|
|
14
12
|
class AwsLambdaHandler {
|
|
15
13
|
sendStandardResponseOptions;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { C as Context, R as Router } from '../../shared/server.
|
|
1
|
+
import { C as Context, R as Router } from '../../shared/server.DkYpsO6W.mjs';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@temporary-name/shared';
|
|
3
3
|
import { ToFetchResponseOptions } from '@temporary-name/standard-server-fetch';
|
|
4
|
-
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.
|
|
5
|
-
import { F as FriendlyStandardHandleOptions } from '../../shared/server.
|
|
4
|
+
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.vLcMd_kA.mjs';
|
|
5
|
+
import { F as FriendlyStandardHandleOptions } from '../../shared/server.I-tTl_ce.mjs';
|
|
6
6
|
import '@temporary-name/contract';
|
|
7
|
-
import '@temporary-name/standard-server';
|
|
8
7
|
|
|
9
8
|
interface FetchHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
10
9
|
initRuntimeAdapter?(options: FetchHandlerOptions<T>): void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { C as Context, R as Router } from '../../shared/server.
|
|
1
|
+
import { C as Context, R as Router } from '../../shared/server.DkYpsO6W.js';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@temporary-name/shared';
|
|
3
3
|
import { ToFetchResponseOptions } from '@temporary-name/standard-server-fetch';
|
|
4
|
-
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.
|
|
5
|
-
import { F as FriendlyStandardHandleOptions } from '../../shared/server.
|
|
4
|
+
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.B-meye9-.js';
|
|
5
|
+
import { F as FriendlyStandardHandleOptions } from '../../shared/server.DwNnHUZP.js';
|
|
6
6
|
import '@temporary-name/contract';
|
|
7
|
-
import '@temporary-name/standard-server';
|
|
8
7
|
|
|
9
8
|
interface FetchHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
10
9
|
initRuntimeAdapter?(options: FetchHandlerOptions<T>): void;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { ORPCError, toArray, intercept, resolveMaybeOptionalOptions } from '@temporary-name/shared';
|
|
2
2
|
import { toStandardLazyRequest, toFetchResponse } from '@temporary-name/standard-server-fetch';
|
|
3
|
-
import { C as CompositeStandardHandlerPlugin, S as StandardHandler, r as resolveFriendlyStandardHandleOptions } from '../../shared/server.
|
|
3
|
+
import { C as CompositeStandardHandlerPlugin, S as StandardHandler, r as resolveFriendlyStandardHandleOptions } from '../../shared/server.Ba0Z2fNc.mjs';
|
|
4
4
|
import '@temporary-name/contract';
|
|
5
5
|
import '@temporary-name/standard-server';
|
|
6
6
|
import '@temporary-name/server';
|
|
7
7
|
import 'rou3';
|
|
8
|
-
import '
|
|
9
|
-
import '../../shared/server.
|
|
10
|
-
import '
|
|
11
|
-
import 'zod';
|
|
12
|
-
import 'zod/v4/core';
|
|
8
|
+
import '@temporary-name/zod';
|
|
9
|
+
import '../../shared/server.miXh-9wo.mjs';
|
|
10
|
+
import '../../shared/server.JtIZ8YG7.mjs';
|
|
13
11
|
|
|
14
12
|
class BodyLimitPlugin {
|
|
15
13
|
maxBodySize;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { C as Context, R as Router } from '../../shared/server.
|
|
1
|
+
import { C as Context, R as Router } from '../../shared/server.DkYpsO6W.mjs';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@temporary-name/shared';
|
|
3
3
|
import { SendStandardResponseOptions, NodeHttpRequest, NodeHttpResponse } from '@temporary-name/standard-server-node';
|
|
4
|
-
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.
|
|
5
|
-
import { F as FriendlyStandardHandleOptions } from '../../shared/server.
|
|
4
|
+
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.vLcMd_kA.mjs';
|
|
5
|
+
import { F as FriendlyStandardHandleOptions } from '../../shared/server.I-tTl_ce.mjs';
|
|
6
6
|
import compression from '@temporary-name/interop/compression';
|
|
7
7
|
import '@temporary-name/contract';
|
|
8
|
-
import '@temporary-name/standard-server';
|
|
9
8
|
|
|
10
9
|
interface NodeHttpHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
11
10
|
initRuntimeAdapter?(options: NodeHttpHandlerOptions<T>): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { C as Context, R as Router } from '../../shared/server.
|
|
1
|
+
import { C as Context, R as Router } from '../../shared/server.DkYpsO6W.js';
|
|
2
2
|
import { Interceptor, MaybeOptionalOptions } from '@temporary-name/shared';
|
|
3
3
|
import { SendStandardResponseOptions, NodeHttpRequest, NodeHttpResponse } from '@temporary-name/standard-server-node';
|
|
4
|
-
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.
|
|
5
|
-
import { F as FriendlyStandardHandleOptions } from '../../shared/server.
|
|
4
|
+
import { a as StandardHandlerPlugin, C as CompositeStandardHandlerPlugin, b as StandardHandlerOptions, c as StandardHandleOptions } from '../../shared/server.B-meye9-.js';
|
|
5
|
+
import { F as FriendlyStandardHandleOptions } from '../../shared/server.DwNnHUZP.js';
|
|
6
6
|
import compression from '@temporary-name/interop/compression';
|
|
7
7
|
import '@temporary-name/contract';
|
|
8
|
-
import '@temporary-name/standard-server';
|
|
9
8
|
|
|
10
9
|
interface NodeHttpHandlerPlugin<T extends Context> extends StandardHandlerPlugin<T> {
|
|
11
10
|
initRuntimeAdapter?(options: NodeHttpHandlerOptions<T>): void;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { once, ORPCError, toArray, intercept, resolveMaybeOptionalOptions } from '@temporary-name/shared';
|
|
2
2
|
import compression from '@temporary-name/interop/compression';
|
|
3
3
|
import { toStandardLazyRequest, sendStandardResponse } from '@temporary-name/standard-server-node';
|
|
4
|
-
import { C as CompositeStandardHandlerPlugin, S as StandardHandler, r as resolveFriendlyStandardHandleOptions } from '../../shared/server.
|
|
4
|
+
import { C as CompositeStandardHandlerPlugin, S as StandardHandler, r as resolveFriendlyStandardHandleOptions } from '../../shared/server.Ba0Z2fNc.mjs';
|
|
5
5
|
import '@temporary-name/contract';
|
|
6
6
|
import '@temporary-name/standard-server';
|
|
7
7
|
import '@temporary-name/server';
|
|
8
8
|
import 'rou3';
|
|
9
|
-
import '
|
|
10
|
-
import '../../shared/server.
|
|
11
|
-
import '
|
|
12
|
-
import 'zod';
|
|
13
|
-
import 'zod/v4/core';
|
|
9
|
+
import '@temporary-name/zod';
|
|
10
|
+
import '../../shared/server.miXh-9wo.mjs';
|
|
11
|
+
import '../../shared/server.JtIZ8YG7.mjs';
|
|
14
12
|
|
|
15
13
|
class BodyLimitPlugin {
|
|
16
14
|
maxBodySize;
|
|
@@ -1,42 +1,30 @@
|
|
|
1
|
-
export { C as CompositeStandardHandlerPlugin, c as StandardHandleOptions, d as StandardHandleResult, e as StandardHandler, S as StandardHandlerInterceptorOptions, b as StandardHandlerOptions, a as StandardHandlerPlugin } from '../../shared/server.
|
|
1
|
+
export { C as CompositeStandardHandlerPlugin, c as StandardHandleOptions, d as StandardHandleResult, e as StandardHandler, S as StandardHandlerInterceptorOptions, b as StandardHandlerOptions, a as StandardHandlerPlugin } from '../../shared/server.vLcMd_kA.mjs';
|
|
2
2
|
import { AnyProcedure, AnyRouter } from '@temporary-name/server';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { StandardLazyRequest, StandardResponse } from '@temporary-name/standard-server';
|
|
6
|
-
import { h as AnyProcedure$1, f as AnyRouter$1 } from '../../shared/server.BKSOrA6h.mjs';
|
|
7
|
-
export { F as FriendlyStandardHandleOptions, d as decodeParams, r as resolveFriendlyStandardHandleOptions, t as toRou3Pattern } from '../../shared/server.BeuTpcmO.mjs';
|
|
3
|
+
import { StandardLazyRequest, StandardResponse, ORPCError, HTTPPath } from '@temporary-name/shared';
|
|
4
|
+
export { F as FriendlyStandardHandleOptions, d as decodeParams, r as resolveFriendlyStandardHandleOptions, t as toRou3Pattern } from '../../shared/server.I-tTl_ce.mjs';
|
|
8
5
|
import '@temporary-name/contract';
|
|
6
|
+
import '../../shared/server.DkYpsO6W.mjs';
|
|
9
7
|
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
declare class StandardOpenAPIMatcher implements StandardMatcher$1 {
|
|
19
|
-
private readonly tree;
|
|
20
|
-
private pendingRouters;
|
|
21
|
-
init(router: AnyRouter, path?: readonly string[]): void;
|
|
22
|
-
match(method: string, pathname: HTTPPath): Promise<StandardMatchResult$1>;
|
|
23
|
-
}
|
|
8
|
+
declare function decode(request: StandardLazyRequest, pathParams: Record<string, string> | undefined): Promise<{
|
|
9
|
+
path: unknown;
|
|
10
|
+
query: unknown;
|
|
11
|
+
headers: Headers;
|
|
12
|
+
body: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
declare function encode(output: unknown, procedure: AnyProcedure): StandardResponse;
|
|
15
|
+
declare function encodeError(error: ORPCError<any, any>): StandardResponse;
|
|
24
16
|
|
|
25
|
-
type StandardParams = Record<string, string>;
|
|
26
17
|
type StandardMatchResult = {
|
|
27
18
|
path: readonly string[];
|
|
28
|
-
procedure: AnyProcedure
|
|
29
|
-
params?:
|
|
19
|
+
procedure: AnyProcedure;
|
|
20
|
+
params?: Record<string, string>;
|
|
30
21
|
} | undefined;
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
declare class StandardOpenAPIMatcher {
|
|
23
|
+
private readonly tree;
|
|
24
|
+
private pendingRouters;
|
|
25
|
+
init(router: AnyRouter, path?: readonly string[]): void;
|
|
33
26
|
match(method: string, pathname: HTTPPath): Promise<StandardMatchResult>;
|
|
34
27
|
}
|
|
35
|
-
interface StandardCodec {
|
|
36
|
-
encode(output: unknown, procedure: AnyProcedure$1): StandardResponse;
|
|
37
|
-
encodeError(error: ORPCError<any, any>): StandardResponse;
|
|
38
|
-
decode(request: StandardLazyRequest, params: StandardParams | undefined, procedure: AnyProcedure$1): Promise<unknown>;
|
|
39
|
-
}
|
|
40
28
|
|
|
41
|
-
export {
|
|
42
|
-
export type {
|
|
29
|
+
export { StandardOpenAPIMatcher, decode, encode, encodeError };
|
|
30
|
+
export type { StandardMatchResult };
|
|
@@ -1,42 +1,30 @@
|
|
|
1
|
-
export { C as CompositeStandardHandlerPlugin, c as StandardHandleOptions, d as StandardHandleResult, e as StandardHandler, S as StandardHandlerInterceptorOptions, b as StandardHandlerOptions, a as StandardHandlerPlugin } from '../../shared/server.
|
|
1
|
+
export { C as CompositeStandardHandlerPlugin, c as StandardHandleOptions, d as StandardHandleResult, e as StandardHandler, S as StandardHandlerInterceptorOptions, b as StandardHandlerOptions, a as StandardHandlerPlugin } from '../../shared/server.B-meye9-.js';
|
|
2
2
|
import { AnyProcedure, AnyRouter } from '@temporary-name/server';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { StandardLazyRequest, StandardResponse } from '@temporary-name/standard-server';
|
|
6
|
-
import { h as AnyProcedure$1, f as AnyRouter$1 } from '../../shared/server.BKSOrA6h.js';
|
|
7
|
-
export { F as FriendlyStandardHandleOptions, d as decodeParams, r as resolveFriendlyStandardHandleOptions, t as toRou3Pattern } from '../../shared/server.SLLuK6_v.js';
|
|
3
|
+
import { StandardLazyRequest, StandardResponse, ORPCError, HTTPPath } from '@temporary-name/shared';
|
|
4
|
+
export { F as FriendlyStandardHandleOptions, d as decodeParams, r as resolveFriendlyStandardHandleOptions, t as toRou3Pattern } from '../../shared/server.DwNnHUZP.js';
|
|
8
5
|
import '@temporary-name/contract';
|
|
6
|
+
import '../../shared/server.DkYpsO6W.js';
|
|
9
7
|
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
declare class StandardOpenAPIMatcher implements StandardMatcher$1 {
|
|
19
|
-
private readonly tree;
|
|
20
|
-
private pendingRouters;
|
|
21
|
-
init(router: AnyRouter, path?: readonly string[]): void;
|
|
22
|
-
match(method: string, pathname: HTTPPath): Promise<StandardMatchResult$1>;
|
|
23
|
-
}
|
|
8
|
+
declare function decode(request: StandardLazyRequest, pathParams: Record<string, string> | undefined): Promise<{
|
|
9
|
+
path: unknown;
|
|
10
|
+
query: unknown;
|
|
11
|
+
headers: Headers;
|
|
12
|
+
body: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
declare function encode(output: unknown, procedure: AnyProcedure): StandardResponse;
|
|
15
|
+
declare function encodeError(error: ORPCError<any, any>): StandardResponse;
|
|
24
16
|
|
|
25
|
-
type StandardParams = Record<string, string>;
|
|
26
17
|
type StandardMatchResult = {
|
|
27
18
|
path: readonly string[];
|
|
28
|
-
procedure: AnyProcedure
|
|
29
|
-
params?:
|
|
19
|
+
procedure: AnyProcedure;
|
|
20
|
+
params?: Record<string, string>;
|
|
30
21
|
} | undefined;
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
declare class StandardOpenAPIMatcher {
|
|
23
|
+
private readonly tree;
|
|
24
|
+
private pendingRouters;
|
|
25
|
+
init(router: AnyRouter, path?: readonly string[]): void;
|
|
33
26
|
match(method: string, pathname: HTTPPath): Promise<StandardMatchResult>;
|
|
34
27
|
}
|
|
35
|
-
interface StandardCodec {
|
|
36
|
-
encode(output: unknown, procedure: AnyProcedure$1): StandardResponse;
|
|
37
|
-
encodeError(error: ORPCError<any, any>): StandardResponse;
|
|
38
|
-
decode(request: StandardLazyRequest, params: StandardParams | undefined, procedure: AnyProcedure$1): Promise<unknown>;
|
|
39
|
-
}
|
|
40
28
|
|
|
41
|
-
export {
|
|
42
|
-
export type {
|
|
29
|
+
export { StandardOpenAPIMatcher, decode, encode, encodeError };
|
|
30
|
+
export type { StandardMatchResult };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
export { C as CompositeStandardHandlerPlugin, S as StandardHandler,
|
|
1
|
+
export { C as CompositeStandardHandlerPlugin, S as StandardHandler, b as StandardOpenAPIMatcher, d as decode, c as decodeParams, e as encode, a as encodeError, r as resolveFriendlyStandardHandleOptions, t as toRou3Pattern } from '../../shared/server.Ba0Z2fNc.mjs';
|
|
2
2
|
import '@temporary-name/shared';
|
|
3
|
-
import '
|
|
4
|
-
import '../../shared/server.BKh8I1Ny.mjs';
|
|
3
|
+
import '../../shared/server.miXh-9wo.mjs';
|
|
5
4
|
import '@temporary-name/contract';
|
|
6
|
-
import '
|
|
7
|
-
import 'zod';
|
|
8
|
-
import '
|
|
9
|
-
import '../../shared/server.BEHw7Eyx.mjs';
|
|
5
|
+
import '@temporary-name/standard-server';
|
|
6
|
+
import '@temporary-name/zod';
|
|
7
|
+
import '../../shared/server.JtIZ8YG7.mjs';
|
|
10
8
|
import '@temporary-name/server';
|
|
11
9
|
import 'rou3';
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export { d as deleteCookie, g as getCookie, s as setCookie } from '../shared/server.C1RJffw4.mjs';
|
|
2
|
+
import 'cookie';
|
|
2
3
|
|
|
3
4
|
function encodeBase64url(data) {
|
|
4
5
|
const chunkSize = 8192;
|
|
@@ -30,33 +31,6 @@ function decodeBase64url(base64url) {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
function setCookie(headers, name, value, options = {}) {
|
|
34
|
-
if (headers === void 0) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
const cookieString = serialize(name, value, {
|
|
38
|
-
path: "/",
|
|
39
|
-
...options
|
|
40
|
-
});
|
|
41
|
-
headers.append("Set-Cookie", cookieString);
|
|
42
|
-
}
|
|
43
|
-
function getCookie(headers, name, options = {}) {
|
|
44
|
-
if (headers === void 0) {
|
|
45
|
-
return void 0;
|
|
46
|
-
}
|
|
47
|
-
const cookieHeader = headers.get("cookie");
|
|
48
|
-
if (cookieHeader === null) {
|
|
49
|
-
return void 0;
|
|
50
|
-
}
|
|
51
|
-
return parse(cookieHeader, options)[name];
|
|
52
|
-
}
|
|
53
|
-
function deleteCookie(headers, name, options = {}) {
|
|
54
|
-
return setCookie(headers, name, "", {
|
|
55
|
-
...options,
|
|
56
|
-
maxAge: 0
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
34
|
const PBKDF2_CONFIG = {
|
|
61
35
|
name: "PBKDF2",
|
|
62
36
|
iterations: 6e4,
|
|
@@ -165,4 +139,4 @@ function getSignedValue(signedValue) {
|
|
|
165
139
|
return signedValue.slice(0, lastDotIndex);
|
|
166
140
|
}
|
|
167
141
|
|
|
168
|
-
export { decodeBase64url, decrypt,
|
|
142
|
+
export { decodeBase64url, decrypt, encodeBase64url, encrypt, getSignedValue, sign, unsign };
|