@trpc/server 10.0.0-proxy-beta.9 → 10.0.0-proxy-beta.10
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.js +3 -3
- package/dist/adapters/aws-lambda/index.mjs +3 -3
- package/dist/adapters/express.js +3 -3
- package/dist/adapters/express.mjs +3 -3
- package/dist/adapters/fastify/index.js +2 -2
- package/dist/adapters/fastify/index.mjs +2 -2
- package/dist/adapters/fetch/index.js +2 -2
- package/dist/adapters/fetch/index.mjs +2 -2
- package/dist/adapters/next.js +3 -3
- package/dist/adapters/next.mjs +3 -3
- package/dist/adapters/node-http/index.js +3 -3
- package/dist/adapters/node-http/index.mjs +3 -3
- package/dist/adapters/standalone.js +3 -3
- package/dist/adapters/standalone.mjs +3 -3
- package/dist/{index-5b2e87d4.mjs → index-354358bb.mjs} +3 -0
- package/dist/{index-ae2b3f4b.js → index-b8627db5.js} +3 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +5 -5
- package/dist/{nodeHTTPRequestHandler-b59d2c10.mjs → nodeHTTPRequestHandler-4062f93e.mjs} +1 -1
- package/dist/{nodeHTTPRequestHandler-d30a4185.js → nodeHTTPRequestHandler-7b588236.js} +1 -1
- package/dist/{resolveHTTPResponse-0a8e47b8.js → resolveHTTPResponse-3af47381.js} +1 -1
- package/dist/{resolveHTTPResponse-24d99c94.mjs → resolveHTTPResponse-8b09a709.mjs} +1 -1
- package/dist/{router-bf52be2e.js → router-9960eb02.js} +1 -1
- package/dist/{router-6e04fa44.mjs → router-dabfef7f.mjs} +1 -1
- package/dist/shared/createProxy/index.d.ts.map +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/index.mjs +1 -1
- package/package.json +6 -6
- package/src/shared/createProxy/index.ts +3 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('../../router-
|
|
5
|
+
require('../../router-9960eb02.js');
|
|
6
6
|
var TRPCError = require('../../TRPCError-fe9113e5.js');
|
|
7
|
-
var resolveHTTPResponse = require('../../resolveHTTPResponse-
|
|
7
|
+
var resolveHTTPResponse = require('../../resolveHTTPResponse-3af47381.js');
|
|
8
8
|
require('../../codes-76c38a34.js');
|
|
9
|
-
require('../../index-
|
|
9
|
+
require('../../index-b8627db5.js');
|
|
10
10
|
require('../../transformTRPCResponse-11ac69cc.js');
|
|
11
11
|
|
|
12
12
|
function isPayloadV1(event) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../../router-
|
|
1
|
+
import '../../router-dabfef7f.mjs';
|
|
2
2
|
import { T as TRPCError } from '../../TRPCError-281ac25a.mjs';
|
|
3
|
-
import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-
|
|
3
|
+
import { r as resolveHTTPResponse } from '../../resolveHTTPResponse-8b09a709.mjs';
|
|
4
4
|
import '../../codes-7d21f749.mjs';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-354358bb.mjs';
|
|
6
6
|
import '../../transformTRPCResponse-c8138d5f.mjs';
|
|
7
7
|
|
|
8
8
|
function isPayloadV1(event) {
|
package/dist/adapters/express.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-
|
|
6
|
-
require('../resolveHTTPResponse-
|
|
5
|
+
var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-7b588236.js');
|
|
6
|
+
require('../resolveHTTPResponse-3af47381.js');
|
|
7
7
|
require('../TRPCError-fe9113e5.js');
|
|
8
8
|
require('../codes-76c38a34.js');
|
|
9
|
-
require('../index-
|
|
9
|
+
require('../index-b8627db5.js');
|
|
10
10
|
require('../transformTRPCResponse-11ac69cc.js');
|
|
11
11
|
|
|
12
12
|
function createExpressMiddleware(opts) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-
|
|
2
|
-
import '../resolveHTTPResponse-
|
|
1
|
+
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-4062f93e.mjs';
|
|
2
|
+
import '../resolveHTTPResponse-8b09a709.mjs';
|
|
3
3
|
import '../TRPCError-281ac25a.mjs';
|
|
4
4
|
import '../codes-7d21f749.mjs';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-354358bb.mjs';
|
|
6
6
|
import '../transformTRPCResponse-c8138d5f.mjs';
|
|
7
7
|
|
|
8
8
|
function createExpressMiddleware(opts) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var resolveHTTPResponse = require('../../resolveHTTPResponse-
|
|
5
|
+
var resolveHTTPResponse = require('../../resolveHTTPResponse-3af47381.js');
|
|
6
6
|
var adapters_ws = require('../ws.js');
|
|
7
7
|
require('../../TRPCError-fe9113e5.js');
|
|
8
8
|
require('../../codes-76c38a34.js');
|
|
9
|
-
require('../../index-
|
|
9
|
+
require('../../index-b8627db5.js');
|
|
10
10
|
require('../../transformTRPCResponse-11ac69cc.js');
|
|
11
11
|
require('../../observable-b651bf11.js');
|
|
12
12
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as assertNotBrowser, r as resolveHTTPResponse } from '../../resolveHTTPResponse-
|
|
1
|
+
import { b as assertNotBrowser, r as resolveHTTPResponse } from '../../resolveHTTPResponse-8b09a709.mjs';
|
|
2
2
|
import { applyWSSHandler } from '../ws.mjs';
|
|
3
3
|
import '../../TRPCError-281ac25a.mjs';
|
|
4
4
|
import '../../codes-7d21f749.mjs';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-354358bb.mjs';
|
|
6
6
|
import '../../transformTRPCResponse-c8138d5f.mjs';
|
|
7
7
|
import '../../observable-e129ac9d.mjs';
|
|
8
8
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var resolveHTTPResponse = require('../../resolveHTTPResponse-
|
|
5
|
+
var resolveHTTPResponse = require('../../resolveHTTPResponse-3af47381.js');
|
|
6
6
|
require('../../TRPCError-fe9113e5.js');
|
|
7
7
|
require('../../codes-76c38a34.js');
|
|
8
|
-
require('../../index-
|
|
8
|
+
require('../../index-b8627db5.js');
|
|
9
9
|
require('../../transformTRPCResponse-11ac69cc.js');
|
|
10
10
|
|
|
11
11
|
resolveHTTPResponse.assertNotBrowser();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as assertNotBrowser, r as resolveHTTPResponse } from '../../resolveHTTPResponse-
|
|
1
|
+
import { b as assertNotBrowser, r as resolveHTTPResponse } from '../../resolveHTTPResponse-8b09a709.mjs';
|
|
2
2
|
import '../../TRPCError-281ac25a.mjs';
|
|
3
3
|
import '../../codes-7d21f749.mjs';
|
|
4
|
-
import '../../index-
|
|
4
|
+
import '../../index-354358bb.mjs';
|
|
5
5
|
import '../../transformTRPCResponse-c8138d5f.mjs';
|
|
6
6
|
|
|
7
7
|
assertNotBrowser();
|
package/dist/adapters/next.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var TRPCError = require('../TRPCError-fe9113e5.js');
|
|
6
|
-
var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-
|
|
7
|
-
require('../resolveHTTPResponse-
|
|
6
|
+
var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-7b588236.js');
|
|
7
|
+
require('../resolveHTTPResponse-3af47381.js');
|
|
8
8
|
require('../codes-76c38a34.js');
|
|
9
|
-
require('../index-
|
|
9
|
+
require('../index-b8627db5.js');
|
|
10
10
|
require('../transformTRPCResponse-11ac69cc.js');
|
|
11
11
|
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
package/dist/adapters/next.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { T as TRPCError } from '../TRPCError-281ac25a.mjs';
|
|
2
|
-
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-
|
|
3
|
-
import '../resolveHTTPResponse-
|
|
2
|
+
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-4062f93e.mjs';
|
|
3
|
+
import '../resolveHTTPResponse-8b09a709.mjs';
|
|
4
4
|
import '../codes-7d21f749.mjs';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-354358bb.mjs';
|
|
6
6
|
import '../transformTRPCResponse-c8138d5f.mjs';
|
|
7
7
|
|
|
8
8
|
/* eslint-disable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var nodeHTTPRequestHandler = require('../../nodeHTTPRequestHandler-
|
|
6
|
-
require('../../resolveHTTPResponse-
|
|
5
|
+
var nodeHTTPRequestHandler = require('../../nodeHTTPRequestHandler-7b588236.js');
|
|
6
|
+
require('../../resolveHTTPResponse-3af47381.js');
|
|
7
7
|
require('../../TRPCError-fe9113e5.js');
|
|
8
8
|
require('../../codes-76c38a34.js');
|
|
9
|
-
require('../../index-
|
|
9
|
+
require('../../index-b8627db5.js');
|
|
10
10
|
require('../../transformTRPCResponse-11ac69cc.js');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { n as nodeHTTPRequestHandler } from '../../nodeHTTPRequestHandler-
|
|
2
|
-
import '../../resolveHTTPResponse-
|
|
1
|
+
export { n as nodeHTTPRequestHandler } from '../../nodeHTTPRequestHandler-4062f93e.mjs';
|
|
2
|
+
import '../../resolveHTTPResponse-8b09a709.mjs';
|
|
3
3
|
import '../../TRPCError-281ac25a.mjs';
|
|
4
4
|
import '../../codes-7d21f749.mjs';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-354358bb.mjs';
|
|
6
6
|
import '../../transformTRPCResponse-c8138d5f.mjs';
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var http = require('node:http');
|
|
6
|
-
var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-
|
|
7
|
-
require('../resolveHTTPResponse-
|
|
6
|
+
var nodeHTTPRequestHandler = require('../nodeHTTPRequestHandler-7b588236.js');
|
|
7
|
+
require('../resolveHTTPResponse-3af47381.js');
|
|
8
8
|
require('../TRPCError-fe9113e5.js');
|
|
9
9
|
require('../codes-76c38a34.js');
|
|
10
|
-
require('../index-
|
|
10
|
+
require('../index-b8627db5.js');
|
|
11
11
|
require('../transformTRPCResponse-11ac69cc.js');
|
|
12
12
|
|
|
13
13
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import http from 'node:http';
|
|
2
|
-
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-
|
|
3
|
-
import '../resolveHTTPResponse-
|
|
2
|
+
import { n as nodeHTTPRequestHandler } from '../nodeHTTPRequestHandler-4062f93e.mjs';
|
|
3
|
+
import '../resolveHTTPResponse-8b09a709.mjs';
|
|
4
4
|
import '../TRPCError-281ac25a.mjs';
|
|
5
5
|
import '../codes-7d21f749.mjs';
|
|
6
|
-
import '../index-
|
|
6
|
+
import '../index-354358bb.mjs';
|
|
7
7
|
import '../transformTRPCResponse-c8138d5f.mjs';
|
|
8
8
|
|
|
9
9
|
function createHTTPHandler(opts) {
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var resolveHTTPResponse = require('./resolveHTTPResponse-
|
|
6
|
-
var router = require('./router-
|
|
5
|
+
var resolveHTTPResponse = require('./resolveHTTPResponse-3af47381.js');
|
|
6
|
+
var router = require('./router-9960eb02.js');
|
|
7
7
|
var TRPCError = require('./TRPCError-fe9113e5.js');
|
|
8
8
|
require('./codes-76c38a34.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-b8627db5.js');
|
|
10
10
|
require('./transformTRPCResponse-11ac69cc.js');
|
|
11
11
|
|
|
12
12
|
function mergeRouters(...routerList) {
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { m as mergeWithoutOverrides, d as defaultFormatter, a as defaultTransformer, c as createRouterFactory, g as getDataTransformer } from './resolveHTTPResponse-
|
|
2
|
-
export { b as assertNotBrowser, e as callProcedure, a as defaultTransformer, g as getDataTransformer, p as procedureTypes, r as resolveHTTPResponse } from './resolveHTTPResponse-
|
|
3
|
-
import { c as createBuilder, a as createMiddlewareFactory } from './router-
|
|
4
|
-
export { b as createInputMiddleware, d as createOutputMiddleware, r as router } from './router-
|
|
1
|
+
import { m as mergeWithoutOverrides, d as defaultFormatter, a as defaultTransformer, c as createRouterFactory, g as getDataTransformer } from './resolveHTTPResponse-8b09a709.mjs';
|
|
2
|
+
export { b as assertNotBrowser, e as callProcedure, a as defaultTransformer, g as getDataTransformer, p as procedureTypes, r as resolveHTTPResponse } from './resolveHTTPResponse-8b09a709.mjs';
|
|
3
|
+
import { c as createBuilder, a as createMiddlewareFactory } from './router-dabfef7f.mjs';
|
|
4
|
+
export { b as createInputMiddleware, d as createOutputMiddleware, r as router } from './router-dabfef7f.mjs';
|
|
5
5
|
export { T as TRPCError } from './TRPCError-281ac25a.mjs';
|
|
6
6
|
import './codes-7d21f749.mjs';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-354358bb.mjs';
|
|
8
8
|
import './transformTRPCResponse-c8138d5f.mjs';
|
|
9
9
|
|
|
10
10
|
function mergeRouters(...routerList) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as assertNotBrowser, r as resolveHTTPResponse } from './resolveHTTPResponse-
|
|
1
|
+
import { b as assertNotBrowser, r as resolveHTTPResponse } from './resolveHTTPResponse-8b09a709.mjs';
|
|
2
2
|
import { T as TRPCError } from './TRPCError-281ac25a.mjs';
|
|
3
3
|
|
|
4
4
|
async function getPostBody({ req , maxBodySize }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var resolveHTTPResponse = require('./resolveHTTPResponse-
|
|
3
|
+
var resolveHTTPResponse = require('./resolveHTTPResponse-3af47381.js');
|
|
4
4
|
var TRPCError = require('./TRPCError-fe9113e5.js');
|
|
5
5
|
|
|
6
6
|
async function getPostBody({ req , maxBodySize }) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var TRPCError = require('./TRPCError-fe9113e5.js');
|
|
4
4
|
var codes = require('./codes-76c38a34.js');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-b8627db5.js');
|
|
6
6
|
var transformTRPCResponse = require('./transformTRPCResponse-11ac69cc.js');
|
|
7
7
|
|
|
8
8
|
/* istanbul ignore file */ function assertNotBrowser() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as TRPCError, g as getTRPCErrorFromUnknown, a as getCauseFromUnknown } from './TRPCError-281ac25a.mjs';
|
|
2
2
|
import { i as invert, T as TRPC_ERROR_CODES_BY_KEY } from './codes-7d21f749.mjs';
|
|
3
|
-
import { c as createProxy } from './index-
|
|
3
|
+
import { c as createProxy } from './index-354358bb.mjs';
|
|
4
4
|
import { t as transformTRPCResponse } from './transformTRPCResponse-c8138d5f.mjs';
|
|
5
5
|
|
|
6
6
|
/* istanbul ignore file */ function assertNotBrowser() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as mergeWithoutOverrides, b as assertNotBrowser, c as createRouterFactory, d as defaultFormatter, f as getHTTPStatusCodeFromError, a as defaultTransformer } from './resolveHTTPResponse-
|
|
1
|
+
import { m as mergeWithoutOverrides, b as assertNotBrowser, c as createRouterFactory, d as defaultFormatter, f as getHTTPStatusCodeFromError, a as defaultTransformer } from './resolveHTTPResponse-8b09a709.mjs';
|
|
2
2
|
import { T as TRPC_ERROR_CODES_BY_KEY } from './codes-7d21f749.mjs';
|
|
3
3
|
import { T as TRPCError, a as getCauseFromUnknown, g as getTRPCErrorFromUnknown } from './TRPCError-281ac25a.mjs';
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/server/src/shared/createProxy/index.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AACD,aAAK,aAAa,GAAG,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/server/src/shared/createProxy/index.ts"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,OAAO,EAAE,CAAC;CACjB;AACD,aAAK,aAAa,GAAG,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC;AAoC7D;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,aAAc,aAAa,YACvB,CAAC"}
|
package/dist/shared/index.js
CHANGED
package/dist/shared/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as createProxy } from '../index-
|
|
1
|
+
export { c as createProxy } from '../index-354358bb.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/server",
|
|
3
|
-
"version": "10.0.0-proxy-beta.
|
|
3
|
+
"version": "10.0.0-proxy-beta.10",
|
|
4
4
|
"description": "tRPC Server",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
"@testing-library/jest-dom": "^5.16.5",
|
|
123
123
|
"@testing-library/react": "^13.4.0",
|
|
124
124
|
"@testing-library/user-event": "^14.4.3",
|
|
125
|
-
"@trpc/client": "10.0.0-proxy-beta.
|
|
126
|
-
"@trpc/next": "10.0.0-proxy-beta.
|
|
127
|
-
"@trpc/react": "10.0.0-proxy-beta.
|
|
128
|
-
"@trpc/server": "10.0.0-proxy-beta.
|
|
125
|
+
"@trpc/client": "10.0.0-proxy-beta.10",
|
|
126
|
+
"@trpc/next": "10.0.0-proxy-beta.10",
|
|
127
|
+
"@trpc/react": "10.0.0-proxy-beta.10",
|
|
128
|
+
"@trpc/server": "10.0.0-proxy-beta.10",
|
|
129
129
|
"@types/aws-lambda": "^8.10.97",
|
|
130
130
|
"@types/express": "^4.17.12",
|
|
131
131
|
"@types/hash-sum": "^1.0.0",
|
|
@@ -161,5 +161,5 @@
|
|
|
161
161
|
"yup": "^0.32.8",
|
|
162
162
|
"zod": "^3.0.0"
|
|
163
163
|
},
|
|
164
|
-
"gitHead": "
|
|
164
|
+
"gitHead": "f380ecc219d93521a645de690fde69fa2b8fc664"
|
|
165
165
|
}
|
|
@@ -11,6 +11,9 @@ function createProxyInner(callback: ProxyCallback, ...path: string[]) {
|
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
get(_obj, name) {
|
|
14
|
+
if (name === 'then') {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
14
17
|
if (typeof name === 'string') {
|
|
15
18
|
if (name === 'then') {
|
|
16
19
|
// special case for if the proxy is accidentally treated
|