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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/request.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {
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;