catto.js 1.0.0 → 1.0.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.
- package/package.json +1 -1
- package/request.js +5 -0
package/package.json
CHANGED
package/request.js
CHANGED
|
@@ -12,6 +12,11 @@ if (globalThis.fetch && typeof fetch === "undefined") {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
function wrap(method, options) {
|
|
15
|
+
if (typeof options === "string") {
|
|
16
|
+
options = {
|
|
17
|
+
"url": options
|
|
18
|
+
};
|
|
19
|
+
}
|
|
15
20
|
var options2 = Object.assign({}, options);
|
|
16
21
|
var url = options2.url;
|
|
17
22
|
delete options2.url;
|