utilitas 1998.2.47 → 1998.2.48

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/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1998.2.47",
4
+ "version": "1998.2.48",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/lib/shot.mjs CHANGED
@@ -20,7 +20,7 @@ const [_JSON, _PARSED] = ['JSON', 'PARSED'];
20
20
  const getJson = async (u, o) => await get(u, { encode: _JSON, ...o || {} });
21
21
  const getParsedHtml = async (u, o) => await get(u, { encode: _PARSED, ...o || {} });
22
22
 
23
- let searchProvider, googleApiKey, googleCx;
23
+ let googleApiKey, googleCx;
24
24
 
25
25
  const defFetchOpt = {
26
26
  redirect: 'follow', follow: 3, timeout: 1000 * 10, headers: {
@@ -153,11 +153,9 @@ const get = async (url, options) => {
153
153
 
154
154
  const initSearch = (options) => {
155
155
  assert(
156
- options?.provider && options?.apiKey && options?.cx,
157
- 'Invalid search options.'
156
+ options?.apiKey && options?.cx, 'Invalid search options.'
158
157
  );
159
- return [searchProvider, googleApiKey, googleCx]
160
- = [options.provider, options.apiKey, options.cx];
158
+ return [googleApiKey, googleCx] = [options.apiKey, options.cx];
161
159
  };
162
160
 
163
161
  const search = async (query, options) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1998.2.47",
4
+ "version": "1998.2.48",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",