@trpc/client 10.34.0 → 10.34.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/{httpBatchLink-2abec973.js → httpBatchLink-3d721a5c.js} +1 -1
- package/dist/{httpBatchLink-fbd7b43c.mjs → httpBatchLink-520db465.mjs} +1 -1
- package/dist/{httpBatchLink-579b00eb.js → httpBatchLink-7e0759b7.js} +1 -1
- package/dist/{httpUtils-1efcb902.mjs → httpUtils-ad76b802.mjs} +2 -0
- package/dist/{httpUtils-676ede95.js → httpUtils-f23aeadb.js} +2 -0
- package/dist/{httpUtils-cc69e11f.js → httpUtils-fd6f3ad7.js} +2 -0
- package/dist/index.js +4 -2
- package/dist/index.mjs +6 -4
- package/dist/internals/getAbortController.d.ts.map +1 -1
- package/dist/links/httpBatchLink.js +2 -2
- package/dist/links/httpBatchLink.mjs +2 -2
- package/dist/links/httpLink.js +1 -1
- package/dist/links/httpLink.mjs +1 -1
- package/dist/links/internals/getTextDecoder.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/internals/getAbortController.ts +2 -1
- package/src/links/internals/getTextDecoder.ts +2 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var observable = require('@trpc/server/observable');
|
|
4
4
|
var transformResult = require('./transformResult-26a22823.js');
|
|
5
5
|
var TRPCClientError = require('./TRPCClientError-dffb44e0.js');
|
|
6
|
-
var httpUtils = require('./httpUtils-
|
|
6
|
+
var httpUtils = require('./httpUtils-fd6f3ad7.js');
|
|
7
7
|
|
|
8
8
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /**
|
|
9
9
|
* A function that should never be called unless we messed something up.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { observable } from '@trpc/server/observable';
|
|
2
2
|
import { t as transformResult } from './transformResult-7ab522e6.mjs';
|
|
3
3
|
import { T as TRPCClientError } from './TRPCClientError-fef6cf44.mjs';
|
|
4
|
-
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-
|
|
4
|
+
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-ad76b802.mjs';
|
|
5
5
|
|
|
6
6
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */ /**
|
|
7
7
|
* A function that should never be called unless we messed something up.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { observable } from '@trpc/server/observable';
|
|
2
2
|
import { t as transformResult } from './transformResult-82684494.js';
|
|
3
3
|
import { T as TRPCClientError } from './TRPCClientError-8462a9bf.js';
|
|
4
|
-
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-
|
|
4
|
+
import { r as resolveHTTPLinkOptions, g as getUrl, j as jsonHttpRequester } from './httpUtils-f23aeadb.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A function that should never be called unless we messed something up.
|
|
@@ -18,9 +18,11 @@ function getAbortController(customAbortControllerImpl) {
|
|
|
18
18
|
if (customAbortControllerImpl) {
|
|
19
19
|
return customAbortControllerImpl;
|
|
20
20
|
}
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
21
22
|
if (typeof window !== 'undefined' && window.AbortController) {
|
|
22
23
|
return window.AbortController;
|
|
23
24
|
}
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
24
26
|
if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
|
|
25
27
|
return globalThis.AbortController;
|
|
26
28
|
}
|
|
@@ -18,9 +18,11 @@ function getAbortController(customAbortControllerImpl) {
|
|
|
18
18
|
if (customAbortControllerImpl) {
|
|
19
19
|
return customAbortControllerImpl;
|
|
20
20
|
}
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
21
22
|
if (typeof window !== 'undefined' && window.AbortController) {
|
|
22
23
|
return window.AbortController;
|
|
23
24
|
}
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
24
26
|
if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
|
|
25
27
|
return globalThis.AbortController;
|
|
26
28
|
}
|
|
@@ -20,9 +20,11 @@ function getAbortController(customAbortControllerImpl) {
|
|
|
20
20
|
if (customAbortControllerImpl) {
|
|
21
21
|
return customAbortControllerImpl;
|
|
22
22
|
}
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
23
24
|
if (typeof window !== 'undefined' && window.AbortController) {
|
|
24
25
|
return window.AbortController;
|
|
25
26
|
}
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
26
28
|
if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
|
|
27
29
|
return globalThis.AbortController;
|
|
28
30
|
}
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ var observable = require('@trpc/server/observable');
|
|
|
6
6
|
var links_splitLink = require('./splitLink-f29e84be.js');
|
|
7
7
|
var TRPCClientError = require('./TRPCClientError-dffb44e0.js');
|
|
8
8
|
var shared = require('@trpc/server/shared');
|
|
9
|
-
var httpUtils = require('./httpUtils-
|
|
10
|
-
var links_httpBatchLink = require('./httpBatchLink-
|
|
9
|
+
var httpUtils = require('./httpUtils-fd6f3ad7.js');
|
|
10
|
+
var links_httpBatchLink = require('./httpBatchLink-3d721a5c.js');
|
|
11
11
|
var links_httpLink = require('./links/httpLink.js');
|
|
12
12
|
var links_loggerLink = require('./links/loggerLink.js');
|
|
13
13
|
var links_wsLink = require('./links/wsLink.js');
|
|
@@ -176,9 +176,11 @@ function getTextDecoder(customTextDecoder) {
|
|
|
176
176
|
if (customTextDecoder) {
|
|
177
177
|
return customTextDecoder;
|
|
178
178
|
}
|
|
179
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
179
180
|
if (typeof window !== 'undefined' && window.TextDecoder) {
|
|
180
181
|
return new window.TextDecoder();
|
|
181
182
|
}
|
|
183
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
182
184
|
if (typeof globalThis !== 'undefined' && globalThis.TextDecoder) {
|
|
183
185
|
return new globalThis.TextDecoder();
|
|
184
186
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ export { s as splitLink } from './splitLink-4c75f7be.mjs';
|
|
|
4
4
|
import { T as TRPCClientError } from './TRPCClientError-fef6cf44.mjs';
|
|
5
5
|
export { T as TRPCClientError } from './TRPCClientError-fef6cf44.mjs';
|
|
6
6
|
import { createFlatProxy, createRecursiveProxy } from '@trpc/server/shared';
|
|
7
|
-
import { f as fetchHTTPResponse, g as getUrl, a as getBody$1, h as httpRequest } from './httpUtils-
|
|
8
|
-
export { b as getFetch } from './httpUtils-
|
|
9
|
-
import { c as createHTTPBatchLink } from './httpBatchLink-
|
|
10
|
-
export { h as httpBatchLink } from './httpBatchLink-
|
|
7
|
+
import { f as fetchHTTPResponse, g as getUrl, a as getBody$1, h as httpRequest } from './httpUtils-ad76b802.mjs';
|
|
8
|
+
export { b as getFetch } from './httpUtils-ad76b802.mjs';
|
|
9
|
+
import { c as createHTTPBatchLink } from './httpBatchLink-520db465.mjs';
|
|
10
|
+
export { h as httpBatchLink } from './httpBatchLink-520db465.mjs';
|
|
11
11
|
import { httpLinkFactory } from './links/httpLink.mjs';
|
|
12
12
|
export { httpLink, httpLinkFactory } from './links/httpLink.mjs';
|
|
13
13
|
export { loggerLink } from './links/loggerLink.mjs';
|
|
@@ -177,9 +177,11 @@ function getTextDecoder(customTextDecoder) {
|
|
|
177
177
|
if (customTextDecoder) {
|
|
178
178
|
return customTextDecoder;
|
|
179
179
|
}
|
|
180
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
180
181
|
if (typeof window !== 'undefined' && window.TextDecoder) {
|
|
181
182
|
return new window.TextDecoder();
|
|
182
183
|
}
|
|
184
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
183
185
|
if (typeof globalThis !== 'undefined' && globalThis.TextDecoder) {
|
|
184
186
|
return new globalThis.TextDecoder();
|
|
185
187
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAbortController.d.ts","sourceRoot":"","sources":["../../src/internals/getAbortController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,kBAAkB,CAChC,yBAAyB,EAAE,KAAK,CAAC,oBAAoB,CAAC,GACrD,oBAAoB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"getAbortController.d.ts","sourceRoot":"","sources":["../../src/internals/getAbortController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,wBAAgB,kBAAkB,CAChC,yBAAyB,EAAE,KAAK,CAAC,oBAAoB,CAAC,GACrD,oBAAoB,GAAG,IAAI,CAe7B"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var links_httpBatchLink = require('../httpBatchLink-
|
|
6
|
-
require('../httpUtils-
|
|
5
|
+
var links_httpBatchLink = require('../httpBatchLink-3d721a5c.js');
|
|
6
|
+
require('../httpUtils-fd6f3ad7.js');
|
|
7
7
|
require('@trpc/server/observable');
|
|
8
8
|
require('../transformResult-26a22823.js');
|
|
9
9
|
require('../TRPCClientError-dffb44e0.js');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { h as httpBatchLink } from '../httpBatchLink-
|
|
2
|
-
import '../httpUtils-
|
|
1
|
+
export { h as httpBatchLink } from '../httpBatchLink-520db465.mjs';
|
|
2
|
+
import '../httpUtils-ad76b802.mjs';
|
|
3
3
|
import '@trpc/server/observable';
|
|
4
4
|
import '../transformResult-7ab522e6.mjs';
|
|
5
5
|
import '../TRPCClientError-fef6cf44.mjs';
|
package/dist/links/httpLink.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var observable = require('@trpc/server/observable');
|
|
6
6
|
var transformResult = require('../transformResult-26a22823.js');
|
|
7
7
|
var TRPCClientError = require('../TRPCClientError-dffb44e0.js');
|
|
8
|
-
var httpUtils = require('../httpUtils-
|
|
8
|
+
var httpUtils = require('../httpUtils-fd6f3ad7.js');
|
|
9
9
|
|
|
10
10
|
function httpLinkFactory(factoryOpts) {
|
|
11
11
|
return (opts)=>{
|
package/dist/links/httpLink.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { observable } from '@trpc/server/observable';
|
|
2
2
|
import { t as transformResult } from '../transformResult-7ab522e6.mjs';
|
|
3
3
|
import { T as TRPCClientError } from '../TRPCClientError-fef6cf44.mjs';
|
|
4
|
-
import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-
|
|
4
|
+
import { r as resolveHTTPLinkOptions, j as jsonHttpRequester } from '../httpUtils-ad76b802.mjs';
|
|
5
5
|
|
|
6
6
|
function httpLinkFactory(factoryOpts) {
|
|
7
7
|
return (opts)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTextDecoder.d.ts","sourceRoot":"","sources":["../../../src/links/internals/getTextDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,cAAc,CAC5B,iBAAiB,CAAC,EAAE,gBAAgB,GACnC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"getTextDecoder.d.ts","sourceRoot":"","sources":["../../../src/links/internals/getTextDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,cAAc,CAC5B,iBAAiB,CAAC,EAAE,gBAAgB,GACnC,gBAAgB,CAelB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/client",
|
|
3
|
-
"version": "10.34.
|
|
3
|
+
"version": "10.34.1",
|
|
4
4
|
"description": "The tRPC client library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"!**/*.test.*"
|
|
77
77
|
],
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"@trpc/server": "10.34.
|
|
79
|
+
"@trpc/server": "10.34.1"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@testing-library/dom": "^9.0.0",
|
|
83
|
-
"@trpc/server": "10.34.
|
|
83
|
+
"@trpc/server": "10.34.1",
|
|
84
84
|
"@types/isomorphic-fetch": "^0.0.36",
|
|
85
85
|
"@types/node": "^18.16.16",
|
|
86
86
|
"eslint": "^8.40.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"funding": [
|
|
99
99
|
"https://trpc.io/sponsor"
|
|
100
100
|
],
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "8e4676ad23d6220d6462850d277924735c85cc78"
|
|
102
102
|
}
|
|
@@ -8,10 +8,11 @@ export function getAbortController(
|
|
|
8
8
|
return customAbortControllerImpl;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
11
12
|
if (typeof window !== 'undefined' && window.AbortController) {
|
|
12
13
|
return window.AbortController;
|
|
13
14
|
}
|
|
14
|
-
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
15
16
|
if (typeof globalThis !== 'undefined' && globalThis.AbortController) {
|
|
16
17
|
return globalThis.AbortController;
|
|
17
18
|
}
|
|
@@ -7,10 +7,11 @@ export function getTextDecoder(
|
|
|
7
7
|
return customTextDecoder;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
10
11
|
if (typeof window !== 'undefined' && window.TextDecoder) {
|
|
11
12
|
return new window.TextDecoder();
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
14
15
|
if (typeof globalThis !== 'undefined' && globalThis.TextDecoder) {
|
|
15
16
|
return new globalThis.TextDecoder();
|
|
16
17
|
}
|