bare-script 3.0.13 → 3.0.15

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/library.js CHANGED
@@ -1862,7 +1862,7 @@ async function systemFetch([url = null], options) {
1862
1862
  }
1863
1863
 
1864
1864
  // Fetch in parallel
1865
- const fetchResponses = await Promise.all(requests.map((request) => {
1865
+ const fetchResponses = await Promise.all(requests.map(async (request) => {
1866
1866
  try {
1867
1867
  const fetchURL = urlFn !== null ? urlFn(request.url) : request.url;
1868
1868
  const fetchOptions = {};
@@ -1873,7 +1873,7 @@ async function systemFetch([url = null], options) {
1873
1873
  if ((request.headers ?? null) !== null) {
1874
1874
  fetchOptions.headers = request.headers;
1875
1875
  }
1876
- return fetchFn !== null ? fetchFn(fetchURL, fetchOptions) : null;
1876
+ return fetchFn !== null ? await fetchFn(fetchURL, fetchOptions) : null;
1877
1877
  } catch {
1878
1878
  return null;
1879
1879
  }
package/lib/value.js CHANGED
@@ -390,25 +390,25 @@ struct FunctionArgument
390
390
  optional bool nullable
391
391
 
392
392
  # The default argument value
393
- optional object default
393
+ optional any default
394
394
 
395
395
  # If true, this argument is the array of remaining arguments
396
- optional object lastArgArray
396
+ optional bool lastArgArray
397
397
 
398
398
  # If true, the number argument must be an integer
399
399
  optional bool integer
400
400
 
401
401
  # The number argument must be less-than
402
- optional object lt
402
+ optional any lt
403
403
 
404
404
  # The number argument must be less-than-or-equal-to
405
- optional object lte
405
+ optional any lte
406
406
 
407
407
  # The number argument must be greater-than
408
- optional object gt
408
+ optional any gt
409
409
 
410
410
  # The number argument must be greater-than-or-equal-to
411
- optional object gte
411
+ optional any gte
412
412
 
413
413
 
414
414
  # The function argument types
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "bare-script",
4
- "version": "3.0.13",
4
+ "version": "3.0.15",
5
5
  "description": "BareScript; a lightweight scripting and expression language",
6
6
  "keywords": [
7
7
  "expression",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "c8": "~10.1",
34
- "eslint": "~9.14",
34
+ "eslint": "~9.16",
35
35
  "jsdoc": "~4.0"
36
36
  }
37
37
  }