weekly-fifty 1.0.4 → 1.0.5

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/dist/index.cjs CHANGED
@@ -79,7 +79,11 @@ function URL() {
79
79
  notes: { above: api.notesAbove, below: api.notesBelow }
80
80
  })
81
81
  );
82
- Fetch2.Options = (options = {}) => ({ url: URL(), parse: m_parse, ...options });
82
+ Fetch2.Options = (options = {}) => ({
83
+ url: URL.Latest(),
84
+ parse: m_parse,
85
+ ...options
86
+ });
83
87
  const m_parse = async (response) => {
84
88
  const ct = response.headers.get("content-type");
85
89
  if (ct && ct.indexOf("application/json") === -1) throw new TypeError("Expected JSON response");
package/dist/index.d.cts CHANGED
@@ -37,8 +37,7 @@ declare namespace Fetch {
37
37
  }
38
38
  /**
39
39
  * Handles resolving options to be used.
40
- * @param options
41
- * @returns
40
+ * @param options Options to resolve.
42
41
  */
43
42
  const Options: (options?: Options) => Required<Options>;
44
43
  }
package/dist/index.d.ts CHANGED
@@ -37,8 +37,7 @@ declare namespace Fetch {
37
37
  }
38
38
  /**
39
39
  * Handles resolving options to be used.
40
- * @param options
41
- * @returns
40
+ * @param options Options to resolve.
42
41
  */
43
42
  const Options: (options?: Options) => Required<Options>;
44
43
  }
package/dist/index.js CHANGED
@@ -49,7 +49,11 @@ function URL() {
49
49
  notes: { above: api.notesAbove, below: api.notesBelow }
50
50
  })
51
51
  );
52
- Fetch2.Options = (options = {}) => ({ url: URL(), parse: m_parse, ...options });
52
+ Fetch2.Options = (options = {}) => ({
53
+ url: URL.Latest(),
54
+ parse: m_parse,
55
+ ...options
56
+ });
53
57
  const m_parse = async (response) => {
54
58
  const ct = response.headers.get("content-type");
55
59
  if (ct && ct.indexOf("application/json") === -1) throw new TypeError("Expected JSON response");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "license": "MIT",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "name": "weekly-fifty",
6
6
  "author": "Reuben Roessler",
7
7
  "repository": "rroessler/npm.weekly-fifty",