@@ -26,23 +26,23 @@ This module establishes the serialization standard adopted by the Seam API.
26
26
27
27
### Why not use [ URLSearchParams] ( https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams ) ?
28
28
29
- Passing a raw object to URLSearchParams has unpredictable serialization behavior.
29
+ - Passing a raw object to URLSearchParams has unpredictable serialization behavior.
30
30
31
31
### Why not [ qs] ( https://github.com/ljharb/qs ) ?
32
32
33
33
- Not a zero-dependency module. Has quite a few dependency layers.
34
34
- Impractile as a reference implementation.
35
- Since qs enables complex, non-standard parsing and serialization,
36
- this makes ensuing SDK parity much harder.
37
- Similarly, this puts an unreasonable burden on User 's of the HTTP API or those implementing their own client.
35
+ qs enables complex, non-standard parsing and serialization,
36
+ which makes ensuing SDK parity much harder.
37
+ Similarly, this puts an unreasonable burden on user 's of the HTTP API or those implementing their own client.
38
38
- The Seam API must ensure it handles a well defined set of non-string query parameters consistency.
39
39
Using qs would allow the SDK to send unsupported or incorrectly serialized parameter types to the API
40
40
resulting in unexpected behavior.
41
41
42
42
### Why not use the default [ Axios] ( https://axios-http.com/ ) serializer?
43
43
44
- Using the default [ Axios] serializer was the original approach,
45
- however it had similar issues to using URLSearchParams and qs as noted above.
44
+ - Using the default [ Axios] serializer was the original approach,
45
+ however it had similar issues to using URLSearchParams and qs as noted above.
46
46
47
47
## Installation
48
48
0 commit comments