@rg-dev/stdlib 1.0.45 → 1.0.47
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/lib/trpc-helpers.cjs +2 -2
- package/lib/trpc-helpers.d.cts +3 -3
- package/lib/trpc-helpers.d.ts +3 -3
- package/lib/trpc-helpers.js +2 -2
- package/package.json +1 -1
package/lib/trpc-helpers.cjs
CHANGED
|
@@ -46,13 +46,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
46
46
|
// src/trpc-helpers.ts
|
|
47
47
|
var trpc_helpers_exports = {};
|
|
48
48
|
__export(trpc_helpers_exports, {
|
|
49
|
-
|
|
49
|
+
TrpcServerHelpers: () => TrpcServerHelpers
|
|
50
50
|
});
|
|
51
51
|
module.exports = __toCommonJS(trpc_helpers_exports);
|
|
52
52
|
var import_server = require("@trpc/server");
|
|
53
53
|
var trpcExpress = __toESM(require("@trpc/server/adapters/express"), 1);
|
|
54
54
|
var import_superjson = __toESM(require("superjson"), 1);
|
|
55
|
-
var
|
|
55
|
+
var TrpcServerHelpers = class {
|
|
56
56
|
static createExpressTrpcServer() {
|
|
57
57
|
if (globalThis.Headers == void 0) {
|
|
58
58
|
throw new Error("node version too old?, globalThis.Headers undefined");
|
package/lib/trpc-helpers.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import { initTRPC } from '@trpc/server';
|
|
|
3
3
|
import * as _trpc_server_dist_unstable_core_do_not_import from '@trpc/server/dist/unstable-core-do-not-import';
|
|
4
4
|
import * as trpcExpress from '@trpc/server/adapters/express';
|
|
5
5
|
|
|
6
|
-
type
|
|
7
|
-
declare class
|
|
6
|
+
type TrpcExpressRootType = ReturnType<ReturnType<typeof initTRPC.context<trpcExpress.CreateExpressContextOptions>>['create']>;
|
|
7
|
+
declare class TrpcServerHelpers {
|
|
8
8
|
static createExpressTrpcServer(): {
|
|
9
9
|
_config: _trpc_server_dist_unstable_core_do_not_import.RootConfig<{
|
|
10
10
|
ctx: trpcExpress.CreateExpressContextOptions;
|
|
@@ -36,4 +36,4 @@ declare class trpcServerHelpers {
|
|
|
36
36
|
static createTrpcExpressMiddleware(opts: Omit<Parameters<typeof trpcExpress.createExpressMiddleware>[0], 'createContext'>): express.Handler;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export { type
|
|
39
|
+
export { type TrpcExpressRootType, TrpcServerHelpers };
|
package/lib/trpc-helpers.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { initTRPC } from '@trpc/server';
|
|
|
3
3
|
import * as _trpc_server_dist_unstable_core_do_not_import from '@trpc/server/dist/unstable-core-do-not-import';
|
|
4
4
|
import * as trpcExpress from '@trpc/server/adapters/express';
|
|
5
5
|
|
|
6
|
-
type
|
|
7
|
-
declare class
|
|
6
|
+
type TrpcExpressRootType = ReturnType<ReturnType<typeof initTRPC.context<trpcExpress.CreateExpressContextOptions>>['create']>;
|
|
7
|
+
declare class TrpcServerHelpers {
|
|
8
8
|
static createExpressTrpcServer(): {
|
|
9
9
|
_config: _trpc_server_dist_unstable_core_do_not_import.RootConfig<{
|
|
10
10
|
ctx: trpcExpress.CreateExpressContextOptions;
|
|
@@ -36,4 +36,4 @@ declare class trpcServerHelpers {
|
|
|
36
36
|
static createTrpcExpressMiddleware(opts: Omit<Parameters<typeof trpcExpress.createExpressMiddleware>[0], 'createContext'>): express.Handler;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export { type
|
|
39
|
+
export { type TrpcExpressRootType, TrpcServerHelpers };
|
package/lib/trpc-helpers.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "@trpc/server";
|
|
25
25
|
import * as trpcExpress from "@trpc/server/adapters/express";
|
|
26
26
|
import superjson from "superjson";
|
|
27
|
-
var
|
|
27
|
+
var TrpcServerHelpers = class {
|
|
28
28
|
static createExpressTrpcServer() {
|
|
29
29
|
if (globalThis.Headers == void 0) {
|
|
30
30
|
throw new Error("node version too old?, globalThis.Headers undefined");
|
|
@@ -41,5 +41,5 @@ var trpcServerHelpers = class {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
TrpcServerHelpers
|
|
45
45
|
};
|