@orpc/openapi-client 1.0.0-beta.2 → 1.0.0-beta.4
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/README.md +8 -0
- package/dist/adapters/standard/index.mjs +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -67,6 +67,14 @@ You can find the full documentation [here](https://orpc.unnoq.com).
|
|
|
67
67
|
|
|
68
68
|
Provides core serializer for OpenAPI requests and responses.
|
|
69
69
|
|
|
70
|
+
## Sponsors
|
|
71
|
+
|
|
72
|
+
<p align="center">
|
|
73
|
+
<a href="https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg">
|
|
74
|
+
<img src='https://cdn.jsdelivr.net/gh/unnoq/unnoq/sponsors.svg'/>
|
|
75
|
+
</a>
|
|
76
|
+
</p>
|
|
77
|
+
|
|
70
78
|
## License
|
|
71
79
|
|
|
72
80
|
Distributed under the MIT License. See [LICENSE](https://github.com/unnoq/orpc/blob/main/LICENSE) for more information.
|
|
@@ -150,6 +150,9 @@ class StandardOpenAPIJsonSerializer {
|
|
|
150
150
|
if (isObject(data)) {
|
|
151
151
|
const json = {};
|
|
152
152
|
for (const k in data) {
|
|
153
|
+
if (k === "toJSON" && typeof data[k] === "function") {
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
153
156
|
json[k] = this.serialize(data[k], hasBlobRef)[0];
|
|
154
157
|
}
|
|
155
158
|
return [json, hasBlobRef.value];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
|
7
7
|
"repository": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@orpc/client": "1.0.0-beta.
|
|
33
|
-
"@orpc/
|
|
34
|
-
"@orpc/
|
|
32
|
+
"@orpc/client": "1.0.0-beta.4",
|
|
33
|
+
"@orpc/standard-server": "1.0.0-beta.4",
|
|
34
|
+
"@orpc/shared": "1.0.0-beta.4"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild",
|