bare-script 2.2.5 → 2.2.6

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/bare.js CHANGED
@@ -89,7 +89,7 @@ export async function main(options) {
89
89
  // Run the bare-script linter?
90
90
  if (args.static || args.debug) {
91
91
  const warnings = lintScript(script);
92
- const warningPrefix = `BareScript: Static analysis...`;
92
+ const warningPrefix = `BareScript: Static analysis "${file}" ...`;
93
93
  if (warnings.length === 0) {
94
94
  options.logFn(`${warningPrefix} OK`);
95
95
  } else {
package/lib/library.js CHANGED
@@ -961,6 +961,15 @@ export const scriptFunctions = {
961
961
  }
962
962
  },
963
963
 
964
+ // $function: systemPartial
965
+ // $group: System
966
+ // $doc: Return a new function which behaves like "func" called with "args".
967
+ // $doc: If additional arguments are passed to the returned function, they are appended to "args".
968
+ // $arg func: The function
969
+ // $arg args: The function arguments
970
+ // $return: The new function called with "args"
971
+ 'systemPartial': ([func, ...args]) => (argsExtra, options) => func([...args, ...argsExtra], options),
972
+
964
973
 
965
974
  //
966
975
  // URL functions
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "bare-script",
4
- "version": "2.2.5",
4
+ "version": "2.2.6",
5
5
  "description": "BareScript; a lightweight scripting and expression language",
6
6
  "keywords": [
7
7
  "expression",