@trpc/next 10.45.2 → 10.45.3
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/app-dir/client/package.json +1 -0
- package/app-dir/links/nextCache/package.json +1 -0
- package/app-dir/links/nextHttp/package.json +1 -0
- package/app-dir/server/package.json +1 -0
- package/dist/app-dir/server.js +2 -2
- package/dist/app-dir/server.mjs +2 -2
- package/package.json +8 -8
- package/src/app-dir/formDataToObject.ts +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../dist/app-dir/client.cjs","module":"../../dist/app-dir/client.mjs","types":"../../dist/app-dir/client.d.cts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../../dist/app-dir/links/nextCache.cjs","module":"../../../dist/app-dir/links/nextCache.mjs","types":"../../../dist/app-dir/links/nextCache.d.cts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../../dist/app-dir/links/nextHttp.cjs","module":"../../../dist/app-dir/links/nextHttp.mjs","types":"../../../dist/app-dir/links/nextHttp.d.cts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"main":"../../dist/app-dir/server.cjs","module":"../../dist/app-dir/server.mjs","types":"../../dist/app-dir/server.d.cts"}
|
package/dist/app-dir/server.js
CHANGED
|
@@ -16,7 +16,7 @@ var shared$1 = require('../shared-e49b9cdc.js');
|
|
|
16
16
|
if (path.length > 1) {
|
|
17
17
|
const p = path.shift();
|
|
18
18
|
const isArrayIndex = /^\d+$/.test(path[0]);
|
|
19
|
-
obj[p] = obj[p] || (isArrayIndex ? [] :
|
|
19
|
+
obj[p] = obj[p] || (isArrayIndex ? [] : Object.create(null));
|
|
20
20
|
set(obj[p], path, value);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
@@ -33,7 +33,7 @@ var shared$1 = require('../shared-e49b9cdc.js');
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
function formDataToObject(formData) {
|
|
36
|
-
const obj =
|
|
36
|
+
const obj = Object.create(null);
|
|
37
37
|
for (const [key, value] of formData.entries()){
|
|
38
38
|
set(obj, key, value);
|
|
39
39
|
}
|
package/dist/app-dir/server.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { g as generateCacheTag, i as isFormData } from '../shared-f6996341.mjs';
|
|
|
12
12
|
if (path.length > 1) {
|
|
13
13
|
const p = path.shift();
|
|
14
14
|
const isArrayIndex = /^\d+$/.test(path[0]);
|
|
15
|
-
obj[p] = obj[p] || (isArrayIndex ? [] :
|
|
15
|
+
obj[p] = obj[p] || (isArrayIndex ? [] : Object.create(null));
|
|
16
16
|
set(obj[p], path, value);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
@@ -29,7 +29,7 @@ import { g as generateCacheTag, i as isFormData } from '../shared-f6996341.mjs';
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
function formDataToObject(formData) {
|
|
32
|
-
const obj =
|
|
32
|
+
const obj = Object.create(null);
|
|
33
33
|
for (const [key, value] of formData.entries()){
|
|
34
34
|
set(obj, key, value);
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/next",
|
|
3
|
-
"version": "10.45.
|
|
3
|
+
"version": "10.45.3",
|
|
4
4
|
"description": "The tRPC Next.js library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
],
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@tanstack/react-query": "^4.18.0",
|
|
69
|
-
"@trpc/client": "10.45.
|
|
70
|
-
"@trpc/react-query": "10.45.
|
|
71
|
-
"@trpc/server": "10.45.
|
|
69
|
+
"@trpc/client": "10.45.3",
|
|
70
|
+
"@trpc/react-query": "10.45.3",
|
|
71
|
+
"@trpc/server": "10.45.3",
|
|
72
72
|
"next": "*",
|
|
73
73
|
"react": ">=16.8.0",
|
|
74
74
|
"react-dom": ">=16.8.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@tanstack/react-query": "^4.18.0",
|
|
78
|
-
"@trpc/client": "10.45.
|
|
79
|
-
"@trpc/react-query": "10.45.
|
|
80
|
-
"@trpc/server": "10.45.
|
|
78
|
+
"@trpc/client": "10.45.3",
|
|
79
|
+
"@trpc/react-query": "10.45.3",
|
|
80
|
+
"@trpc/server": "10.45.3",
|
|
81
81
|
"@types/express": "^4.17.17",
|
|
82
82
|
"@types/node": "^20.10.0",
|
|
83
83
|
"@types/react": "^18.2.33",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"funding": [
|
|
98
98
|
"https://trpc.io/sponsor"
|
|
99
99
|
],
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "1117bb317ac2c146c571c170cbf3b4cc1827e4cf"
|
|
101
101
|
}
|
|
@@ -11,7 +11,7 @@ function set(
|
|
|
11
11
|
if (path.length > 1) {
|
|
12
12
|
const p = path.shift()!;
|
|
13
13
|
const isArrayIndex = /^\d+$/.test(path[0]!);
|
|
14
|
-
obj[p] = obj[p] || (isArrayIndex ? [] :
|
|
14
|
+
obj[p] = obj[p] || (isArrayIndex ? [] : Object.create(null));
|
|
15
15
|
set(obj[p], path, value);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -26,7 +26,7 @@ function set(
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function formDataToObject(formData: FormData) {
|
|
29
|
-
const obj: Record<string, unknown> =
|
|
29
|
+
const obj: Record<string, unknown> = Object.create(null);
|
|
30
30
|
|
|
31
31
|
for (const [key, value] of formData.entries()) {
|
|
32
32
|
set(obj, key, value);
|