@orpc/json-schema 1.7.5 → 1.7.6
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/index.mjs +5 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
@@ -323,7 +323,11 @@ class experimental_JsonSchemaCoercer {
|
|
323
323
|
if (value.some((item) => !Array.isArray(item) || item.length !== 2)) {
|
324
324
|
return value;
|
325
325
|
}
|
326
|
-
|
326
|
+
const result = new Map(value);
|
327
|
+
if (result.size !== value.length) {
|
328
|
+
return value;
|
329
|
+
}
|
330
|
+
return result;
|
327
331
|
}
|
328
332
|
}
|
329
333
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/json-schema",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.7.
|
4
|
+
"version": "1.7.6",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -25,10 +25,10 @@
|
|
25
25
|
],
|
26
26
|
"dependencies": {
|
27
27
|
"json-schema-typed": "^8.0.1",
|
28
|
-
"@orpc/contract": "1.7.
|
29
|
-
"@orpc/
|
30
|
-
"@orpc/
|
31
|
-
"@orpc/
|
28
|
+
"@orpc/contract": "1.7.6",
|
29
|
+
"@orpc/openapi": "1.7.6",
|
30
|
+
"@orpc/server": "1.7.6",
|
31
|
+
"@orpc/shared": "1.7.6"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
34
|
"zod": "^4.0.5"
|