Initial Commit
This commit is contained in:
9
node_modules/snekfetch/src/qs_mock.js
generated
vendored
Normal file
9
node_modules/snekfetch/src/qs_mock.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
exports = {
|
||||
parse: (str) => {
|
||||
const parsed = {};
|
||||
for (const [k, v] of new Window.URLSearchParams(str).entries())
|
||||
parsed[k] = v;
|
||||
return parsed;
|
||||
},
|
||||
stringify: (obj) => new window.URLSearchParams(obj).toString(),
|
||||
};
|
||||
Reference in New Issue
Block a user