add native and web sdks
This commit is contained in:
8
packages/sdk-web/src/parseQuery.ts
Normal file
8
packages/sdk-web/src/parseQuery.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function parseQuery(query: string): Record<string, string> {
|
||||
const params = new URLSearchParams(query);
|
||||
const result: Record<string, string> = {};
|
||||
for (const [key, value] of params.entries()) {
|
||||
result[key] = value;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user