@orpc/openapi-client 0.45.0 → 0.45.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.
|
@@ -3,7 +3,7 @@ import { Segment } from '@orpc/shared';
|
|
|
3
3
|
type BracketNotationSerialized = [string, unknown][];
|
|
4
4
|
declare class BracketNotationSerializer {
|
|
5
5
|
serialize(data: unknown, segments?: Segment[], result?: BracketNotationSerialized): BracketNotationSerialized;
|
|
6
|
-
deserialize(serialized: BracketNotationSerialized): unknown;
|
|
6
|
+
deserialize(serialized: BracketNotationSerialized): Record<string, unknown> | unknown[];
|
|
7
7
|
stringifyPath(segments: readonly Segment[]): string;
|
|
8
8
|
parsePath(path: string): string[];
|
|
9
9
|
}
|
|
@@ -3,7 +3,7 @@ import { Segment } from '@orpc/shared';
|
|
|
3
3
|
type BracketNotationSerialized = [string, unknown][];
|
|
4
4
|
declare class BracketNotationSerializer {
|
|
5
5
|
serialize(data: unknown, segments?: Segment[], result?: BracketNotationSerialized): BracketNotationSerialized;
|
|
6
|
-
deserialize(serialized: BracketNotationSerialized): unknown;
|
|
6
|
+
deserialize(serialized: BracketNotationSerialized): Record<string, unknown> | unknown[];
|
|
7
7
|
stringifyPath(segments: readonly Segment[]): string;
|
|
8
8
|
parsePath(path: string): string[];
|
|
9
9
|
}
|
|
@@ -18,6 +18,9 @@ class BracketNotationSerializer {
|
|
|
18
18
|
return result;
|
|
19
19
|
}
|
|
20
20
|
deserialize(serialized) {
|
|
21
|
+
if (serialized.length === 0) {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
21
24
|
const arrayPushStyles = /* @__PURE__ */ new WeakSet();
|
|
22
25
|
const ref = { value: [] };
|
|
23
26
|
for (const [path, value] of serialized) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/openapi-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.45.
|
|
4
|
+
"version": "0.45.1",
|
|
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/
|
|
33
|
-
"@orpc/shared": "0.45.
|
|
34
|
-
"@orpc/
|
|
32
|
+
"@orpc/standard-server": "0.45.1",
|
|
33
|
+
"@orpc/shared": "0.45.1",
|
|
34
|
+
"@orpc/client": "0.45.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "unbuild",
|